Skip to content

Allow registries to patch crates #14458

Open
@epage

Description

@epage

Cargo has a patch feature today to address bugs and other issues in packages. When people are blocked, there are security issues, or legal issues, an organization managing may want to quickly deploy these patches.

One venue for doing this is through the registry itself, especially when the registry is managed by a company where software policy is top-down. This would need

In rare circumstances, a community registry like crates.io may want to do this as well, e.g. to do something like #14452.

  • Users would need a way to opt-out
    • this could also be important for testing within an organization

Policy for crates.io is being left to a future RFC by that team. It should likely consider audit tools and rules including

  • Who all signs off on patches? Suggestion: at least someone with publish permissions along with someone from the Project
  • How do we verify patches? Suggestion: a crater run
  • What rules apply to patches? Suggestion: must match behavior in a newer published version (requires audit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-patchArea: [patch] table overrideA-registriesArea: registriesC-enhancementCategory: enhancementS-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions