Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

RFE: Support Crate Ownership

オープン
#47 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
python

調査の方向性

Start with the proposed CrateOwnership model and CargoPublishApiView.put(), then review the three Cargo owner endpoints and the yank authorization path. Done means ownership is scoped per distribution, first publishers are assigned automatically, owners can manage owners, and publish/yank permissions follow the stated rules while unauthenticated ownership mode remains supported.

索引モデルが issue の本文から書いたものです。

説明

Feature Triage-Needed

Consider supporting Crate ownership like crates.io -- users would be able to publish or modify only crates which they have maintainership over.

This is more of a long-term plan and should probably be optional. The "if you can auth, you can push" mode ought to continue being supported.


Crate Ownership

Goal: Track who owns which crate names, and only allow owners to publish new versions or yank. Deferred — any authenticated user with distribution-level permission can publish any crate name for now.

a. CrateOwnership model
class CrateOwnership(BaseModel):
    distribution = models.ForeignKey(RustDistribution, on_delete=models.CASCADE)
    crate_name = models.CharField(max_length=255)
    user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)

    class Meta:
        unique_together = ("distribution", "crate_name", "user")
  • Scoped per-distribution (different registries can have different owners for the same crate name)
  • First publisher of a crate name automatically becomes owner
  • Owners can add/remove other owners
b. Ownership endpoints

Implement the Cargo owner API:

  • GET /api/v1/crates/{name}/owners — list owners
  • PUT /api/v1/crates/{name}/owners — add owner (body: {"users": ["username"]})
  • DELETE /api/v1/crates/{name}/owners — remove owner
c. Publish authorization check

In CargoPublishApiView.put():

  1. If the crate name has no owners yet → allow (auto-assign publisher as owner)
  2. If the crate name has owners → only allow if request.user is an owner
d. Yank authorization check

Only crate owners (or distribution admins) can yank/unyank.

主要言語
Python
スター
1
フォーク
5
平均マージ
3日 21時間
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pulp/pulp_rust のほかの issue

pulp/pulp_rust の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。