Skip to content

WIP: Trusted Publishing #11056

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

Draft
wants to merge 25 commits into
base: main
Choose a base branch
from
Draft

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Apr 24, 2025

This pull request should eventually implement the backend API part of the "Trusted Publishing" RFC (see #10247 and rust-lang/rfcs#3691).

It is currently very much work in progress and only opened to simplify reviews for some of the early architectural decisions. Yes, the publish endpoint is very messy. It is not the final state of the proposed changes 😉

@Turbo87 Turbo87 added C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works A-backend ⚙️ labels Apr 24, 2025
/// 3. Generate a new OIDC token and exchange it for a temporary access token.
/// 4. Publish a new version of the crate using the temporary access token.
#[tokio::test(flavor = "multi_thread")]
async fn test_full_flow() -> anyhow::Result<()> {
Copy link
Member Author

Choose a reason for hiding this comment

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

if you want to start your review somewhere, this is probably the right place for a high level overview :)

@Turbo87 Turbo87 force-pushed the trusted-publishing branch 6 times, most recently from 9f5267e to 607a12a Compare April 28, 2025 15:32
@Turbo87 Turbo87 force-pushed the trusted-publishing branch 12 times, most recently from 986a71d to 96bf257 Compare May 13, 2025 13:15
@Turbo87 Turbo87 force-pushed the trusted-publishing branch from 96bf257 to f1a8144 Compare May 15, 2025 13:40
Turbo87 added 4 commits May 16, 2025 10:03
This fn can be used to decode a JSON web token without verifying it's signature or claims. Only the `iss` claim will actually be decoded, since we use that to find the correct decoding key for the JWT issuer.
@Turbo87 Turbo87 force-pushed the trusted-publishing branch from f1a8144 to 451684a Compare May 16, 2025 08:03
@Turbo87 Turbo87 force-pushed the trusted-publishing branch from 451684a to 62cb7f1 Compare May 16, 2025 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant