-
Notifications
You must be signed in to change notification settings - Fork 326
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
allowAllUsers does not skip domain validation anymore / no more open callback urls? #266
Comments
Hmm, can you please post a VP config? The 'allowallusers' use case should
still work but it's not as well tested as 'domains'.
The URL validation is a security concern. The README has some information
regarding /login and /logout url validation. Can you please let me know if
it is clear?
Sorry for the regression.
…On Mon, May 18, 2020, 2:38 AM Betagan ***@***.***> wrote:
Hi,
the recent commit 85e98f6
<85e98f6>
broke our existing config because it removes the possibility to skip domain
validation by setting allowAllUsers. It now dies with
return fmt.Errorf("configuration error: oauth.callback_url (%s) must be
within the configured domain where the cookie will be set %s", url,
Cfg.Domains)
Was this an intended change? Asking because the config still tells you not
to specify a domain if you set allowAllUsers:
Comment domains: out if you set allowAllUser:true
see
https://github.com/vouch/vouch-proxy/blob/master/config/config.yml_example
Is there still a way to not specify a set of domains but let vouch handle
all users that can authenticate (and use the respective callback urls we
pass during that process)?
Best regards
Betagan
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#266>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJUV272NYHZXAQXGVZSGPTRSD6YVANCNFSM4ND5F6VQ>
.
|
Oh this isn't the login/logout commit, this is the callback validation. Yes please post a config. Are users restricted to the domains in the callback(s)? What happens when you use those domains in vouch.domains? Does that meet your use case? |
Upon further inspection there is probably a bug here related to the |
Hey, thanks for looking into this. we use the following config which worked just fine up until we updated to the latest version of vouch proxy last week.
When we add the commented out domains section, it works again. However, we liked the previous behaviour where we didnt have to specify that. In the commit I linked in my initial post, I saw that the following was removed: |
Thanks,
To confirm you only use one callback_url, correct?
…On Tue, May 19, 2020, 1:21 AM Betagan ***@***.***> wrote:
Hey,
thanks for looking into this. we use the following config which worked
just fine up until we updated to the latest release of vouch proxy last
week.
vouch:
logLevel: debug
#domains:
# - example.com
configured provider
allowAllUsers: true
jwt:
secret: redacted
issuer: redacted
maxAge: 6000
headers:
claims:
- groups
testing: false
cookie:
maxAge: 6000
secure: true
oauth:
provider: oidc
client_id: redacted
client_secret: redacted
auth_url: https://redacted.oktapreview.com/oauth2/default/v1/userinfo
token_url: https://redacted.oktapreview.com/oauth2/default/v1/userinfo
user_info_url: https://redacted.oktapreview.com/oauth2/default/v1/userinfo
callback_url: https://example.com/auth
When we add the commented out domains section, it works again. However, we
liked the previous behaviour where we didnt have to specify that.
We are using the OKTA OIDC provider if that's important to know.
In the commit I linked in my initial post, I saw that the following was
removed:
if !viper.IsSet(Branding.LCName + ".allowAllUsers") {
which in my understanding now causes vouch proxy to always validate the
domains no matter what allowAllUsers is set to. There might be a good
reason for that, but I would have expected it to work differently based on
the what the config file says. Should domains still be validated even
though that flag is set?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#266 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJUV2Y3UIBHTWK7GE2ACALRSI6RHANCNFSM4ND5F6VQ>
.
|
I ask because in your OP you mention...
which made me think you were using |
I believe this is fixed in master though you'll likely need to add Please do test and let me know what you find. |
@betagan ^^ |
@betagan have you had an opportunity to test the fix? If you are no longer working this issue could you please close. |
Hi, I'm using 0.15.7 (Latest docker image) with Okta. The configuration is on my gist. The config.yml_example_oidc tells to choose either specifying the domains or 'allowAllUsers: true'. With 'allowAllUsers: true' only, vouch-proxy gets the following error.
If I set both 'domains:' and 'allowAllUsers: true' according to the error message above, it returns;
Finally, according to your comment above, manually adding the configurations worked fine.
If it's the right way to enable 'allowAllUsers: true' to avoid listing all the related domains in the |
It seems my understanding was correct since @bnfinet changed the label. |
@yaws-k yes that's right Sorry I should have replied explicitly. It's on my list to review/update the docs regarding that but I won't be able to pay attention to this until next week. PRs are of course always appreciated. Thanks much. |
@bnfinet |
commit a3e33f9 Merge: 0ea425f 054bff3 Author: Benjamin Foote <[email protected]> Date: Thu Jun 25 13:44:23 2020 -0700 Merge branch 'master' into pr/yaws-k/279 commit 0ea425f Author: Benjamin Foote <[email protected]> Date: Thu Jun 25 13:44:12 2020 -0700 #266 clarify protected domain commit 2b68660 Author: Yosuke Kato <[email protected]> Date: Sun Jun 14 14:27:22 2020 +0900 Add vouch.cookie.domain description to allAllUsers configuration.
thanks @yaws-k for the documentation fix |
Hi,
the recent commit 85e98f66040be47a21aea8e67f7d33756811fc93 broke our existing config because it removes the possibility to skip domain validation by setting allowAllUsers. It now dies with
Was this an intended change? Asking because the config still tells you not to specify a domain if you set allowAllUsers:
see https://github.com/vouch/vouch-proxy/blob/master/config/config.yml_example
Is there still a way to not specify a set of domains but let vouch handle all users that can authenticate (and use the respective callback urls we pass during that process)?
Best regards
Betagan
The text was updated successfully, but these errors were encountered: