-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Support JWT auth in mergeable minions #311
Conversation
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.
Looks good. Few small suggestions
} | ||
} | ||
} | ||
} | ||
|
||
func (lbc *LoadBalancerController) findIngressesForSecret(secret string) ([]extensions.Ingress, error) { | ||
res := []extensions.Ingress{} | ||
func (lbc *LoadBalancerController) findIngressesForSecret(secret string) ([]extensions.Ingress, []extensions.Ingress, error) { |
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.
I think we should use named return types so that nonMinions
and minions
are not mixed up in future extensions of this method
} | ||
|
||
// we're dealing with a minion | ||
// only JWT secrets are allowed in a minion |
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.
only JWT secrets are allowed in a minion->JWT secrets are only allowed in a minion
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.
nope, JWT secrets are allowed in both minions and non-minions
however, minions can only have JWT secrets.
Ignore the jenkins check for this one |
b99831a
to
1fd1127
Compare
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.
👍
d9b924b
to
fd22dde
Compare
fd22dde
to
4d809c5
Compare
See https://github.com/nginxinc/kubernetes-ingress/tree/master/examples/jwt#example-2-a-separate-jwt-key-per-path