Repository navigation
Allow runtime/default seccomp on pipelines-scc SecurityContextConstraints - #4497
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4497 +/- ##
=======================================
Coverage 31.84% 31.84%
=======================================
Files 530 530
Lines 25534 25534
=======================================
Hits 8131 8131
Misses 17403 17403
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
infernus01
left a comment
There was a problem hiding this comment.
While preparing the upgrade to Pipeline v1.18 in kinflux, I set set-security-context: false in TektonConfig, so build pods are still admitted.
Could we add a release note telling those users to either add runtime/default to seccompProfiles in their SCCs, or keep set-security-context: false?
| seLinuxContext: | ||
| type: MustRunAs | ||
| seccompProfiles: | ||
| - runtime/default |
There was a problem hiding this comment.
Should we keep * to allow any profiles? I think some tasks like buildah or task needing some low level permission,
There was a problem hiding this comment.
Ya make sense
Lets keep what is required and if needed in future we can extend
removed * now
There was a problem hiding this comment.
I am thinking maybe we should remove runtime/default and keep only *. It will avoid issues with buldah, etc.
8432fe7 to
5563a59
Compare
@infernus01 with this scc update going forward upgrade will automatically take this change and we no need to do Do you mean adding this as RN ? |
Yes, since this PR covers clusters where TaskRuns run under pipelines-scc, but clusters that use their own SCCs won't pick it up, right? |
Make sense |
…ints With set-security-context enabled, Tekton injects seccompProfile: RuntimeDefault on init containers. OpenShift rejects the pod unless pipelines-scc lists that profile, which causes SCC admission failures. Signed-off-by: savitaashture <sashture@redhat.com>
5563a59 to
8e2ba5d
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jkhelil 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 |
|
/cherry-pick release-v0.82.x |
|
✅ Cherry-pick to A new pull request has been created to cherry-pick this change to PR: #4501 Please review and merge the cherry-pick PR. |
With set-security-context enabled, Tekton injects seccompProfile: RuntimeDefault on init containers. OpenShift rejects the pod unless pipelines-scc lists that profile, which causes SCC admission failures.
Upstream Pipeline changes : tektoncd/pipeline#9589
Issue:
Verification:
Changes
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
make test lintbefore submitting a PRSee the contribution guide for more details.
Release Notes