Skip to content

Modeling downstream registry divergence - #862

Merged
nxsaken merged 66 commits into
rust-lang:mainfrom
jlizen:transparent-registry-security-releases
Nov 23, 2026
Merged

nxsaken merged 66 commits into
rust-lang:mainfrom
jlizen:transparent-registry-security-releases

Conversation

@jlizen

@jlizen jlizen commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

(continued from jlizen#1)

cc @celinval , co-author

Rendered

@jlizen jlizen changed the title Transparent registry security releases Modeling downstream registry divergence Nov 10, 2026
@jlizen jlizen added the C-goal-proposal This is a goal proposal label Nov 10, 2026
@rustbot

rustbot commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

A #goals/proposed topic was opened to discuss this issue.

@CAD97

CAD97 commented Nov 10, 2026 •

Copy link
Copy Markdown

This is an initiative that the Rust packaging team at Canonical are interested in. I can hopefully dedicate the time to owning the producer tooling portion; I'll verify and get back with confirmation on that.

Disclaimer: I am speaking for myself as a Canonical employee and not as a representative of the company.

Update: I have permission to take ownership of both the producer tooling and the audit tooling. If someone else would like to contribute, though, I'm happy to yield the audit tooling portion and/or act as a mentor for it.

@teor2345 teor2345 left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There might be some missing asks here?

Also some suggestions for tweaking wording so it's clearer what is meant, and when we are referring to the same activity.

View changes since this review


### Work items over the next year

This goal is co-authored by @jlizen and @celinval. @jlizen leads discovery (survey, requirements, initial docs); the RFC and Cargo implementation are shared.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Earlier in the doc (e.g. the intro), this is called "model" and "inventory". It's probably best to update it across the entire doc, so it's clear the same thing is being talked about (or explain more why it's different)

@jlizen jlizen Nov 10, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

0670b2f

I use inventory most everywhere though save "model" for overarching framing for the full goal.

jlizen and others added 7 commits November 10, 2026 11:50
Comment on lines +110 to +120
#### Self-hosted downstream registry implementation
| Task | Owner(s) | Notes |
| :-- | :-- | :-- |
| Design: self-hosted downstream that serves registry releases | @smrckln | High level, focuses on interfaces + architecture |
| Design: event feed of registry releases, signing | @andrew | |
| Application code for self-hosted downstream registry | @smrckln | |
| Infrastructure code for self-hosted downstream registry | @andrew | |
| Prepare a series of registry releases to fix historical CVEs on old versions | @vladh | |
| Launch ecosyste.ms-managed downstream registry serving the historical CVE fixes | @andrew | |
| Integrate event feed from downstream registry with ecosyste.ms | @andrew | |
| Blog post: ecosyste.ms-hosted downstream, what we learned along the way, next steps | @andrew, @smrckln | |

@Turbo87 Turbo87 Nov 19, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think this phase should be part of the goal.

Listing it as goal work means the Rust Project endorses a public registry that serves patched releases of other people's crates. In practice, that registry would be a public alternative to crates.io with different content, but run and governed by people outside of the Rust Project. I don't think a project goal should be setting that up.

ecosyste.ms is of course free to do this independently, but I'd prefer to remove this phase from the goal, along with the other places that mention it.

View changes since the review

@jlizen jlizen Nov 19, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Cross posting from Zulip:

I think it is somewhat important to include, since it is what is letting us kick the tires, show an example of actually using the feature, and work towards stabilization now that we are n>0 for users. We've learned from past Cargo features, such as Jacob's publishing token work which was since ripped out of Cargo, that it doesn't go well to build features without public users.

In particular, I know there are downstream corporate mirrors that would use this, but I care about having an open source / general benefit registry as well to help guide approache.

When we've discussed this in context of other Project Goals, we've been fine with having "hosted outside the project" tooling/experiments that may or may not be eventually upstreamed, as long as they contribute to the broader goal that does have project footprints. I don't think listing experiments and external infrastructure in the goal implies that the Rust Project endorses it. Endorsement would be listing it in docs, rust blog announcements, etc (which, on that note, let me make an explicit note that that phases's blog would not go on the Rustlang blog).

FWIW, a substantial portion of audit/analysis tooling developed in phase 2 would be hosted outside of the Rust Project too, at least to get off the ground, I imagine. ecosyste.ms is a more obvious home since it is so focused on registry metadata analysis.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I had "not project endorsed" stated in the summary, but I added it in more places, and made clear that this won't be discussed on the RustLang blog: 2546cb4

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I slimmed this down further to not specify anything about where the sample registry will be hosted, etc. The point is just that we will have a usable sample that helps us try out our new functionality.

48f644f

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

also a Zulip crosspost:

FWIW I initially thought along similar lines to Tobi — that implementations outside of the Project feel strange to be listed in the goals, but then concluded that this is essentially a PoC to prove out that the design/implementation is sound/useful. And that I see valuable to mention and track.

@jlizen's response was along similar lines and I appreciate calling out what is and isn't Project endorsed explicitly. So I'm happy with the goal as it is, but I'd love to hear from Tobi too.

@jlizen
jlizen requested a review from Turbo87 November 19, 2026 23:04

@tomassedovic tomassedovic left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for addressing all the feedback, @jlizen. I'm happy to merge as is, but I'd love to hear what Tobi thinks about his open question after your explanation and the changes you made there.

View changes since this review

@Turbo87 Turbo87 left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not going to block this goal, and the last round of changes addressed part of my concern, but I want to put on record that I'm still not entirely comfortable with the sample registry phase.

I'm approving the information gathering and the RFC work. I don't see accepting this goal as an endorsement of registry releases as a concept. That decision belongs to the RFC, and I expect it to be controversial there.

The sample registry would publish releases under other people's crate names, and the goal doesn't say whether the maintainers of these crates are involved or asked for permission. If you go ahead with it, I'd suggest at least offering each backported fix to the maintainers as well, so the experiment also shows how often these fixes can be upstreamed.

As a side note, I don't think proving out the design needs a public deployment connected to a large provider like ecosyste.ms. A small dedicated project could do that too.

View changes since this review

@jlizen

jlizen commented Nov 23, 2026 •

Copy link
Copy Markdown
Member Author

Thanks for the time reviewing all the various revisions, @Turbo87 ! The goal scoping is much better as a result of your feedback, much appreciated.

We'll want to move conversation into the RFC planning, etc, but just to acknowledge some of your concerns before this goal merges:

I don't see accepting this goal as an endorsement of registry releases as a concept. That decision belongs to the RFC, and I expect it to be controversial there.

Completely agreed here. Though hopefully, the RFC itself won't be controversial, since before opening it we will have had many discussions with reviewers and other stakeholders beforehand.

the goal doesn't say whether the maintainers of these crates are involved or asked for permission

This is somewhat deliberately unspecified since it is such a high level sketch still. But, I expect we would want to start small, focus on a few projects that have eg some security fixes to backpatch to older versions that are post-EOL, and chat with the maintainers beforehand. And we would optimize for maintainers that goal contributors already have strong relationships with.

I'd suggest at least offering each backported fix to the maintainers as well,

Yes, 100%, I don't think Rust Project probably wants to give normative guidance on how to operate a downstream registry, since it is explicitly not endorsed by us/not our problem. But, whoever does publish reference implementations, certainly should set this expectation and offer good operating suggestions to pass things upstreaming without overloading maintainers.

For the POC case, I expect a lot of it to be backpatches of post-EOL versions, but anyway we can talk to upstream maintainers and see what makes sense.

For what it's worth - it's also not specified in this goal to avoid guessing at RFC contents - something I care a lot about is, make it actually inconvenient to maintain a growing stack of patches to incentivize upstreaming them. And also I'd like to see new upstream releases take precedence unless a registry actively publishes a freshly packaged patched release on top. Anyway, that's just my own preliminary thinking, still need to do discovery (which will include maintainers).

As a side note, I don't think proving out the design needs a public deployment connected to a large provider like ecosyste.ms. A small dedicated project could do that too.

Agreed, I ripped out the specification of where it lands in light of that. I think what makes sense is, do something small and dedicated as the base implementation. And if there is a public deployment from somebody like ecosyste.ms, it could be a separate downstream thing which is removed from this goal.

@nxsaken

nxsaken commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Thanks everyone! :) I'll merge this.

@nxsaken
nxsaken merged commit 66d5841 into rust-lang:main Nov 23, 2026
3 checks passed
@github-project-automation github-project-automation Bot moved this from To Do to Done in Triage Queue Nov 23, 2026
@jlizen

jlizen commented Nov 23, 2026

Copy link
Copy Markdown
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-goal-proposal This is a goal proposal

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.