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

Fix for issue 1166: Allow CAP_NET_RAW and NET_RAW drop capabilities #1168

Merged
merged 5 commits into from
Oct 17, 2024

Conversation

epasham
Copy link
Contributor

@epasham epasham commented Sep 26, 2024

Related Issue(s)

kyverno does not seem to recognize resources dropping the capabilities as given below

securityContext:
capabilities:
drop: ["NET_RAW"]

Description

require-cap-net-raw policy only allows securityContext capabilities drop for CAP_NET_RAW.
Good option is to allow both CAP_NET_RAW and NET_RAW drop capability.

closes #1166

Checklist

  • [] I have read the policy contribution guidelines.
  • [] I have added test manifests and resources covering both positive and negative tests that prove this policy works as intended.
  • [] I have added the artifacthub-pkg.yml file and have verified it is complete and correct.

Signed-off-by: epasham <[email protected]>
@realshuting
Copy link
Member

@epasham - can you add "closes #1166" in the PR description to automatically close the issue?

Copy link
Member

@realshuting realshuting left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@MariamFahmy98 - can you please re-review?

@realshuting realshuting merged commit 7c3df92 into kyverno:main Oct 17, 2024
271 checks passed
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.

[Bug] Security Capabilites must omit the CAP prefix which is required by Kyverno policies
5 participants