vulndb/internal/worker
Tatiana Bradley a79df1ecd0 internal/worker: improve tests for cve update
Add tests to check contents of the update record and for error
cases. This is to prep for a change to this function's behavior.

Change-Id: I9380f661725aa4a50db0691906d3d6a5a925f8d1
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/589995
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Tatiana Bradley <tatianabradley@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
2024-06-04 18:05:44 +00:00
..
log
static
store all: rename cveschema5 and cveschema to cve5 and cve4 2024-05-15 14:51:25 +00:00
testdata internal/worker: improve tests for cve update 2024-06-04 18:05:44 +00:00
README.md
config.go
false_positive_records.gen.go
false_positives.go
false_positives_test.go all: rename cveschema5 and cveschema to cve5 and cve4 2024-05-15 14:51:25 +00:00
gen_false_positives.go
server.go
server_test.go
update.go internal/worker: improve tests for cve update 2024-06-04 18:05:44 +00:00
update_test.go internal/worker: improve tests for cve update 2024-06-04 18:05:44 +00:00
util.go all: rename cveschema5 and cveschema to cve5 and cve4 2024-05-15 14:51:25 +00:00
worker.go internal/report, all: use time.Now as default created time 2024-05-15 21:12:12 +00:00
worker_test.go internal/{report, symbols}: various fixes to support automation 2024-05-20 16:05:42 +00:00

README.md

Go Vulnerability Worker

The vuln worker triages incoming security advisories and scans selected modules for vulnerabilities.

The Go security team runs the worker on Google Cloud Platform's Cloud Run product. See the repo's terraform directory for more on the deployment setup.

The main program for the worker, in the repo's cmd/worker directory, can also be used as a command-line tool for one-off executions of some of the server's actions.

Browsing the worker

Accessing the worker server's home page from a browser requires authentication. We recommend cloud-run-proxy for painless browsing. Install it with

go install github.com/GoogleCloudPlatform/cloud-run-proxy@latest

Run it from the repo root with

./devtools/proxy_worker.sh prod