-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
Better support for one-off deploy tokens #811
Comments
I think this is a really good idea! The idea of "one use" is a bit tricky, since a single deploy is many requests, but all requests should be in the same HTTP session, so we could attach a session identifier to the token on the first request, then only allow future requests within that same session. I think implementing this would be straightforward. Are you interested in implementing this? If so, I'm happy to help. I can also do this myself, but wanted to give you the opportunity if you were interested. |
Thanks for the response! Maybe in a different season I'd be happy to give a PR shot - these days I have quite a lot on my plate (OSS and otherwise) |
This adds single-use tokens, which can only be used for a single deploy. This handles: - creating the token with the single-use option - consuming the token on deploy - verifying that the the token being used to deploy is valid: - either it hasn't been used - or it has been used, but only for the current deploy session (this allows files pushed after finalization to succeed, since we finalize when we see maven-metadata.xml, artifacts with classifiers are pushed after the metadata) See #811.
This adds single-use tokens, which can only be used for a single deploy. This handles: - creating the token with the single-use option - consuming the token on deploy - verifying that the the token being used to deploy is valid: - either it hasn't been used - or it has been used, but only for the current deploy session (this allows files pushed after finalization to succeed, since we finalize when we see maven-metadata.xml, artifacts with classifiers are pushed after the metadata) See #811.
Amazing, thank you for the effort! Will sure start using these exclusively. |
Context
I like to use the deploy tokens as one-off (single-use) ones: that way I get to never store them, which has some associated risks.
Problem statement
There isn't explicit support for one-off tokens so one has to manually disable them after use. They also accrue quite awkwardly over the web UI:
Proposed solution
Offer one-off tokens that can be used once at most (and that maybe are valid only up to 60m from now).
They would not accrue over the web UI.
WDYT?
Thanks - V
The text was updated successfully, but these errors were encountered: