This is a rails/postgres application that will serve json data from the following data sources:
- Cves
- Cpes
- CNA security advisories
- GHSA Github security advisories
- Github repositories that track public exploits for cves.
- A list of github usernames github API data.
app | ||
bin | ||
config | ||
db | ||
lib | ||
log | ||
public | ||
storage | ||
test | ||
tmp | ||
vendor | ||
.gitignore | ||
.ruby-version | ||
config.ru | ||
docker-compose.yml | ||
Dockerfile | ||
entrypoint.sh | ||
Gemfile | ||
Gemfile.lock | ||
package.json | ||
Rakefile | ||
README.md |
data_importer
Import common security data such as CVE, CPE, and Advisories from various CNAs into a postgresql database in a rails application.
Getting started
Build container
docker-compose build
Database creation and seeding initial data
docker-compose run web rake db:create
docker-compose run web rake db:migrate
docker-compose run web rake db:setup
Launch Pry console
docker-compose run web rails console