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

[HOLD FOR v1.4.2] Pod exec samples; mutation for imagePullSecrets #77

Merged
merged 20 commits into from Aug 8, 2021
Merged

[HOLD FOR v1.4.2] Pod exec samples; mutation for imagePullSecrets #77

merged 20 commits into from Aug 8, 2021

Conversation

chipzoller
Copy link
Member

@chipzoller chipzoller commented Jul 15, 2021

Closes kyverno/kyverno#2151
Closes kyverno/kyverno#1069
Closes #64
Closes #78
Closes #79
Closes kyverno/kyverno#2189
Closes kyverno/kyverno#2239

Adds:

  • Pod mutation policy to add imagePullSecrets
  • Pod mutation policy to add imagePullPolicy=Always
  • Node label creation restriction
  • 5 policies to deny Pod exec operations based on the CONNECT option in Kyverno v1.4.2
  • Image verification policy for Cosign in Kyverno v1.4.2
  • Validate policy to drop CAP_NET_RAW

Changes:

Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
@chipzoller chipzoller added sample Sample policy hold labels Jul 15, 2021
@chipzoller chipzoller added this to the 1.4.2 milestone Jul 15, 2021
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Copy link
Member

@JimBugwadia JimBugwadia left a comment

Choose a reason for hiding this comment

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

looks good. minor comments / nits.

best-practices/add_ns_quota.yaml Outdated Show resolved Hide resolved
best-practices/add_ns_quota.yaml Outdated Show resolved Hide resolved
other/block_updates_deletes.yaml Outdated Show resolved Hide resolved
other/limit_containers_per_pod.yaml Outdated Show resolved Hide resolved
@chipzoller
Copy link
Member Author

All good feedback, thank you. I'll work on them. For generating the website MD, I'm thinking this is the first case where we can merge these into all effective release branches because the policies themselves carry the minversion annotation, and we want all branches to, for example, pick up the enhanced descriptions added above. So the release versioning instructions should probably carry some instructions for these cases as well.

Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
@chipzoller
Copy link
Member Author

@JimBugwadia I think we can go ahead and approve/merge this if you're ok.

Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
@chipzoller
Copy link
Member Author

@JimBugwadia please provide review.

Copy link
Member

@JimBugwadia JimBugwadia left a comment

Choose a reason for hiding this comment

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

looks good! a few suggestions.

other/block-pod-exec-by-namespace-label.yaml Outdated Show resolved Hide resolved
other/block-pod-exec-by-namespace.yaml Outdated Show resolved Hide resolved
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
@chipzoller
Copy link
Member Author

Addressed all feedback.

Copy link
Member

@JimBugwadia JimBugwadia left a comment

Choose a reason for hiding this comment

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

one minor comment, ready to merge otherwise!

other/add_ndots.yaml Outdated Show resolved Hide resolved
Signed-off-by: Chip Zoller <chipzoller@gmail.com>
@JimBugwadia JimBugwadia merged commit 73b7140 into kyverno:main Aug 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hold sample Sample policy
Projects
None yet
2 participants