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

Generate token for new not yet uploaded package ? #16057

Open
Carreau opened this issue Jun 5, 2024 · 2 comments
Open

Generate token for new not yet uploaded package ? #16057

Carreau opened this issue Jun 5, 2024 · 2 comments

Comments

@Carreau
Copy link
Contributor

Carreau commented Jun 5, 2024

What's the problem this feature will solve?

I want to create a token to upload a package that does not exist yet.
I can only use a general token for the first upload and then need to change the token, which is annoying (as far as I can tel).

Describe the solution you'd like

Ability to create a "lazy" token, that once used to upload a given package can only be used for this package forward.

Additional context

I was helping someone upload their first package, and it was not super frictionless.

@Carreau Carreau added feature request requires triaging maintainers need to do initial inspection of issue labels Jun 5, 2024
@di
Copy link
Member

di commented Jun 5, 2024

Our recommendation is to use Trusted Publishing to create the project instead -- see #6378.

@woodruffw
Copy link
Member

To add to what @di said: Trusted Publishing has a concept of "pending publishers" for this exact scenario: you can register a "pending publisher" for a project that doesn't exist yet, and it'll be turned into a full Trusted Publisher once you use it.

(You can also technically do this by manually attenuating a user-scoped API token locally, since it's a Macaroon under the hood. But I suspect that'll be much less beginner-friendly than Trusted Publishing 🙂)

@woodruffw woodruffw removed the requires triaging maintainers need to do initial inspection of issue label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants