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

[DM-28120] Add support for Gafaelfawr 2.0 #46

Merged
merged 3 commits into from
Apr 17, 2021
Merged

[DM-28120] Add support for Gafaelfawr 2.0 #46

merged 3 commits into from
Apr 17, 2021

Conversation

rra
Copy link
Member

@rra rra commented Apr 15, 2021

  • Remove the old Safir code that came from the template, since we're not using it
  • Add support for a mounted Gafaelfawr token instead of forging a JWT (which won't work with Gafaelfawr 2.0)
  • Use that token as a trigger for using the new user information API

The last is a hack, but it's a temporary hack because the old code will go away once Gafaelfawr 2.0 is deployed everywhere.

rra added 2 commits April 14, 2021 15:29
We're using this code as a mixin into JupyterHub via its
configuration hooks, not as a standalone service, so remove all
the web service bits that we're not using.  When we've needed a
web service, we've written that as a separate package (cachemachine,
moneypenny, etc.).
Support a Gafaelfawr token mounted inside the pod and use that by
preference if it exists as the admin token for calls to moneypenny
rather than creating a JWT.

Use the existence of that token as a trigger to use the new token
API for getting user information for a user.  This is a hack, but
it's a temporary hack since we'll be deleting the old code once
Gafaelfawr 2.0 is deployed everywhere.
@rra rra requested a review from cbanek April 15, 2021 18:04
Copy link
Contributor

@cbanek cbanek left a comment

Choose a reason for hiding this comment

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

Fantastic, and thanks for cleaning up the safir files.

@rra rra merged commit 44ca718 into master Apr 17, 2021
@rra rra deleted the tickets/DM-28120 branch April 17, 2021 00:55
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