Skip to content

Small tool to track CVEs from SUSE Manager and keep an audit log

License

Notifications You must be signed in to change notification settings

ict-cloud/suma-cve-audit-tool

Repository files navigation

Suma-CVE-Audit-Tool

Small tool to track CVEs from SUSE Manager and keep an audit log.

Built in Rust.

Delivers:

  • XML-RPC Client to interact with the SUSE Manager resp. with an Uyuni server
  • Common Structs and Types for re-use between back end and front end
  • Front end based on 'yew' built with trunk
  • Back end based on 'xmlrpc' client (own fork to use async) and 'reqwest'
  • sqlite database for offline capabilities

Build

  1. Download/clone the repository.
  2. Build the cve-audit-types (cargo build or use the make file with make build-commons)
  3. Build the cve-audit-ui (trunk build or use the make file with make build-web)
  4. Build the cve-audit-tool (cargo build or use the make file)

Run

  1. Extract the build to the needed repository.
  2. Create a folder next to the executable called config
  3. Place the file config.toml in it.
  4. Run the executable
  5. Server is started at the port indicated, by default 127.0.0.1:8081
  6. Backend server (API) is started at IP 127.0.0.1:8090by default and should not be changed currently

Contents of config.toml

See example in config.toml

You can create several configurations by prefixing the setting with your environment (i.e. default). The runtime expects a default to be present. Any other environment needs to be specified at start time.