nginx-ingress, oauth and downstream services

406 views
Skip to first unread message

Christopher Schmidt

unread,
Jun 5, 2018, 8:57:52 AM6/5/18
to Kubernetes user discussion and Q&A
Hi,


What is the best solution to hand over Tokens or Usernames to the downstream services (defined by the Ingress resource)?

best Christopher

iain....@gmail.com

unread,
Jun 11, 2018, 6:23:49 AM6/11/18
to Kubernetes user discussion and Q&A
Add this annotation to the downstream services ingress:

nginx.ingress.kubernetes.io/auth-response-headers: x-auth-request-email, x-auth-request-user

Christopher Schmidt

unread,
Jun 12, 2018, 1:02:38 PM6/12/18
to Kubernetes user discussion and Q&A
Thanks Iain,

adding the annotations was one part of the solution.


What I had to add to the oauth2_proxy was a --set-xauthrequest option.

Thanks for help
Reply all
Reply to author
Forward
0 new messages