Skip to content

feat: security rebuild - upgrade all dependencies and harden image - #1

Open
jsonmp-k8 wants to merge 4 commits into
mainfrom
security-rebuild-v2
Open

feat: security rebuild - upgrade all dependencies and harden image#1
jsonmp-k8 wants to merge 4 commits into
mainfrom
security-rebuild-v2

Conversation

@jsonmp-k8

Copy link
Copy Markdown
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

jsonmp-k8 and others added 4 commits February 25, 2026 00:17
- 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>
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