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

chore: update policies with latest changes #12

Open
wants to merge 1 commit into
base: v3.5
Choose a base branch
from

Conversation

pankajatnirmata
Copy link

Signed-off-by: Pankaj Khushalani pankaj.khushalani@nirmata.com

Updated policies with changes as mentioned in #11 for v3.5 branch

  • I have verified changes for best-practices and pod-security policies using kubectl kyverno test command.
  • There were 2 changes found in the cves policies as well.

Signed-off-by: Pankaj Khushalani <pankaj.khushalani@nirmata.com>
@pankajatnirmata
Copy link
Author

@chipzoller can you review this PR?

Copy link

@chipzoller chipzoller left a comment

Choose a reason for hiding this comment

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

Why are a couple of these policies under a folder called cves?

@pankajatnirmata
Copy link
Author

I am not sure why.
The cves policies were added in this commit by @nsagark

@chipzoller
Copy link

I see, they're already in that dir. Whomever put them there misinterpreted their use. They aren't designed to mitigate or help mitigate CVEs, the note in the description refers to min versions of Kubernetes that prevent their operation. They should therefore be moved out of this folder.

@pankajatnirmata
Copy link
Author

In that case, for better understanding, should we rename cves to other as these policies come from kyverno/policies/other?

@chipzoller
Copy link

It may not be a bad idea to have a folder just dedicated to CVE policies. That's not something we do upstream, but I can see it being useful. If that's not possible for some reason, maybe renaming it would be better.

@pankajatnirmata
Copy link
Author

Should this change be taken up in the current PR?

Else I will leave the discussion to you and @nsagark

@chipzoller
Copy link

I do not know enough about where/how this repo is used throughout Nirmata and what impact renaming a directory will have. cc @patelrit

@patelrit
Copy link

Currently, these policies are used in our SaaS in the default PolicySets. We need to move these policies to the Nirmata GitHub repo. The Add-ons repo is specifically for the platform to deploy add-ons. All the curated policies should be in the Nirmata repo. Once the policies are created in the Nirmata repo, we can use that repo for N4K and NPM customers.

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.

3 participants