Skip to content
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

Add a default public-url config value #123

Closed
wants to merge 2 commits into from

Conversation

ca-scribner
Copy link
Contributor

This adds a default public-url config value as described in canonical/bundle-kubeflow#608. After implementing canonical/bundle-kubeflow#608 as a whole, we remove the need for users to modify public-url.

While we could deprecate and remove the public-url config, it is recommended we leave it as is with this default. This is because in the medium term we plan on replacing dex+oidc with a different auth setup.

This change simplifies the setup for most (all?) OIDC+dex setups.  By using the k8s-internal link to dex-auth rather than
* adds the OIDC_AUTH_URL env var to OIDC, which lets OIDC redirect the user to dex via a relative link rather than the absolute OIDC_PROVIDER link
* sets public-url (and thus OIDC_PROVIDER) to 'http://dex-auth.kubeflow.svc.cluster.local:5556' by default.  Also adds special handling for k8s-internal urls since we typically append `/dex` to the public url for OIDC's inputs
* Adds `AFTER_LOGIN_URL` to redirect all logins to the dashboard.  This solves some corner cases where getting redirected to a login from a login page makes it seem to the user like they're in a login redirect loop even though they aren't.
* Removes the `AFTER_LOGOUT_URL` which, if left out, defaults to a working value when the other env variables discussed above are set
This change simplifies the setup for most (all?) OIDC+dex setups.  By using the k8s-internal link to dex-auth rather than
* adds the OIDC_AUTH_URL env var to OIDC, which lets OIDC redirect the user to dex via a relative link rather than the absolute OIDC_PROVIDER link
* sets public-url (and thus OIDC_PROVIDER) to 'http://dex-auth.kubeflow.svc.cluster.local:5556' by default.  Also adds special handling for k8s-internal urls since we typically append `/dex` to the public url for OIDC's inputs
* Adds `AFTER_LOGIN_URL` to redirect all logins to the dashboard.  This solves some corner cases where getting redirected to a login from a login page makes it seem to the user like they're in a login redirect loop even though they aren't.
* Removes the `AFTER_LOGOUT_URL` which, if left out, defaults to a working value when the other env variables discussed above are set
@i-chvets
Copy link
Contributor

LGTM, but need to fix CI.

@DnPlas
Copy link
Contributor

DnPlas commented Jul 24, 2024

Thanks @ca-scribner for the proposal. In the end this change will be slightly different. Please see #211 for more information.

@DnPlas DnPlas closed this Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants