-
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
Authpolicy status should not report error when authconfig resource is not required. #349
Comments
@eguzki @guicassolato Given the RFC on https://github.com/Kuadrant/architecture/blob/main/rfcs/0004-policy-status.md, I'm interested on how this scenario would work for the To me, there is 2 options from https://github.com/Kuadrant/architecture/blob/main/rfcs/0004-policy-status.md#conditions:
or alternatively:
I think currently in my head no 2) makes more sense, the gateway AuthPolicy is not enforced on any underlying HTTPRoute and has been overridden by the AuthPolicy on the HTTPRoute attached to the Gateway. If a free httproute using this gateway becomes available with no authpolicy, it should then go back to no 1) as its successfully enforcing it's AuthPolicy on a httproute Interested in your thoughts on this on if you agree or not 🤔 |
Good question, @KevFan! IMO, I'd say |
@KevFan @guicassolato I share your view point on this, following the states conditions listed in https://github.com/Kuadrant/architecture/blob/main/rfcs/0004-policy-status.md#conditions, the use case should reflect |
* feat: auth policy enforced condition * feat: enforced condition overridden reason Closes: #349 * refactor: detection overridden AuthPolicy logic * refactor: OverriddenPolicyMap
Sorry for being late to the party. I just wanted to tell that I agree with the decision taken here. "Enforced" and "Overriden" at the same time represents better the actual configuration applied. |
Given the following topology:
The status field of the
gw-auth
policy reports as "Not Available"This is wrong because the
gw-auth
policy does not need an AuthConfig resource as there is no "free" HTTPRoutes. It should report as "Available" instead.The text was updated successfully, but these errors were encountered: