Repository navigation
docs: cover clusters that set their own seccomp - #484
Merged
Merged
Conversation
Document in the chart's "Security context" section how to remove the seccomp profile of each component (`<component>.podSecurityContext. seccompProfile: null` for protes, mongodb, broker and flower; the worker uses that of protes), when it's needed, and a `helm template` check of the rendered manifests that prints 0. Add a chart test that pins the documented behaviour: by default every pod asks for RuntimeDefault, with the four nulls none does. Closes #483 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV
Reviewer's GuideDocumentationDocument when and how to remove component seccomp profiles, and how to verify the rendered manifests before installing.
TestsTest that workloads use RuntimeDefault by default and that setting the component profiles to null removes seccomp from the rendered manifests.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #484 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 31 31
Lines 3038 3038
=========================================
Hits 3038 3038 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
uniqueg
marked this pull request as ready for review
November 12, 2026 12:48
Linked issuesChecked at commit 9fc996d #483 docs: cover clusters that set their own seccomp · 2 of 2 met
|
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="deployment/README.md" line_range="623" />
<code_context>
+helm template protes deployment -f values-prod.yaml \
+ --api-versions route.openshift.io/v1 \
+ --api-versions security.openshift.io/v1 \
+ | grep -ci seccomp
+```
+
</code_context>
<issue_to_address>
**Expected clean check fails**
When the rendered manifests contain no `seccomp` matches and the command runs in a shell that treats nonzero status as failure, `grep -ci seccomp` returns status 1 for no matches, so the shell aborts or reports the documented verification as failed.
Handle grep’s no-match status as success, for example by appending `|| :` to the pipeline.
Also at `deployment/README.md:624`.
</issue_to_address>Sourcery assessment
Approval pending. 1 finding to address first.
Blocking findings: deployment/README.md:623
`grep -c` exits with status 1 when it finds no match, which is the expected result; say so, and how to keep scripts with `set -e` going. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV
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.
Summary
Some clusters set their own seccomp profile and reject pods that ask for one, so the release doesn't start there with the default values (
seccompProfile: {type: RuntimeDefault}). The chart's "Security context" section (next to the OpenShift notes) now:protes,mongodb,brokerandflower(<component>.podSecurityContext.seccompProfile: null; the worker uses the context ofprotes),helm template … --api-versions route.openshift.io/v1 --api-versions security.openshift.io/v1 | grep -ci seccompprints0).A new chart test (
test_seccomp_profile) pins the documented behaviour: by default every pod (app, worker, MongoDB, broker, Flower) asks forRuntimeDefault; with the four nulls, no manifest mentions seccomp. The keys work as documented, so the chart itself is unchanged.Closes #483
Lane
Light lane: docs plus a test only, no change to chart templates, values or logic.
Verification
helm template protes deployment -f deployment/ci/test-values.yaml --set flower.enabled=true --set flower.existingSecret=flower --api-versions route.openshift.io/v1 --api-versions security.openshift.io/v1 | grep -ci seccomp:5with the defaults,0with the four nulls in a values file (helm 3.22.1, foca-common 0.4.0 matchingcharts.sha256)pytest tests/test_chart.py tests/test_chart_readme.py: 259 passed (incl.test_seccomp_profile[default]and[null])pre-commit run --files deployment/README.md tests/test_chart.py: all passed (gitleaks and actionlint skipped locally, as their Go toolchain can't be downloaded in the sandbox; CI runs them)mkdocs build --strict: passedCI passedgreen, Read the Docs build succeeded)Declined review findings
None (light lane, no reviewer subagents).
Open questions
None.
🤖 Generated with Claude Code
https://claude.ai/code/session_011FSoqMpmDCfbACLj3uy6xV
Summary by Sourcery
Document and test support for disabling chart-provided seccomp profiles on clusters that manage profiles themselves.
Enhancements:
Documentation:
Tests: