fix: add podSecurityLabelSync=true to openshift-gitops#1105
Conversation
|
Hi @nmirasch. Thanks for your PR. I'm waiting for a redhat-developer member to verify that this patch is reasonable to test. If it is, they should reply with Tip We noticed you've done this a few times! Consider joining the org to skip this step and gain Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
|
/ok-to-test |
test/openshift/e2e/ginkgo/sequential/1-110_validate_podsecurity_alerts_test.go
Outdated
Show resolved
Hide resolved
fcce172 to
7aaca66
Compare
|
@svghadi rebased! |
7aaca66 to
4451f4c
Compare
|
/retest |
test/openshift/e2e/ginkgo/sequential/1-110_validate_podsecurity_alerts_test.go
Outdated
Show resolved
Hide resolved
4451f4c to
682d002
Compare
aca76b4 to
259807b
Compare
Signed-off-by: nmirasch <neus.miras@gmail.com>
Signed-off-by: nmirasch <neus.miras@gmail.com>
Signed-off-by: nmirasch <neus.miras@gmail.com>
…esence Signed-off-by: nmirasch <neus.miras@gmail.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: svghadi 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 |
259807b to
a22194c
Compare
|
/retest |
1 similar comment
|
/retest |
|
/lgtm |
88b2301
into
redhat-developer:master
|
/cherry-pick v1.20 |
|
@svghadi: #1105 failed to apply on top of branch "v1.18": 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 kubernetes-sigs/prow repository. |
|
@svghadi: #1105 failed to apply on top of branch "v1.19": 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 kubernetes-sigs/prow repository. |
|
@svghadi: #1105 failed to apply on top of branch "v1.20": 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 kubernetes-sigs/prow repository. |
…per#1105) * fix: add podSecurityLabelSync=true to openshift-gitops Signed-off-by: nmirasch <neus.miras@gmail.com> * e2e check at least one PSS label is set by Openshift Signed-off-by: nmirasch <neus.miras@gmail.com> * assert podSecurityLabelSync and audit=restricted for openshift-gitops ns Signed-off-by: nmirasch <neus.miras@gmail.com> * added podSecurityLabels validation for enforce, warn and *-version presence Signed-off-by: nmirasch <neus.miras@gmail.com> --------- Signed-off-by: nmirasch <neus.miras@gmail.com> (cherry picked from commit 88b2301)
…per#1105) * fix: add podSecurityLabelSync=true to openshift-gitops Signed-off-by: nmirasch <neus.miras@gmail.com> * e2e check at least one PSS label is set by Openshift Signed-off-by: nmirasch <neus.miras@gmail.com> * assert podSecurityLabelSync and audit=restricted for openshift-gitops ns Signed-off-by: nmirasch <neus.miras@gmail.com> * added podSecurityLabels validation for enforce, warn and *-version presence Signed-off-by: nmirasch <neus.miras@gmail.com> --------- Signed-off-by: nmirasch <neus.miras@gmail.com> (cherry picked from commit 88b2301)
…per#1105) * fix: add podSecurityLabelSync=true to openshift-gitops Signed-off-by: nmirasch <neus.miras@gmail.com> * e2e check at least one PSS label is set by Openshift Signed-off-by: nmirasch <neus.miras@gmail.com> * assert podSecurityLabelSync and audit=restricted for openshift-gitops ns Signed-off-by: nmirasch <neus.miras@gmail.com> * added podSecurityLabels validation for enforce, warn and *-version presence Signed-off-by: nmirasch <neus.miras@gmail.com> --------- Signed-off-by: nmirasch <neus.miras@gmail.com> (cherry picked from commit 88b2301)
* fix: add podSecurityLabelSync=true to openshift-gitops * e2e check at least one PSS label is set by Openshift * assert podSecurityLabelSync and audit=restricted for openshift-gitops ns * added podSecurityLabels validation for enforce, warn and *-version presence --------- (cherry picked from commit 88b2301) Signed-off-by: nmirasch <neus.miras@gmail.com>
* fix: add podSecurityLabelSync=true to openshift-gitops * e2e check at least one PSS label is set by Openshift * assert podSecurityLabelSync and audit=restricted for openshift-gitops ns * added podSecurityLabels validation for enforce, warn and *-version presence --------- (cherry picked from commit 88b2301) Signed-off-by: nmirasch <neus.miras@gmail.com>
What type of PR is this?
/kind bug
What does this PR do / why we need it:
This PR delegate Pod Security Standards (PSS) labeling for OpenShift GitOps namespaces to the cluster.
The operator sets security.openshift.io/scc.podSecurityLabelSync=true on openshift-* namespaces and no longer applies hardcoded pod-security.kubernetes.io/* values itself.
Which issue(s) this PR fixes:
Fixes https://redhat.atlassian.net/browse/GITOPS-9158
Test acceptance criteria: