cve

module
v0.1.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2021 License: GPL-3.0

README

CVE

vulnerabilities aggregation service

sources
service dependencies
  • Go compiler - project source codes
  • Postgresql - data store and locks
CI/CD dependecies
  • GNU make - cli unification
  • docker - for standalone launch
  • SQL migrations - bundled
HTTP API
method url description
GET /api/update update sources
GET /api/cve/{cve}?source={source}&pkg={package} search cve information

internals

project structure
  • Makefile - make definitions
  • Dockerfile - build docker image
  • docker-compose.yml - build infra dependencies and start service
  • main/cve - entrypoint, reads configuration and starts app
  • migrations - DB DDL statements
  • internal/app - pp init
  • internal/app/handlers - http handler sources
  • internal/config - app config definition and validation
  • internal/entity - DB layer abstrations and models
  • internal/service - application layer main logic
  • internal/service/update/source - cve sources api adapters
startup configuration params
param type default description
http_addr cli 0.0.0.0 addr for incoming http connections
http_port cli 80 port for incoming http connections
log_level cli info logging level
DB_CONN env docker-compose postgresql dsn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL