-
Notifications
You must be signed in to change notification settings - Fork 189
sso-proxy: internal host should apply to redeem, /refresh, /validate, /profile #123
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
sso-proxy: internal host should apply to redeem, /refresh, /validate, /profile #123
Conversation
| Cluster string `envconfig:"CLUSTER"` | ||
| Scheme string `envconfig:"SCHEME" default:"https"` | ||
| ProviderURLString string `envconfig:"PROVIDER_URL"` | ||
| ProviderURLInternalString string `envconfig:"PROVIDER_URL_INTERNAL"` |
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'd rather not make a breaking change here in the env-var name if possible even if we do it internally to make things clearer. if we do change things, let's make sure we update the things like the quickstart:
sso/quickstart/docker-compose.yml
Line 32 in 6db5495
| - PROXY_PROVIDER_URL=http://host.docker.internal |
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.
should we try to re-jigger the kubernetes quick start here
sso/quickstart/kubernetes/sso-proxy-deployment.yml
Lines 26 to 27 in 6db5495
| - name: PROVIDER_URL | |
| value: https://sso-auth.mydomain.com |
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.
yep, good idea - added.
|
@benjsto thanks much for finding these. i like your solution in here neater then the one i pushed earlier. |
203aece to
979657b
Compare
…redeem, /refresh, /validate, and /profile
979657b to
ec6cd33
Compare
… internal URL for sso-auth
|
Thanks @danbf for catching that the Host header on requests to |
danbf
left a comment
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.
LGTM 👍
Problem
Dan's PR added the ability to have an optional 'internal' host defined that
proxywill use to connect toauth. However, that internal host was only applied on/redeemrequests. Other cases whereproxymakes a request toauth, like/refresh,/validate, or/profileshould also use this internal host if it is provided.Solution
If the optional
PROVIDER_URL_INTERNALis set, use that host to connect toauthfor /redeem, /refresh, /validate, and /profile.