-
Notifications
You must be signed in to change notification settings - Fork 33
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: gatekeeper repo ambiguous prefix #327
Conversation
the docs generator didn't pick this up BTW, I'm not sure why |
FYI @yakirk |
BTW I also wasn't sure if this is a KSV or KUBE check. what's the difference? |
about the docs - this will be covered in a blog post (which is blocked by this PR), i will add a link after it publishes. |
Good catch, I don't think they are different it's probably just not organized. However, changing IDs will cause breakage. But there are two options:
|
Gatekeeper does a prefix-match (startswith) to check if a repo is allowed. this can be leveraged by attackers who create repos with simlar prefix which can bypass the prefix matching (see tests for examples)
related: open-policy-agent/gatekeeper-library#616