Skip to content

chore(deps): fix open Dependabot security alerts - #414

Open
prakash100198 wants to merge 2 commits into
developfrom
fix/dependabot-alerts-2026-12
Open

prakash100198 wants to merge 2 commits into
developfrom
fix/dependabot-alerts-2026-12

Conversation

@prakash100198

@prakash100198 prakash100198 commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Fixes: https://github.com/devtron-labs/sprint-tasks/issues/3010

Summary

Fixes 71 of the 96 open Dependabot alerts on devtron-services. These are dependency bumps only: go.mod / go.sum / vendor plus Go builder images, with no code changes.

Module Change Where
go-jose/v4 → v4.1.6 authenticator, ci-runner, common-lib, kubewatch
klauspost/compress → v1.18.7 all except authenticator
google.golang.org/grpc → v1.83.2 all
otel, otel/sdk, otel/trace, otlptrace exporters → v1.47.0 chart-sync, ci-runner, common-lib, kubelink, kubewatch, lens
containerd → v1.7.36 chart-sync, kubelink
helm.sh/helm/v3 v3.18.6 → v3.20.2 (k8s.io → v0.35.1) kubelink
argo-cd/v3 v3.4.7 → v3.4.10 (1 critical, 1 high) kubewatch

Go 1.26: otel v1.47 needs Go 1.26, so chart-sync, ci-runner, common-lib, kubelink and lens move to go 1.26.0 (kubewatch was already on it). Their Dockerfiles change golang:1.25.0 → golang:1.26.6, and golang:1.25-alpine3.21 → golang:1.26-alpine3.22, because no 1.26 image exists for alpine3.21. The runtime alpine 3.21 stays, since both alpines ship musl 1.2.5. authenticator, git-sensor and image-scanner stay on Go 1.25.

When common-lib is next repointed in a consumer, that consumer also needs Go 1.26.

Not fixed here (and why)

  • helm.sh/helm/v3 → 3.20.2 (GHSA-hr2v-4r36-88hr, medium). The first patched helm v3 needs k8s.io v0.35. k8s 0.35 drops the gogo ProtoMessage() methods that argo-cd v3.4's generated gateway code needs, so the orchestrator fails to compile (argo-cd/v3/pkg/apiclient/application/application.pb.gw.go: *v1.EventList does not implement protoiface.MessageV1). It is bumped only in kubelink, which doesn't use argo-cd. It is not bumped in the orchestrator, or in common-lib / common-lib-private, because those are consumed by the orchestrator and kubewatch and would push k8s 0.35 onto them. It unblocks with argo-cd v3.6 (k8s 0.37, Go 1.27).
  • vmware-tanzu/velero → 1.18.1 (GHSA-j2g6-362q-6qc6, medium, path traversal in velero's own restore tarball extraction). velero removed pkg/generated/clientset and the generated informers in v1.15, and every patched version is ≥ 1.18.1. kubewatch (5 velero handlers) and the ent orchestrator (1 file) use them, so this needs a code migration, not a bump. We only use the API types and the clientset, never the vulnerable restore path.
  • Alerts with no patched release yet: go-pg/pg, docker/docker, docker/distribution, quay/claircore, go-jose/v3.

Verification

  • Every module builds (go build ./...) after go mod tidy && go mod vendor.
  • common-lib test packages compile, except k8sResource/*_test.go. Those already fail on develop because they call NewK8sServiceImpl with a signature that no longer exists.
  • Checked every alerted module with go list -m: each one is at or above its patched version, except the helm (common-lib) and velero (common-lib, kubewatch) alerts above and the ones with no fix.

Related PRs (same Dependabot sweep)

kubelink compatibility fix

helm v3.20.2 pulls in client-go v0.35, which enables the WatchListClient feature by default. In watch-list mode client-go applies the informer transform twice (once into the reflector's temporary store, again in RealFIFO.Replace). transformHelmRelease then saw secrets whose release data had already been replaced by the app detail and failed with unexpected end of JSON input, so every informer sync logged an error and fell back to a full LIST of all helm release secrets.

transformHelmRelease now returns already transformed secrets unchanged (kubelink/pkg/k8sInformer). A unit test covers first and repeated transforms and the existing error cases.

Verified against the shared cluster with kubelink's real transform and a client-go v0.35 informer: develop-equivalent code made 5 transform calls with 1 error, the fix makes 4 with 0 errors, and the cached app details are identical.

🤖 Generated with Claude Code

- go-jose/v4 v4.1.6, klauspost/compress v1.18.7, grpc v1.83.2
- otel, otel/sdk, otel/trace and otlptrace exporters v1.47.0
- containerd v1.7.36 (chart-sync, kubelink)
- helm v3.20.2 in kubelink only (pulls k8s.io v0.35.1)
- argo-cd/v3 v3.4.10 (kubewatch)
- otel v1.47 needs Go 1.26: chart-sync, ci-runner, common-lib, kubelink
  and lens move to go 1.26.0 with golang:1.26 builder images

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP }404).\n

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP }404).\n

1 similar comment
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP }404).\n

client-go v0.35 (pulled in by helm v3.20.2) enables the WatchListClient
feature by default. In watch-list mode the reflector applies the informer
transform while streaming into its temporary store and RealFIFO.Replace
applies it again, so transformHelmRelease saw secrets whose release data
had already been replaced by the app detail and failed with
"unexpected end of JSON input". Every informer sync then logged an error
and fell back to a full LIST of all helm release secrets.

Already transformed secrets are now returned unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant