Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge runAsUser and runAsNonRoot checks in a single testcase/check. #2654

Merged

Conversation

greyerof
Copy link
Contributor

@greyerof greyerof commented Dec 18, 2024

These two test cases have been merged:

  • access-control-security-context-run-as-non-root-user-check
  • access-control-security-context-non-root-user-id-check

As a result, both securityConstraint fields "runAsNonRoot" and "runAsUser" are checked now inside the existing test case access-control-security-context-non-root-user-id-check

To pass the test case, either:
a) runAsUser must be != 0 at pod or container level.
b) runAsNonRoot must be true at pod or container level.

These two test cases have been merged:
access-control-security-context-run-as-non-root-user-check
access-control-security-context-non-root-user-id-check

As a result, both securityConstraint fields "runAsNonRoot" and
"runAsUser" are checked inside the existing test case
access-control-security-context-run-as-non-root-user-check

To pass the test case, either:
a) runAsUser must be `!= 0` at pod or container level.
b) runAsNonRoot must be `true` at pod or container level.
@dcibot
Copy link
Collaborator

dcibot commented Dec 18, 2024

greyerof added a commit to redhat-best-practices-for-k8s/certsuite-qe that referenced this pull request Dec 20, 2024
Due to this certsuite PR:
redhat-best-practices-for-k8s/certsuite#2654 ,
the runAsUser and runAsNonRoot securityContext fields check has been
merged into access-control-security-context-run-as-non-root-user-check.
@dcibot
Copy link
Collaborator

dcibot commented Dec 20, 2024

@dcibot
Copy link
Collaborator

dcibot commented Dec 20, 2024

@dcibot
Copy link
Collaborator

dcibot commented Dec 20, 2024

@bnshr bnshr merged commit 8b19539 into redhat-best-practices-for-k8s:main Dec 23, 2024
35 of 36 checks passed
@dcibot
Copy link
Collaborator

dcibot commented Dec 23, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants