Skip to content

feat(nix): govulncheck check, live-database app and SBOMs (FP-4) - #296

Merged
randomizedcoder merged 3 commits into
mainfrom
sec/fp4-govulncheck
Nov 12, 2026
Merged

randomizedcoder merged 3 commits into
mainfrom
sec/fp4-govulncheck

Conversation

@randomizedcoder

Copy link
Copy Markdown
Owner

Phase F1, FP-4 of the focused container hardening plan (#291). Independent of FP-1 to FP-3.

  • checks.govulncheck: govulncheck against a pinned offline snapshot of golang/vulndb (nix/lib/govulndb.nix), with no tags and with every destination and enrichment tag. Pure, so it runs in nix flake check.
  • A reachable finding not in the check's accepted list fails the build. One is accepted: GO-2026-6859 (net/http, fixed in go1.27.4; the pinned nixpkgs has go1.27.3), to be dropped with the toolchain bump. Checked: with the list empty, the check fails on it.
  • nix run .#govulncheck-fresh: the same scans against the live database, plus go mod verify. Reports the same single finding today.
  • nix build .#sbom-<binary>: a CycloneDX SBOM per binary package, from the module list the linker embeds (cyclonedx-gomod bin).

🤖 Generated with Claude Code

randomizedcoder and others added 2 commits November 11, 2026 17:46
- checks.govulncheck: govulncheck against a pinned offline snapshot of
  golang/vulndb (nix/lib/govulndb.nix), with no tags and with every
  destination and enrichment tag. A reachable finding not in the check's
  accepted list fails; GO-2026-6859 (net/http, fixed in go1.27.4) is
  accepted until the toolchain bump.
- nix run .#govulncheck-fresh: the same scans against the live database,
  plus go mod verify.
- sbom-<binary> packages: a CycloneDX SBOM per binary from the linked
  module list (cyclonedx-gomod bin).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
[[ ]] for the go.mod test and a braced ${rc}; shellcheck -o all is clean.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@randomizedcoder

Copy link
Copy Markdown
Owner Author
  • Addressed in 68c33d8: [[ ]] and braced ${rc} in the govulncheck-fresh runner; shellcheck -o all clean. GO-2026-6859 exception unchanged.

@randomizedcoder
randomizedcoder merged commit 9949ee6 into main Nov 12, 2026
1 check passed
randomizedcoder added a commit that referenced this pull request Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant