Support short-lived API tokens and fine-grained rate limits #12302
HackingRepo
started this conversation in
Feature Requests
Replies: 1 comment 4 replies
-
|
maybe https://crates.io/docs/trusted-publishing is what you're looking for? regular API tokens can only be issued through the user interface, so if such an API token was only valid for minutes it wouldn't be particularly useful. if you really want something short lived like that then you can always revoke the token after usage. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to suggest adding support for short-lived API tokens that can expire in minutes or hours, instead of the current options of days, months, or years.
This would improve security significantly: if a token is leaked or stolen, it would quickly become invalid, preventing unauthorized access. Currently, long-lived tokens present a risk if exposed, and short-lived tokens would help mitigate that.
Thank you for considering this feature. It would make automation, CI/CD workflows, and general security on crates.io much safer.
Beta Was this translation helpful? Give feedback.
All reactions