oidc auth provider does not support role mapping rules using custom keys
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
- Đình trệ
- Công nghệ
- go
- Lĩnh vực
- authentication, security
Hướng nghiên cứu
Start with pkg/auth/authproviders/oidc/backend_impl.go to review the currently supported claim keys, then compare that behavior with the ACS authentication-provider documentation linked in the issue. The scope needs to be resolved between supporting arbitrary custom claims, restricting or validating allowed claims, and documenting the existing mappings; done means the chosen behavior is implemented or clearly documented.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Roles can be mapped to oidc users based on claims. While the rules allow setting arbitrary claims, the oidc implementation only allows a fixed set. I would have used the Groups claim but Auth0 restricts setting that claim. Digging into the code I found that backend_impl.go limits my choices to name, email, sub, groups, account_id and, as a boolean, is_org_admin. And, while the ACS documentation notes that sub is mapped to userid, it makes no mention that account_id is mapped to orgid. I was able to meet my need by creating an account_id claim and a rule matching value stored in orgid to a role, but that was not at all obvious.
The best case may be fully supporting custom claims within the oidc provider. If not, then restricting rules to allowed claims would be helpful, and if not that, then please document the limitations.
- Ngôn ngữ chính
- Go
- Star
- 1.3k
- Fork
- 194
- Merge trung bình
- 2 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 392
Chuẩn bị môi trường
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 stackrox/stackrox
-
Độ 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
-
False positive: CVE-2023-29019 (@fastify/passport) reported against npm package passport 0.7.0Có thể đã có người làm @Molter73 đã nhận 1 ngày trước. Đang mở
stackrox/stackrox#23692 · 3 bình luận · 2 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
roxctl exit code (image check)Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
stackrox/stackrox#21616 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Scanner V4 DB (scanner-v4-db) disk usage grows significantly over time (16GB within a few weeks)Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
stackrox/stackrox#21463 · 1 bình luận ·
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 52/100
stackrox/stackrox#20831 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của stackrox/stackrox
Issue tương tự
-
needs-triage
Độ 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
-
WriterSetTimes: the UTIME_NOW check fails when the kernel uses its coarse clockCó thể đã có người làm @JakeChampion đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
JakeChampion/lang#14224 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
docs(reference): pi stream-filter bullet says tool_execution_update passes through unchangedĐang mởagent-butler-finding bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
jordansmall/spindrift#6391 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
common.Retry: data race on the shared response/err variables when the request context ends mid-attempt (v65.127.0, v65.128.0)Có thể đã có người làm @kmohit00 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
oracle/oci-go-sdk#676 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
SAP/crossplane-provider-btp#1175 ·
Maintainer thường phản hồi trong vòng 1 ngày