-
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
kap remove hosts from authscheme #99
Conversation
d7ab64b
to
4aa83aa
Compare
4aa83aa
to
8ab9d5e
Compare
8ab9d5e
to
8fe7e38
Compare
// When one of the rules does not have hosts, just return target hostnames | ||
return r.TargetHostnames(ctx, ap.Spec.TargetRef, ap.Namespace) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So what happens when the next idx
of the AuthRules
has Hosts ? those would be ignored right? and used the TargetHostnames only
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Eguz for the explanation, so if there's at least one rule without the hostname
, the authConfig
will include the parent targetHostnames since it's the more global one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only detail that in the case that makes sense, could be include in a future PR
* ratelimitpolicy: new action types * add action types to example * ratelimitpolicy example fix metadata action stage
what
hosts
field not exposed in the AuthPolicy"Fixes #97
verification steps
Setup env
Create HTTPRoute for
*.toystore.com
Create a kuadrant AuthPolicy in which one of the rules the
hosts
field is missingCheck that the authconfig object's
hosts
is set to the route's hostnamesCheck that the Istio's authorizationpolicy's rules'
hosts
all fall under route's hostnames