Skip to content

update dependencies - #2107

Merged
Despire merged 2 commits into
masterfrom
chore/latest-dependencies
May 18, 2026
Merged

update dependencies#2107
Despire merged 2 commits into
masterfrom
chore/latest-dependencies

Conversation

@Despire

@Despire Despire commented May 18, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Chores
    • Upgraded Kubernetes-related GitHub Actions to v5.
    • Bumped Go module dependency versions across cloud SDKs and supporting libraries.
    • Updated Python dependency pins.
    • Updated Go builder base image used for service container builds.
    • Updated deployed container image tags to a new release identifier.

Review Change Stack

@Despire Despire added test-set-autoscaling Will select test-sets related to autoscaling in the e2e tests test-set-ordinary Will select ordinary test-sets that tests the general functionally of building/modifying clusters labels May 18, 2026
@coderabbitai

coderabbitai Bot commented May 18, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 2dcdb8e1-17d7-4c18-880a-02acf9db8189

📥 Commits

Reviewing files that changed from the base of the PR and between 46b4b76 and 2a3176e.

📒 Files selected for processing (2)
  • manifests/claudie/kustomization.yaml
  • manifests/testing-framework/kustomization.yaml
✅ Files skipped from review due to trivial changes (1)
  • manifests/claudie/kustomization.yaml

Walkthrough

This PR updates CI Kubernetes actions to v5, bumps Go module versions (direct and indirect), updates Python requirements, upgrades build-stage Go images in service Dockerfiles to 1.26.3, and changes kustomize image tags to a new unified newTag.

Changes

Dependency and Tooling Updates

