-
Notifications
You must be signed in to change notification settings - Fork 23
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
Limit number of SANs by policy #394
Comments
This is a good use case for CEL, but the current CEL support in approver-policy is per value in request attributes. So I don't think this is possible to enforce with approver-policy at present. |
For now I have a work around using Gatekeeper. I've included the manifests below. What was interesting is that Gatekeeper uses
|
Using Gatekeeper (or Kyverno) policies to do this is a good workaround. I don't think I personally would support adding Rego-support to the core of approver-policy. I consider Rego inferior to CEL, and we already added CEL to the core. A plugin is always an alternative, but a bit awkward to use IMO. Mainly because the approver-policy image must be rebuilt. |
Hi all,
I've seen some discussion on the subject here. I'm wondering if this is possible yet? I want to limit the number of SANs in a certificate to ~10, but I'm not sure how to access the DNSNames list.
Thanks in advance!
The text was updated successfully, but these errors were encountered: