Categorygithub.com/divpro/cve
module
0.1.0-alpha
Repository: https://github.com/divpro/cve.git
Documentation: pkg.go.dev

# README

CVE

vulnerabilities aggregation service

sources

  • debian :heavy_check_mark: link
  • redhat :heavy_check_mark: link
  • ubuntu [planned] link
  • NVD [planned] link

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

methodurldescription
GET/api/updateupdate 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

paramtypedefaultdescription
http_addrcli0.0.0.0addr for incoming http connections
http_portcli80port for incoming http connections
log_levelcliinfologging level
DB_CONNenvdocker-composepostgresql dsn

# Packages

No description provided by the author