Skip to content

security: remediate Trivy HIGH/CRITICAL findings - #24

Merged
braghettos merged 1 commit into
mainfrom
security/trivy-remediation
Aug 14, 2026
Merged

security: remediate Trivy HIGH/CRITICAL findings#24
braghettos merged 1 commit into
mainfrom
security/trivy-remediation

Conversation

@braghettos

Copy link
Copy Markdown
Collaborator

Summary

Remediates the tractable open Trivy HIGH/CRITICAL (and related MEDIUM) code-scanning findings on go/authn/go.mod by bumping the flagged vulnerable Go dependencies to their fixed versions. No source changes — dependency bumps only.

Fixed (VULN — Go dependency bumps)

Module From To Advisories cleared
golang.org/x/crypto v0.51.0 v0.53.0 (≥ fixed 0.52.0) CVE-2026-42508, CVE-2026-46595, CVE-2026-46597, CVE-2026-39828, CVE-2026-39829, CVE-2026-39830, CVE-2026-39831, CVE-2026-39832, CVE-2026-39835 (HIGH); CVE-2026-39827, CVE-2026-39833, CVE-2026-39834, CVE-2026-46598 (MED); GO-2026-5932
golang.org/x/net v0.55.0 v0.56.0 CVE-2026-46600 (HIGH)
golang.org/x/text v0.37.0 v0.39.0 CVE-2026-56852 (HIGH)
google.golang.org/grpc v1.81.1 v1.82.1 GHSA-hrxh-6v49-42gf (HIGH)
github.com/Azure/go-ntlmssp v0.0.0-20221128193559 v0.1.1 CVE-2026-32952 (MED)

go get + go mod tidy also pulled forward the transitive golang.org/x/{mod,sync,sys,term,tools} as required by the x/net upgrade. x/crypto is now a transitive-only requirement (folded out of the explicit require block by go mod tidy) but is pinned at v0.53.0 in the build list and go.sum.

Verification

  • go build ./... — pass
  • go vet ./... — pass
  • go test ./internal/... ./apis/... — pass
  • go mod verify — all modules verified

Deferred (not fixed in this PR)

  • KSV-0113 (manifests/deploy.local.yaml) — Role secrets-admin manages secrets. Functionally required: authn writes user kubeconfigs as Secrets via the API (documented in the manifest). RBAC over-grant needing human judgment.
  • KSV-0111 (testdata/ldap-forumsys.yaml) — ClusterRoleBinding to admin role, in testdata/ (non-production test fixture).
  • KSV-0011/0013/0015/0016/0018 (manifests/deploy.local.yaml) — resource requests/limits + image tag on the local kind dev manifest (LOW/MED). authn:latest + imagePullPolicy: Never is the intentional local-kind pattern; the shipped Helm chart (the production artifact) already sources securityContext/resources from values and is Trivy-clean. Adding resource pins only to the dev manifest would drift from the chart's deliberate resources: {} choice.
  • DS-0026 (Dockerfile) — "add HEALTHCHECK" (LOW). The runtime stage is gcr.io/distroless/static:nonroot (no shell/curl), so a HEALTHCHECK instruction isn't meaningfully executable; liveness/readiness is handled at the k8s layer.

🤖 Generated with Claude Code

Bump vulnerable Go dependencies in go/authn to their fixed versions,
resolving the open Trivy HIGH/CRITICAL (and related MEDIUM) advisories
on go/authn/go.mod:

- golang.org/x/crypto -> v0.53.0 (>= fixed 0.52.0): CVE-2026-42508,
  CVE-2026-46595, CVE-2026-46597, CVE-2026-39828..39835, CVE-2026-39827,
  CVE-2026-39833, CVE-2026-39834, CVE-2026-46598, GO-2026-5932
- golang.org/x/net -> v0.56.0: CVE-2026-46600
- golang.org/x/text -> v0.39.0: CVE-2026-56852
- google.golang.org/grpc -> v1.82.1: GHSA-hrxh-6v49-42gf
- github.com/Azure/go-ntlmssp -> v0.1.1: CVE-2026-32952

go build ./..., go vet ./... and the unit tests all pass green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJsLqtryCgWwEt8FnPE1se
@braghettos
braghettos merged commit 20752de into main Aug 14, 2026
15 checks passed
@braghettos
braghettos deleted the security/trivy-remediation branch August 14, 2026 15:20
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.

2 participants