Skip to content

feat(misconf): add ephemeral container support to KSV012#537

Open
adityaupasani2 wants to merge 4 commits intoaquasecurity:mainfrom
adityaupasani2:fix/ksv012-ephemeral-containers
Open

feat(misconf): add ephemeral container support to KSV012#537
adityaupasani2 wants to merge 4 commits intoaquasecurity:mainfrom
adityaupasani2:fix/ksv012-ephemeral-containers

Conversation

@adityaupasani2
Copy link

Summary

KSV012 currently checks only containers for runAsNonRoot,
but Pod Security Standards also require initContainers and
ephemeralContainers to be checked.

Changes

  • Extended getNonRootContainers and getRootContainers in KSV012
    to include initContainers and ephemeralContainers
  • Updated recommended_action metadata to reflect the change
  • Added test cases for initContainers and ephemeralContainers

Related Issue

Related to #9936

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.

1 participant