-
Notifications
You must be signed in to change notification settings - Fork 258
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
feat: block-kubectl-cp policy #1216
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Darkhood148 <ujjwal.sharma9999999@gmail.com>
Signed-off-by: Darkhood148 <ujjwal.sharma9999999@gmail.com>
ddfa426
to
15ef878
Compare
Hey @JimBugwadia, I am done with all the changes including chainsaw tests. Could you please review it? |
d945dab
to
d37184c
Compare
Signed-off-by: Darkhood148 <ujjwal.sharma9999999@gmail.com>
d37184c
to
748dbb4
Compare
Hi @Darkhood148 - can you please fix the lint error? https://github.com/kyverno/policies/actions/runs/12899995348/job/36452593199?pr=1216 You will need to re-run the artifacthub ID generator to incorporate changes: https://github.com/kyverno/policies/blob/main/.hack/update-artifacthub-pkg.sh Also, do we need the label check in this policy? I recommend simplifying by removing this. Users can opt-out via exceptions, etc. which seems better from a security perspective. |
fbd3c98
to
59142b3
Compare
Signed-off-by: Darkhood148 <ujjwal.sharma9999999@gmail.com>
59142b3
to
12b6514
Compare
Hi @JimBugwadia I have done the linting changes and removed the usage of labels. Could you please review the updates? |
Related Issue(s)
#1169
Description
Created a policy for the mentioned issue i.e. a policy that can block
kubectl cp
for pods with a given labelChecklist