OTA-2111: set readOnlyRootFilesystem on console plugin container - #1452
OTA-2111: set readOnlyRootFilesystem on console plugin container#1452jrangelramos wants to merge 1 commit into
Conversation
|
@jrangelramos: This pull request references OTA-2111 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the weakness to target the "5.1.0" version, but no target version was set. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. WalkthroughThe plugin deployment now uses a read-only root filesystem. Four ChangesPlugin filesystem hardening
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to The change enables a read-only root filesystem while providing the writable runtime paths nginx needs; no actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.) Full details: Stable And Deterministic Test NamesExplanation The pull request changes only Full details: Test Structure And QualityExplanation PASS: The pull request changes only Full details: Microshift Test CompatibilityExplanation PASS — The pull request changes only Full details: Single Node Openshift (Sno) Test CompatibilityExplanation The pull request changes only Full details: Topology-Aware Scheduling CompatibilityExplanation PASS — The only pull-request changes add Full details: Ote Binary Stdout ContractExplanation PASS: The pull request changes only Full details: Ipv6 And Disconnected Network Test CompatibilityExplanation The pull request changes only Full details: No-Weak-CryptoExplanation PASS — The pull request changes only Full details: Container-PrivilegesExplanation PASS: The pull request adds Full details: No-Sensitive-Data-In-LogsExplanation PASS. The pull request changes only ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
Scheduling tests matching the |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ankitathomas, jrangelramos, wking The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@jrangelramos: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. I understand the commands that are listed here. |
|
/hold |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2a9c1f2 to
b1f0d67
Compare
|
New changes are detected. LGTM label has been removed. |
|
/verified by @jrangelramos Verification: pod runs properly (no error), with mounted emptyDirs serving content. $ oc get deployment -n openshift-cluster-update-console-plugin cluster-update-console-plugin -o jsonpath='{.spec.template.spec.volumes[?(@.emptyDir)].name}'
tmp cache-nginx lib-nginx-tmp run
$ oc get pod
NAME READY STATUS RESTARTS AGE
cluster-update-console-plugin-7c88cb8fdd-mfl42 1/1 Running 0 16h
$ oc logs -n openshift-cluster-update-console-plugin cluster-update-console-plugin-7c88cb8fdd-mfl42 | grep -iE 'emerg|alert|crit|error|warn|denied|readonly|read-only|permission|failed' | wc -l
0
$ oc logs -n openshift-cluster-update-console-plugin cluster-update-console-plugin-7c88cb8fdd-mfl42 | tail -5
10.130.0.114 - - [27/Aug/2026:11:19:55 +0000] "GET /plugin-manifest.json HTTP/1.1" 304 0 "https://console-openshift-console.apps.jeramos-1348.ci-psi.rhocf-dev.net/administration/cluster-update" "Mozilla/5.0 (X11; Linux x86_64; rv:153.0) Gecko/20100101 Firefox/153.0"
10.130.0.114 - - [27/Aug/2026:11:19:59 +0000] "GET /plugin-manifest.json HTTP/1.1" 304 0 "https://console-openshift-console.apps.jeramos-1348.ci-psi.rhocf-dev.net/administration/cluster-update" "Mozilla/5.0 (X11; Linux x86_64; rv:153.0) Gecko/20100101 Firefox/153.0"
10.130.0.114 - - [27/Aug/2026:11:19:59 +0000] "GET /plugin-entry.d64e136edd53ccdaeb2d.min.js HTTP/1.1" 200 17557 "https://console-openshift-console.apps.jeramos-1348.ci-psi.rhocf-dev.net/administration/cluster-update" "Mozilla/5.0 (X11; Linux x86_64; rv:153.0) Gecko/20100101 Firefox/153.0"
10.130.0.114 - - [27/Aug/2026:11:19:59 +0000] "GET /plugin-manifest.json HTTP/1.1" 304 0 "https://console-openshift-console.apps.jeramos-1348.ci-psi.rhocf-dev.net/administration/cluster-update" "Mozilla/5.0 (X11; Linux x86_64; rv:153.0) Gecko/20100101 Firefox/153.0"
10.130.0.114 - - [27/Aug/2026:11:20:13 +0000] "GET /plugin-manifest.json HTTP/1.1" 304 0 "https://console-openshift-console.apps.jeramos-1348.ci-psi.rhocf-dev.net/administration/cluster-update" "Mozilla/5.0 (X11; Linux x86_64; rv:153.0) Gecko/20100101 Firefox/153.0"
|
|
@jrangelramos: This PR has been marked as verified by DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
/unhold |

Summary
readOnlyRootFilesystem: trueto the console plugin container'ssecurityContextemptyDirvolumes for/tmp,/var/cache/nginx, and/run— the paths nginx needs at runtimeReferences
Test plan
volumeMountsandvolumesmake test)🤖 Generated with Claude Code
Summary by CodeRabbit