fix(clickhouse): upgrade ClickHouse Operator to v0.27.0 - #868
Open
jothilal22 wants to merge 3 commits into
Open
Conversation
Operator 0.21.2 (3+ years old) drops container-level securityContext during Pod reconciliation, breaking PSA restricted clusters. Fields like allowPrivilegeEscalation, capabilities, and seccompProfile are silently removed from generated Pods. Upgrade to v0.27.0 which correctly propagates containers[].securityContext into reconciled Pods. Also updates all 3 CRD schemas to match the new operator version. Backward compatible — no behavior change for users not setting container-level securityContext.
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.
Fixes #852
Summary
Upgrades the bundled ClickHouse Operator from v0.21.2 → v0.27.0 to fix
container-level
securityContextbeing silently dropped during Pod reconciliation.Problem
Users deploying SigNoz in security-hardened Kubernetes clusters (GKE, EKS, AKS,
OpenShift, Kyverno/Gatekeeper enforced) were unable to enforce Pod Security
Admission
restrictedpolicy on ClickHouse pods.The root cause: ClickHouse Operator v0.21.2 silently drops
containers[].securityContextduring reconciliation. Fields explicitly set inthe
ClickHouseInstallationspec includingallowPrivilegeEscalation,capabilities, andseccompProfileare stripped before the Pod is created.This means even when the Helm chart is correctly configured, the resulting Pod contains:
Kubernetes does not inherit these fields from pod-level securityContext —
they must be set at the container level:
This caused:
Admission failures in PSA restricted clusters
Security/compliance violations in regulated environments
Inability to run ClickHouse as non-root
Root Cause
The SigNoz chart was shipping ClickHouse Operator v0.21.2, released over
3 years ago. This was confirmed by an Altinity maintainer:
Operator versions v0.25+, v0.26+, and v0.27.0 all correctly propagate
containers[].securityContext into reconciled Pods.
Changes
How to Verify
Before this fix: null
After this fix: {"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},...}
Backward Compatibility
2.Fully backward compatible — existing deployments unaffected
3.Upstream CRD schemas sourced directly from the official Altinity Helm chart