rstack dev: issue application tokens so the Evidence application tutorial runs in replay

Đang mở
#2,692 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
authentication

Hướng nghiên cứu

Start by reading the run issuer and plan definitions that govern token grants; the issue does not name their files or tests. Decide whether development runs should mint application tokens and how declared clients’ scopes and claims are bounded before implementing the grant. Done means the Evidence application tutorial replays end to end without its test-skip, with the grant confined to the run and its TTL.

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

Mô tả

area:evidence area:platform

Problem

rstack dev runs an Evidence project, but its run issuer issues tokens only for a named test person (rstack dev token RUN --as PERSON) and for a declared browser application (authorization code with PKCE). It has no client-credentials endpoint.

The tutorial Request evidence from an application shows the one-call EvidenceClient.from_profile flow, where the application obtains its own token from the issuer. Against an rstack dev run that step cannot run, so for v0.47.0 the section is marked test-skip in the tutorial gate and says it needs a deployment. The client code stays covered by crates/registry-evidence-client/tests/against_a_real_deployment.rs and the Python and Node profile-exchange tests.

Proposal

Give the run issuer a client-credentials grant for clients the plan declares (scopes and claims bounded by the plan, as for people), then remove the test-skip so the tutorial replay exercises the application flow end to end.

Decide before building

Whether a development issuer should mint application tokens at all, and how the plan names those clients and bounds their scopes. This widens what a dev run's issuer can do; keep it confined to the run and its TTL.

Deferred until after v0.47.0.

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

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.