TRT-2776: Fix nginx PID file permission denied under restricted SCC#16
TRT-2776: Fix nginx PID file permission denied under restricted SCC#16jhadvig wants to merge 1 commit into
Conversation
nginx writes its PID to /run/nginx.pid at startup. Under OpenShift's restricted SCC the container runs as non-root (UID 1001), so /run/ must be group-writable. Add /run to the existing chgrp/chmod block. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
@jhadvig: This pull request references TRT-2776 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 bug to target the "5.0.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. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jhadvig 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 |
|
@jhadvig: all tests passed! 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. |
|
Closing in favor of #17 |
Summary
Add
/runto thechgrp/chmodblock so nginx can write its PID file when running as non-root under OpenShift's restricted SCC.Why
nginx writes to
/run/nginx.pidat startup. The container runs as UID 1001 under the restricted SCC, so/run/must be group-writable. PR #14 fixed the nginx binary issue but missed this directory, causing:This results in the console plugin pod crash-looping on every TechPreview cluster, triggering CVO
ClusterOperatorDegradedalerts and blocking CVO PR #1423 (the un-revert of #1398).Test plan
🤖 Generated with Claude Code