program_key authentication should become a proper client_credentials grant
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
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- ruby
- Lĩnh vực
- api, authentication
Hướng nghiên cứu
Start by reading API::V1::ApplicationController#authenticate! and the ident_scope behavior described in the issue. Trace how the program_key path sets authentication context and how OAuth tokens represent delegated users, then decide whether this should use a client credentials grant or a separate API surface. Done means program keys no longer bypass delegation semantics, with the intended behavior covered by tests.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
problem
API::V1::ApplicationController#authenticate! accepts two credential types in the same Authorization header:
- OAuthToken — standard user-delegated access token (RS behavior)
- Program.program_key — app-level static key, no user delegation
the program_key path sets @current_identity = nil and @current_scopes = @current_program.scopes (the app's full registered scope list). ident_scope then returns every identity that ever authorized the app — all users, all scopes, no per-user consent.
this is a client_credentials grant wearing a trenchcoat. it bypasses the delegation model entirely.
impact on DPoP/on-behalf-of
- DPoP binds tokens to a key pair held by the presenter. a program_key is a static secret with no presenter concept.
- on-behalf-of (RFC 8693) assumes the initial token represents a user delegation. program_key represents no user.
direction
the program_key path should become a proper client_credentials grant with its own token, or a separate API surface with explicit non-delegated semantics. the acting_as_program boolean is a code smell for what should be a distinct authentication context.
- Ngôn ngữ chính
- Ruby
- Star
- 85
- Fork
- 72
- Merge trung bình
- 3 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 22
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của hackclub/auth
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 57/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của hackclub/auth
Issue tương tự
-
SecureRandom.alphanumeric can silently return an empty or wrong-length secret instead of raisingĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
ruby/securerandom#92 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
open-feature/ruby-sdk-contrib#340 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
zold-io/wts.zold.io#651 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
erkamyaman/rust-anything#788 ·
Maintainer thường phản hồi trong vòng 1 ngày