Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

BReg acceptance: statistics profiles admit any token of the project

Đang mở Phù hợp với người mới
#1,941 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
authorization

Hướng nghiên cứu

Bắt đầu tại products/breg/acceptance/facility/registry.yaml: so sánh hai profile statistics-publisher và statistics-reader với các profile khác khai báo requiredScopes/requiredPurposes. Kiểm tra dev-clients.yaml để xem các scope đã được cấp (registry:facility:statistics:publish / :read) và docs/site/src/content/docs/configure/breg-access.mdx để nắm ngữ nghĩa admission. Hoàn thành nghĩa là bregctl check không còn phát ra access.profile.no_required_scope cho các profile này và các bài test statistics cùng script workflow vẫn vượt qua với các dev-client scope hiện có.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

agent-ready area:breg bug criticality:p3 triage:needs-implementation

In products/breg/acceptance/facility/registry.yaml, statistics-publisher and statistics-reader declare only principalClaim: registry_principal: no requiredScopes and no requiredPurposes. Every other profile in the project uses the same principal claim, and a request is admitted against whichever profile the application selects (docs/site/src/content/docs/configure/breg-access.mdx, "One profile per request"). So a token issued for any task in this project can select statistics-publisher.

statistics-publisher lists and counts permits and discharge reports in every district (rowBoundaries: [], allowCount: true), filterable by permit type, validity dates, boundary and the derived flags. That is required for it to publish releases, but it means any caller with a token for this registry can obtain exact counts, including the small cells a release suppresses (1 to 4) and rounds.

The intent looks clear from dev-clients.yaml, which gives the publisher client registry:facility:statistics:publish and the reader client registry:facility:statistics:read; the profiles never require those scopes. bregctl check already warns (access.profile.no_required_scope: "any authenticated" caller), but the acceptance project is the example adopters copy for statistics.

Expected. Both statistics profiles require their scope (and the project's purpose if that fits), and the statistics tests and workflow script keep passing with the dev clients' existing scopes.

Ngôn ngữ chính
Rust
Star
2
Fork
0
Merge trung bình
8 giờ 50 phút
Pull request đã merge (30 ngày)
258

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của registrystack/registry-stack

Tất cả issue của registrystack/registry-stack

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.