Skip to content

chore(deps): clear the image's high-severity findings - #277

Merged
sunib merged 1 commit into
mainfrom
chore/dependency-refresh
Jul 27, 2026
Merged

sunib merged 1 commit into
mainfrom
chore/dependency-refresh

Conversation

@sunib

@sunib sunib commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

The published chart's Artifacthub security report flags two HIGHs against ghcr.io/configbutler/gitops-reverser:0.39.2. Both are in the sops binary the image bundles, not in the manager:

Severity ID Package Binary
HIGH GHSA-hrxh-6v49-42gf google.golang.org/grpc 1.81.1 sops
HIGH CVE-2026-39822 Go stdlib 1.26.4 (os.Root symlink escape) sops
MEDIUM CVE-2026-42505 Go stdlib 1.26.4 (crypto/tls) sops
MEDIUM GHSA-gcjh-h69q-9w9g cel-go 0.28.1 manager

SOPS_VERSION moves to v3.13.3, which go version -m confirms is built with go1.26.5 and grpc v1.82.1 — that retires all three sops findings. go get -u ./... && go mod tidy takes cel-go to 0.30.0, retiring the manager's, and carries ~35 other modules with it (k8s.io/apiextensions-apiserver 0.36.1→0.36.3, otel exporters →1.44.0, go-openapi/swag →0.27.3, x/tools →0.48.0). The k8s.io core libraries were already at the newest 0.36.3.

Checked and left alone because they are already current: all three pinned base-image digests (golang:1.26.5, alpine:3.24, gcr.io/distroless/static:debug) resolve to exactly the digests in the Dockerfile, and Go 1.26.5 is the latest release.

Out of scope: the devcontainer's tool pins. They are dev-only, never reach the published image, and validating a bump means rebuilding the container this work runs inside.

Validation: task fmt, generate, manifests, vet, lint, test (77.9%, baseline 78.0%) and task test-e2e (69 of 91 specs, 0 failed) all pass.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Maintenance
    • Updated the bundled SOPS utility to a newer patch release.
    • Refreshed application libraries and supporting components to newer versions, including monitoring, tracing, API, and security-related components.
    • Included dependency updates with bug fixes, compatibility improvements, and security enhancements.

The published chart's Trivy report shows two HIGHs, and both live in the
sops binary the image bundles, not in the manager: grpc 1.81.1
(GHSA-hrxh-6v49-42gf) and a Go 1.26.4 stdlib os.Root symlink escape
(CVE-2026-39822). sops v3.13.3 is built with go1.26.5 and grpc v1.82.1,
so the bump retires both plus the crypto/tls MEDIUM alongside them.

The manager's own MEDIUM was cel-go 0.28.1 (GHSA-gcjh-h69q-9w9g);
`go get -u ./...` carries it to 0.30.0 and moves the rest of the module
graph with it.

The three pinned base-image digests already resolve to the current tags
and Go 1.26.5 is the newest release, so nothing there needed to move.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 27, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The Docker build updates SOPS to v3.13.3. The Go module manifest updates direct dependencies and multiple indirect dependency groups, including OpenTelemetry, Kubernetes, OpenAPI, and related modules.

Changes

Version updates

Layer / File(s) Summary
SOPS build version
Dockerfile
The SOPS_VERSION build argument changes from v3.13.2 to v3.13.3.
Go dependency versions
go.mod
Direct and indirect dependencies are updated across the main, OpenAPI, OpenTelemetry, Kubernetes, and related module groups.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: updating dependencies to clear high-severity findings in the image.
Description check ✅ Passed The description is detailed and covers the security issue, dependency updates, and validation, though it doesn't follow the template headings exactly.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/dependency-refresh

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@Dockerfile`:
- Line 56: Update the SOPS download flow around the SOPS_VERSION build argument
to verify the architecture-specific binary before chmod and packaging. Use
SOPS’s signed checksums/provenance artifact or an equivalent SHA-256 check,
ensure the selected architecture’s checksum matches the downloaded binary, and
fail the build on mismatch.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: c27eb403-5cdc-4844-92c8-aec4f5b27e72

📥 Commits

Reviewing files that changed from the base of the PR and between a3daa6b and 76a174a.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (2)
  • Dockerfile
  • go.mod

Comment thread Dockerfile Resolved
@codecov

codecov Bot commented Jul 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sunib
sunib merged commit 2589c6a into main Jul 27, 2026
19 checks passed
@sunib
sunib deleted the chore/dependency-refresh branch July 27, 2026 15:43
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