feat: security rebuild - upgrade all dependencies and harden image - #1
Open
jsonmp-k8 wants to merge 4 commits into
Open
feat: security rebuild - upgrade all dependencies and harden image#1jsonmp-k8 wants to merge 4 commits into
jsonmp-k8 wants to merge 4 commits into
Conversation
jsonmp-k8
commented
Feb 25, 2026
Owner
- Upgrade Go deps: k8s.io/* v0.27.0→v0.31.4, controller-runtime v0.14.2→v0.19.4, prometheus/client_golang v1.15.1→v1.20.5
- Remove deprecated v1beta1 CRD code path (unsupported since k8s 1.22)
- Upgrade Ruby gems: fluentd 1.16.6, oj 3.16.9, ffi 1.17.1, and ~15 plugin upgrades
- Remove fluent-plugin-redis and fluent-plugin-mongo (force vulnerable transitive deps)
- Rewrite Dockerfile: photon:4.0→ruby:3.3-slim-bookworm, tdnf→apt-get, add non-root user
- Add pod and container security contexts to Helm chart (runAsNonRoot, drop ALL caps)
- Bump Helm chart version 0.4.1→0.5.0
- Update CI/CD: actions/checkout@v4, docker actions@v3, KinD v0.24.0, gh-release@v2
- Upgrade Go deps: k8s.io/* v0.27.0→v0.31.4, controller-runtime v0.14.2→v0.19.4, prometheus/client_golang v1.15.1→v1.20.5 - Remove deprecated v1beta1 CRD code path (unsupported since k8s 1.22) - Upgrade Ruby gems: fluentd 1.16.6, oj 3.16.9, ffi 1.17.1, and ~15 plugin upgrades - Remove fluent-plugin-redis and fluent-plugin-mongo (force vulnerable transitive deps) - Rewrite Dockerfile: photon:4.0→ruby:3.3-slim-bookworm, tdnf→apt-get, add non-root user - Add pod and container security contexts to Helm chart (runAsNonRoot, drop ALL caps) - Bump Helm chart version 0.4.1→0.5.0 - Update CI/CD: actions/checkout@v4, docker actions@v3, KinD v0.24.0, gh-release@v2 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Upgrade golang.org/x/crypto v0.24.0→v0.35.0 (CVE-2024-45337, CVE-2025-22869) - Upgrade golang.org/x/net v0.26.0→v0.35.0 - Upgrade golang.org/x/oauth2 v0.21.0→v0.27.0 (CVE-2025-22868) - Pin uri gem to 0.13.3 (CVE-2025-61594) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Remove fluent-plugin-google-cloud (grpc transitive dep has musl/glibc incompatibilities and compilation issues) - Add --disable-cxx to jemalloc configure to avoid libstdc++ runtime dep - Add Dockerfile.local for Alpine-based local development builds Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Debian bookworm dpkg uses lzma decompression which fails on memory-constrained Docker environments. Switch to ruby:3.3-alpine3.20 with apk package manager to avoid this issue while keeping the multi-stage Go builder intact. Signed-off-by: Jaison Paul <paul.jaison@gmail.com>
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.