Skip to content

Set readOnlyRootFilesystem on service operator controller-manager containers - #2008

Merged
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
stuggi:operator_ro_root
Aug 4, 2026
Merged

Set readOnlyRootFilesystem on service operator controller-manager containers#2008
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
stuggi:operator_ro_root

Conversation

@stuggi

@stuggi stuggi commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Harden the manager container securityContext by adding readOnlyRootFilesystem: true and dropping ALL capabilities. Mount an emptyDir at /tmp to support controller-runtime cert auto-generation and Go stdlib temporary file needs.

Jira: OSPRH-34174

…tainers

Harden the manager container securityContext by adding
readOnlyRootFilesystem: true and dropping ALL capabilities.
Mount an emptyDir at /tmp to support controller-runtime cert
auto-generation and Go stdlib temporary file needs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Martin Schuppert <mschuppert@redhat.com>
@openshift-ci
openshift-ci Bot requested review from dprince and rabi July 31, 2026 06:04
@github-actions

Copy link
Copy Markdown

OpenStackControlPlane CRD Size Report

Metric Value
CRD JSON size 365025 bytes (356KB)
Base branch size 365025 bytes
Change +0.00%
Status yellow — growing
Threshold reference
Color Range Meaning
🟢 green < 300KB Comfortable
🟡 yellow 300–400KB Growing
🟠 orange 400–750KB Concerning
🔴 red > 750KB Approaching 1.5MB etcd limit (cut in half to allow space for update)

@stuggi stuggi changed the title Set readOnlyRootFilesystem on service operator controller-manager con… Set readOnlyRootFilesystem on service operator controller-manager containers Jul 31, 2026
@stuggi

stuggi commented Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

/test openstack-operator-build-deploy-kuttl-4-20

@stuggi

stuggi commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

/retest

@Deydra71

Deydra71 commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

VErified with barbican, keystone and glance operators that read only root FS was applied in controller managers without changing service operator code individually.

@abays abays left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci Bot added the lgtm label Aug 4, 2026
@openshift-ci

openshift-ci Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abays, stuggi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot
openshift-merge-bot Bot merged commit d58be4b into openstack-k8s-operators:main Aug 4, 2026
8 checks passed
@stuggi

stuggi commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

/cherry-pick 18-stable

@openshift-cherrypick-robot

Copy link
Copy Markdown

@stuggi: new pull request created: #2030

Details

In response to this:

/cherry-pick 18-stable

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants