-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[nginx-ingress-controller] Add external authentication using auth_request #1796
[nginx-ingress-controller] Add external authentication using auth_request #1796
Conversation
dec4a7a
to
d9214bd
Compare
|
||
var ( | ||
// ErrMissingAnnotations is returned when the ingress rule | ||
// does not contains annotations related with authentication |
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.
s/does not contains/does not contain/
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.
done
@@ -723,6 +724,12 @@ func (lbc *loadBalancerController) getUpstreamServers(ngxCfg config.Configuratio | |||
glog.V(3).Infof("error reading CORS annotation in Ingress %v/%v: %v", ing.GetNamespace(), ing.GetName(), err) | |||
} | |||
|
|||
ra, err := authreq.ParseAnnotations(ing) |
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.
where are we using ra?
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.
controller.go (last commit)
d9214bd
to
064df64
Compare
Saw the related discussion on the bug, can you add an example of how to use this, and how that enables further integration with things like the oauth_proxy? (fine if you want to do this in a follow up) |
I think your failure is legit
|
oops I forgot to use go 1.6 features (t.Run is a new thing in 1.7) |
d3b6ce1
to
1dc197e
Compare
1dc197e
to
a7baeb0
Compare
Automatic merge from submit-queue |
fixes #1492
This change is