Layer / File(s) Summary
CI Workflow Actions Upgrade
.github/workflows/CI-pipeline.yml
azure/setup-kubectl and azure/k8s-set-context are upgraded from v4 to v5.
Go Module Dependencies
go.mod
Direct and indirect Go module versions (cloud SDKs, AWS SDK v2 components, OCI SDK, Kubernetes/sigs libs, observability, and toolchain golang.org/x/*) are bumped.
Python Requirements
requirements.txt
Pinned versions for documentation/CLI Python packages are updated.
Docker Go Base Images
services/ansibler/Dockerfile, services/autoscaler-adapter/Dockerfile, services/claudie-operator/Dockerfile, services/kube-eleven/Dockerfile, services/kuber/Dockerfile, services/manager/Dockerfile, services/terraformer/Dockerfile, services/testing-framework/Dockerfile
Build-stage Go base image updated from golang:1.26.2 to golang:1.26.3.
Kustomize image tag updates
manifests/claudie/kustomization.yaml, manifests/testing-framework/kustomization.yaml
ghcr.io/berops/claudie/* newTag values changed to 292fe8e-4207.

Possibly related PRs

  • berops/claudie#1746: Overlapping dependency and tooling version bumps across go.mod, requirements.txt, Docker builder images, and kustomize tags.
  • berops/claudie#1795: Similar Go module and Docker build-stage Go image updates.
  • berops/claudie#1803: Related changes to kustomize manifest image tag fields.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'update dependencies' accurately summarizes the main changeset, which comprehensively updates dependencies across multiple files including go.mod, requirements.txt, Dockerfiles (Go versions), GitHub Actions, and container image tags.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/latest-dependencies

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 and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (3)
services/manager/Dockerfile (1)

32-50: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Run the runtime container as a non-root user

Line 32 onward defines the final runtime image, but there is no USER directive, so the process runs as root. Please add a dedicated non-root user/group and switch before ENTRYPOINT.

Suggested fix
 FROM docker.io/library/alpine:3.23
@@
 COPY --from=build /go/kubectl /usr/local/bin/kubectl
 COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
 COPY --from=build  /go/services/manager/cmd/api-server/api-server /bin/services/manager/api-server
 
 WORKDIR /bin
 
-RUN chmod +x /usr/local/bin/kubectl && apk add -q bash
+RUN apk add -q bash && \
+    addgroup -S claudie && adduser -S -G claudie claudie && \
+    chmod +x /usr/local/bin/kubectl /bin/services/manager/api-server && \
+    chown -R claudie:claudie /bin/services/manager /usr/local/bin/kubectl
+USER claudie
@@
 ENTRYPOINT [ "./services/manager/api-server" ]
🤖 Prompt for 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.

In `@services/manager/Dockerfile` around lines 32 - 50, Add a non-root user and
switch to it before ENTRYPOINT: create a dedicated group/user (e.g., manager),
chown the runtime binaries (/bin/services/manager/api-server and
/usr/local/bin/kubectl) and any required directories (WORKDIR /bin) to that
user, and add a USER manager (or similar) directive before ENTRYPOINT; update
the RUN line that currently does chmod +x /usr/local/bin/kubectl to also create
the group/user and chown the files so the container process (ENTRYPOINT
"./services/manager/api-server") runs as the non-root manager user.
services/testing-framework/Dockerfile (1)

27-43: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Testing image should not execute tests as root

Line 27 onward defines the final container, but it keeps root privileges through ENTRYPOINT (Line 43). Add a non-root runtime user and ownership for copied test artifacts.

Suggested fix
 FROM docker.io/library/alpine:3.23
@@
 RUN chmod +x /usr/local/bin/kubectl && \
-    apk add -q bash
+    apk add -q bash && \
+    addgroup -S claudie && adduser -S -G claudie claudie && \
+    chown -R claudie:claudie /go/services/testing-framework /usr/local/bin/kubectl
 
 `#Run` server
 WORKDIR /go/services/testing-framework
+USER claudie
 ENTRYPOINT [ "./testing-framework.test", "-test.run", "TestClaudie", "-test.timeout=25000s", "-test.v", "./..." ]
🤖 Prompt for 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.

In `@services/testing-framework/Dockerfile` around lines 27 - 43, The container
currently runs tests as root via ENTRYPOINT and must run as a non-root user:
create a non-root user (e.g., "tester"), chown the copied artifacts
(/usr/local/bin/kubectl and
/go/services/testing-framework/testing-framework.test) and the WORKDIR
(/go/services/testing-framework) to that user, ensure executables keep their +x
bit, and add a USER tester (and optionally set HOME) before ENTRYPOINT so
testing-framework.test is executed without root privileges; target symbols: COPY
lines that place testing-framework.test and kubectl, RUN chmod +x ..., WORKDIR,
and ENTRYPOINT.
services/terraformer/Dockerfile (1)

30-49: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Final image still runs as root

From Line 30 to Line 49, the runtime stage never switches away from root. Add a non-root user and run worker under it.

Suggested fix
 FROM docker.io/library/alpine:3.23
@@
 RUN apk --no-cache add bash git
 
 `#Run` worker
 WORKDIR /bin
+RUN addgroup -S claudie && adduser -S -G claudie claudie && \
+    chown -R claudie:claudie /bin/services/terraformer /usr/local/bin/tofu
+USER claudie
 ENTRYPOINT [ "./services/terraformer/worker" ]
🤖 Prompt for 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.

In `@services/terraformer/Dockerfile` around lines 30 - 49, The image still runs
as root; create a non-root user/group in the runtime stage (e.g., add a system
group and user), chown the service binary and any needed directories
(referencing /bin/services/terraformer/worker and /bin as targets) to that user,
and switch to that user with USER before the ENTRYPOINT so the worker defined by
ENTRYPOINT ["./services/terraformer/worker"] runs non-root; ensure any created
home/workdir permissions are updated accordingly.
🤖 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 `@go.mod`:
- Around line 43-47: The go.mod requires k8s modules at v0.36.0 while existing
replace directives force v0.34.0, causing inconsistent dependencies; update the
require entries for k8s.io/api, k8s.io/apimachinery, k8s.io/client-go and any
other k8s-related requires (e.g., sigs.k8s.io/controller-runtime,
k8s.io/autoscaler/cluster-autoscaler if present) to v0.34.0 to match the replace
directives, or alternatively remove/update the replace directives to
v0.36.0—make the change consistently for the module names listed so the require
and replace versions align.

---

Outside diff comments:
In `@services/manager/Dockerfile`:
- Around line 32-50: Add a non-root user and switch to it before ENTRYPOINT:
create a dedicated group/user (e.g., manager), chown the runtime binaries
(/bin/services/manager/api-server and /usr/local/bin/kubectl) and any required
directories (WORKDIR /bin) to that user, and add a USER manager (or similar)
directive before ENTRYPOINT; update the RUN line that currently does chmod +x
/usr/local/bin/kubectl to also create the group/user and chown the files so the
container process (ENTRYPOINT "./services/manager/api-server") runs as the
non-root manager user.

In `@services/terraformer/Dockerfile`:
- Around line 30-49: The image still runs as root; create a non-root user/group
in the runtime stage (e.g., add a system group and user), chown the service
binary and any needed directories (referencing /bin/services/terraformer/worker
and /bin as targets) to that user, and switch to that user with USER before the
ENTRYPOINT so the worker defined by ENTRYPOINT ["./services/terraformer/worker"]
runs non-root; ensure any created home/workdir permissions are updated
accordingly.

In `@services/testing-framework/Dockerfile`:
- Around line 27-43: The container currently runs tests as root via ENTRYPOINT
and must run as a non-root user: create a non-root user (e.g., "tester"), chown
the copied artifacts (/usr/local/bin/kubectl and
/go/services/testing-framework/testing-framework.test) and the WORKDIR
(/go/services/testing-framework) to that user, ensure executables keep their +x
bit, and add a USER tester (and optionally set HOME) before ENTRYPOINT so
testing-framework.test is executed without root privileges; target symbols: COPY
lines that place testing-framework.test and kubectl, RUN chmod +x ..., WORKDIR,
and ENTRYPOINT.
🪄 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: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 54e73945-7366-4220-bbde-8489538aac33

📥 Commits

Reviewing files that changed from the base of the PR and between b3afa25 and 46b4b76.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (11)
  • .github/workflows/CI-pipeline.yml
  • go.mod
  • requirements.txt
  • services/ansibler/Dockerfile
  • services/autoscaler-adapter/Dockerfile
  • services/claudie-operator/Dockerfile
  • services/kube-eleven/Dockerfile
  • services/kuber/Dockerfile
  • services/manager/Dockerfile
  • services/terraformer/Dockerfile
  • services/testing-framework/Dockerfile

Comment thread go.mod
@Despire
Despire added this pull request to the merge queue May 18, 2026
Merged via the queue into master with commit fe02978 May 18, 2026
@Despire
Despire deleted the chore/latest-dependencies branch May 18, 2026 10:31
This was referenced May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test-set-autoscaling Will select test-sets related to autoscaling in the e2e tests test-set-ordinary Will select ordinary test-sets that tests the general functionally of building/modifying clusters

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants