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

Add policy for ingress host rules #118

Open
tmojlupo opened this issue Jan 12, 2022 · 0 comments
Open

Add policy for ingress host rules #118

tmojlupo opened this issue Jan 12, 2022 · 0 comments
Labels
enhancement New feature or request policy rego

Comments

@tmojlupo
Copy link

What would you like to be added:
A policy that verifies that ingress resources are created with something in spec.rules[].host and block if spec.rules[].host is empty.

Why is this needed:
If someone creates an ingress without any host specified, that ingress could become a wildcard rule and could answer for any hostname that doesn't already have an ingress rule.

@tmojlupo tmojlupo added the enhancement New feature or request label Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request policy rego
Projects
None yet
Development

No branches or pull requests

2 participants