Skip to content

fix(k8s): specify runAsUser for mattermost-operator - #2934

Merged
dan-petty merged 1 commit into
mainfrom
fix/2932-mattermost-operator-runasuser
Oct 31, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/2932-mattermost-operator-runasuser

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Summary

Configure numeric user and group identifiers (65532) for mattermost-operator.
This allows the kubelet to verify unprivileged execution when runAsNonRoot: true is set.

Closes #2932

Changes

  • Add runAsUser: 65532 and runAsGroup: 65532 to podSecurityContext in k8s/mattermost/mattermost-operator-values.yaml.
  • Add an invariant test in tests/invariants/test_k8s_argocd_apps.py ensuring numeric user identifiers are specified.
  • Archive OpenSpec change 2932-mattermost-operator-runasuser.

Verification

  • fail-to-pass check run:
    • Base: failed with AssertionError: assert None == 65532
    • Branch: passed
  • All 38 tests in tests/invariants/test_k8s_argocd_apps.py passed.

Add explicit numeric user and group identifiers to mattermost-operator podSecurityContext for runAsNonRoot validation.

Closes #2932
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Oct 31, 2026
@dan-petty
dan-petty marked this pull request as ready for review October 31, 2026 21:42
@dan-petty
dan-petty merged commit fbf7427 into main Oct 31, 2026
18 checks passed
@dan-petty
dan-petty deleted the fix/2932-mattermost-operator-runasuser branch October 31, 2026 21:42
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(k8s): specify runAsUser for mattermost-operator

1 participant