diff --git a/README.md b/README.md index 497dd59..1f3aa23 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # data_importer -Import common security data such as CVE, CPE, and Advisories from various CNAs into a rails rails app with a postgresql db backend. +Import common security data such as CVE, CPE, and Security Advisories from various CNAs into a rails app with a postgresql db backend. ## Supported data models: - `Cve` data from [cve_list](https://github.com/CVEProject/cvelist) mitre. @@ -24,6 +24,7 @@ docker-compose run web rake db:seed `docker-compose run web rails console` ### HTTP API +For now unauthenticated api over localhost:3000 until I put in some basic token auth. All response data is json rendered. #### Cves ``` diff --git a/lib/cpe_importer.rb b/lib/cpe_importer.rb index 1428dd0..59b0360 100644 --- a/lib/cpe_importer.rb +++ b/lib/cpe_importer.rb @@ -49,6 +49,7 @@ class CpeImporter end def self.import(bulk_count = 20000, filepath = '/data_importer/data/official-cpe-dictionary_v2.2.xml.gz') + puts "Now importing Cpes." Zlib::GzipReader.open(filepath) do |file| items = [] Nokogiri::XML::Reader.from_io(file).each do |node|