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

Allow any authenticated user to generate an API key #641

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

ml-evs
Copy link
Member

@ml-evs ml-evs commented Mar 11, 2024

Closes #639

Previously, only admins could request an API key. Now anyone can.

These keys do not currently expire, but they probably should -- we could add this by using jwt's directly as API keys, and then checking the expiry date on access.

As before, hitting the /get-api-key endpoint while logged in will refresh the key and remove the old one.

Copy link

cypress bot commented Mar 11, 2024

Passing run #1121 ↗︎

0 26 0 0 Flakiness 0

Details:

Merge f1c20f9 into 10411d2...
Project: datalab Commit: d57683ebde ℹ️
Status: Passed Duration: 01:33 💡
Started: Mar 11, 2024 6:15 PM Ended: Mar 11, 2024 6:17 PM

Review all test suite changes for PR #641 ↗︎

@ml-evs
Copy link
Member Author

ml-evs commented Mar 13, 2024

Self-merging this too as it should be a trivial change (and is already deployed...)

@ml-evs ml-evs merged commit d67ada4 into main Mar 13, 2024
8 checks passed
@ml-evs ml-evs deleted the ml-evs/api-key-auth branch March 13, 2024 14:08
BenjaminCharmes pushed a commit to BenjaminCharmes/datalab that referenced this pull request Mar 27, 2024
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.

Allow user with any role to create an API key
1 participant