security: remediate Trivy HIGH/CRITICAL findings - #24
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Remediates the tractable open Trivy HIGH/CRITICAL (and related MEDIUM) code-scanning findings on
go/authn/go.modby bumping the flagged vulnerable Go dependencies to their fixed versions. No source changes — dependency bumps only.Fixed (VULN — Go dependency bumps)
golang.org/x/cryptogolang.org/x/netgolang.org/x/textgoogle.golang.org/grpcgithub.com/Azure/go-ntlmsspgo get+go mod tidyalso pulled forward the transitivegolang.org/x/{mod,sync,sys,term,tools}as required by thex/netupgrade.x/cryptois now a transitive-only requirement (folded out of the explicitrequireblock bygo mod tidy) but is pinned at v0.53.0 in the build list and go.sum.Verification
go build ./...— passgo vet ./...— passgo test ./internal/... ./apis/...— passgo mod verify— all modules verifiedDeferred (not fixed in this PR)
manifests/deploy.local.yaml) — Rolesecrets-adminmanages secrets. Functionally required: authn writes user kubeconfigs as Secrets via the API (documented in the manifest). RBAC over-grant needing human judgment.testdata/ldap-forumsys.yaml) — ClusterRoleBinding to admin role, intestdata/(non-production test fixture).manifests/deploy.local.yaml) — resource requests/limits + image tag on the localkinddev manifest (LOW/MED).authn:latest+imagePullPolicy: Neveris the intentional local-kind pattern; the shipped Helm chart (the production artifact) already sourcessecurityContext/resourcesfrom values and is Trivy-clean. Adding resource pins only to the dev manifest would drift from the chart's deliberateresources: {}choice.Dockerfile) — "add HEALTHCHECK" (LOW). The runtime stage isgcr.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