pulp / pulp/pulp_rust

RFE: Support Token Scoping

Open
#48 0 comments 0 reactions 1 assignee View on GitHub

@aKlimau is already working on this.

Since Sep 16, 2026.

Feature Triage-Needed
Dominant language
Python
Stars
1
Forks
4
Avg merge
2d 8h
Merged PRs (30d)
6

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.