Skip to content

docs: cover clusters that set their own seccomp - #484

Merged
uniqueg merged 2 commits into
devfrom
docs/483-seccomp-null
Nov 12, 2026
Merged

uniqueg merged 2 commits into
devfrom
docs/483-seccomp-null

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

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:

  • says when the profile must be removed,
  • shows the values that remove it for protes, mongodb, broker and flower (<component>.podSecurityContext.seccompProfile: null; the worker uses the context of protes),
  • shows how to check the rendered manifests before installing (helm template … --api-versions route.openshift.io/v1 --api-versions security.openshift.io/v1 | grep -ci seccomp prints 0).

A new chart test (test_seccomp_profile) pins the documented behaviour: by default every pod (app, worker, MongoDB, broker, Flower) asks for RuntimeDefault; 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: 5 with the defaults, 0 with the four nulls in a values file (helm 3.22.1, foca-common 0.4.0 matching charts.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: passed
  • CI: all checks passed (CI passed green, 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:

  • Document how to remove chart-provided seccomp profiles for clusters that assign their own profiles, including component-specific values and manifest verification steps.

Documentation:

  • Add Security context documentation covering removal of default seccomp profiles for the application, MongoDB, broker, and Flower, with the worker inheriting the application setting.

Tests:

  • Add chart coverage verifying that workloads request RuntimeDefault seccomp by default and omit seccomp configuration when the documented values are set to null.

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
@sourcery-ai

sourcery-ai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Documentation

Document when and how to remove component seccomp profiles, and how to verify the rendered manifests before installing.

  • deployment/README.md L591-626

Tests

Test that workloads use RuntimeDefault by default and that setting the component profiles to null removes seccomp from the rendered manifests.

  • tests/test_chart.py L599-637

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@read-the-docs-community

read-the-docs-community Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 proTES | 🛠️ Build #35838882 | 📁 Comparing 9fc996d against latest (3483412)

  🔍 Preview build  

1 file changed
± deployment/index.html

@codecov

codecov Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (3483412) to head (9fc996d).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@uniqueg
uniqueg marked this pull request as ready for review November 12, 2026 12:48
@sourcery-ai

sourcery-ai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Linked issues

Checked at commit 9fc996d

#483 docs: cover clusters that set their own seccomp · 2 of 2 met

# Requirement Status Notes
1 Document when to use the null seccomp profile values for protes, mongodb, broker and flower. ✅ Met The README explains when clusters that assign their own profile need these values, lists all four components, and notes that the worker uses protes's context.
2 Show how to check the rendered manifests before installing, with grep -ci seccomp giving 0. ✅ Met The README provides a helm template command piped to grep -ci seccomp and explains the expected output and grep exit status.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread deployment/README.md Resolved
`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

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sourcery assessment

Approved.

@uniqueg
uniqueg merged commit e0bdfd2 into dev Nov 12, 2026
36 checks passed
@uniqueg
uniqueg deleted the docs/483-seccomp-null branch November 12, 2026 13:09
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.

docs: cover clusters that set their own seccomp

1 participant