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

fix edge case where auth state is left behind in an updated instance #30

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

mishaschwartz
Copy link
Collaborator

@mishaschwartz mishaschwartz commented Apr 4, 2024

If the authorization_url and enable_auth_state values were previously set, then later one or both are unset, jupyterhub is restarted, and the database is not cleared, there will be an auth_state present for users who previously logged in stored in the database.

In this case, jupyterhub will still attempt to update the auth_state with a now invalid authorization_url. This adds additional checks to ensure that this will not attempt to update the auth_state with invalid settings.

Copy link
Contributor

@tlvu tlvu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix.

@tlvu
Copy link
Contributor

tlvu commented Apr 4, 2024

Should this PR mark as "fixes bird-house/birdhouse-deploy#443"?

@mishaschwartz
Copy link
Collaborator Author

Should this PR mark as "fixes bird-house/birdhouse-deploy#443"?

I'll resolve that issue once the jupyterhub version has been updated on the birdhouse-deploy repo

@mishaschwartz mishaschwartz merged commit 05dc950 into master Apr 8, 2024
@mishaschwartz mishaschwartz deleted the fix-edge-case branch April 8, 2024 13:57
mishaschwartz added a commit to bird-house/birdhouse-deploy that referenced this pull request Apr 9, 2024
## Overview

If the `JUPYTERHUB_AUTHENTICATOR_AUTHORIZATION_URL` variable or
`JUPYTERHUB_CRYPT_KEY` is unset without clearing the jupyterhub
database, users could no longer spawn jupyterlab servers.


## Changes

**Non-breaking changes**
- New component version jupyterhub:4.1.4-20240408

## Related Issue / Discussion

- Resolves #443 

## Additional Information

Links to other issues or sources.

Related to: Ouranosinc/jupyterhub#30

## CI Operations

<!--
The test suite can be run using a different DACCS config with
``birdhouse_daccs_configs_branch: branch_name`` in the PR description.
To globally skip the test suite regardless of the commit message use
``birdhouse_skip_ci`` set to ``true`` in the PR description.
Note that using ``[skip ci]``, ``[ci skip]`` or ``[no ci]`` in the
commit message will override ``birdhouse_skip_ci`` from the PR
description.
-->

birdhouse_daccs_configs_branch: master
birdhouse_skip_ci: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants