Skip to content

RFE: Support Token Scoping #48

Description

@dralley

It might make sense to support "token scoping" such that API tokens are model - only capable of individual actions like push, yank, etc. This makes sense when you want to hand out a lower degree of access.

Can be deferred though, not an immediate concern.


Add scope fields to CargoToken:

  • distributions — M2M to RustDistribution (empty = all the user has access to)
  • actions — JSON list of allowed actions (["publish", "yank"], empty = all)

This mirrors crates.io's RFC 2947 token scoping.

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions