Repository navigation
fix(k8s): set containerSecurityContext for mattermost - #2939
Merged
Merged
Conversation
Configure allowPrivilegeEscalation=false and capabilities.drop=[ALL] for Mattermost to satisfy the restricted Pod Security standard. Closes #2937
dan-petty
marked this pull request as ready for review
October 31, 2026 22:01
dan-petty
pushed a commit
that referenced
this pull request
Oct 31, 2026
🤖 I have created a release *beep* *boop* --- ## [0.35.0](v0.34.0...v0.35.0) (2026-10-31) ### Features * **roadmap:** items have one owner label and a claim ends a Job ([#2935](#2935)) ([8b7dc4b](8b7dc4b)), closes [#2910](#2910) ### Bug Fixes * **k8s:** set containerSecurityContext for mattermost ([#2939](#2939)) ([5c79314](5c79314)) * **k8s:** specify runAsUser for mattermost-operator ([#2934](#2934)) ([fbf7427](fbf7427)) * **roadmap:** show the cause of a model call stop in the Job comment ([#2938](#2938)) ([e988710](e988710)), closes [#2922](#2922) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.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.
Summary
Configure
containerSecurityContextfor the Mattermost Custom Resource.This satisfies the restricted Pod Security standard enforced by the
mattermostnamespace.Closes #2937
Changes
allowPrivilegeEscalation: falseandcapabilities.drop: ["ALL"]underspec.podTemplate.containerSecurityContextink8s/mattermost/mattermost.yaml.tests/invariants/test_k8s_argocd_apps.py.2937-mattermost-container-security-context.Verification
fail-to-passcheck run:AssertionError: assert None is Falsetests/invariants/test_k8s_argocd_apps.pypassed.