Skip to content

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 5 times, most recently from 065c62e to b4310e3 Compare May 20, 2025 10:54
@Turbo87 Turbo87 force-pushed the trusted-publishing branch from b4310e3 to aee05ff Compare May 23, 2025 15:01
Turbo87 added 5 commits May 23, 2025 17:31
This makes it possible to construct `MockTokenUser` instances from an existing plaintext token or other random header value.
…n optional

This "Trusted Publishing" the CI service performs the publishing, so there is no corresponding email address in that case.
@Turbo87 Turbo87 force-pushed the trusted-publishing branch from aee05ff to 3e1c80c Compare May 23, 2025 16:10
@Turbo87
Copy link
Member Author

Turbo87 commented May 24, 2025

I'm closing this PR now in favor of all the smaller PR that came out of it (see #10247)

@Turbo87 Turbo87 closed this May 24, 2025
@Turbo87 Turbo87 deleted the trusted-publishing branch May 24, 2025 10:26
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