Bundle and current-user commands fail with 404 SCIM_404 ("No user found with ID <group-id>") when authenticated as a role (RBAC Public Preview)
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ó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- go
- Lĩnh vực
- authentication, cli
Hướng nghiên cứu
Bắt đầu với lệnh current-user me và đường dẫn khởi tạo bundle xử lý việc phân giải SCIM /Me, sau đó tái hiện lỗi bằng profile giới hạn theo role và bundle validate. Xác định liệu CLI có thể tránh việc tra cứu hay phải báo cáo giới hạn của role, và dùng các test để kiểm tra hành vi đã chọn; hoàn thành có nghĩa là việc xác thực role không còn tạo ra SCIM_404 không rõ nguyên nhân trong workflow được hỗ trợ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the issue
When authenticated to a workspace as a role (RBAC Public Preview, where a role is backed by a group) via databricks auth login (selecting the role in the browser flow), any command that resolves the current user fails:
Error: Could not handle request. Failed to getMe in common handler. No user found with ID <group-id>. (404 SCIM_404)
Endpoint: GET https://<workspace-url>/api/2.0/preview/scim/v2/Me?
HTTP Status: 404 Not Found
API error_code: SCIM_404
The ID in the error is the ID of the group backing the assumed role, not a user ID. The SCIM /Me endpoint apparently tries to resolve the caller as a user, but the token principal is a group, so the lookup 404s.
This is not limited to current-user me. All bundle commands (including bundle validate) fail at initialization, because the bundle library unconditionally resolves the current user via SCIM /Me to populate workspace.current_user — even when the bundle configuration does not reference ${workspace.current_user} at all. As a result, Databricks Asset Bundles are entirely unusable when authenticated as a role.
Steps to reproduce
- Enable the RBAC preview (account + workspace level) and have Assume permission on a role (group) in the workspace.
databricks auth login --host <workspace-url> -p MAINTAINERand select the role (not the user identity) in the browser.- Run either of:
databricks current-user me -p MAINTAINERdatabricks bundle validate -t prod -p MAINTAINER
Expected behavior
One of:
- SCIM
/Me(andworkspace.current_user) resolves to the assumed role's principal (the group), or - bundle commands skip current-user resolution when the config does not reference
${workspace.current_user}, or - the CLI returns a clear error stating that this operation is unsupported when acting as a role.
Neither the switch-roles docs (which document the CLI login flow) nor the RBAC limitations page mention this limitation. If this is a known backend limitation of the preview, documenting it (and having bundle fail with an actionable message) would already help.
Actual behavior
Error: Could not handle request. Failed to getMe in common handler. No user found with ID <group-id>. (404 SCIM_404)
Endpoint: GET https://<workspace-url>/api/2.0/preview/scim/v2/Me?
HTTP Status: 404 Not Found
API error_code: SCIM_404
API message: Could not handle request. Failed to getMe in common handler. No user found with ID <group-id>.
Environment
- Databricks CLI version: v1.12.1
- OS: macOS 26.6.2
- Cloud: AWS
- Auth type: OAuth U2M (
databricks auth login), role selected in browser - RBAC Public Preview: enabled
Additional context
- Authenticating the same host as my user identity works as expected; only role-scoped tokens fail.
- Calling the endpoint directly reproduces the error, so the failure is server-side; this issue is about the CLI's hard dependency on
/Memaking bundles unusable under RBAC:
databricks api get /api/2.0/preview/scim/v2/Me -p MAINTAINER→ same404 SCIM_404. - Related: PR #5822 adds a
--group-idflag to assume a group during OAuth login. Once that lands, this bug becomes more visible, since role login gets easier while bundles still cannot run under a role.
- Ngôn ngữ chính
- Go
- Star
- 404
- Fork
- 246
- Merge trung bình
- 1 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 225
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Không 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 databricks/cli
-
Apps commands only accept relative path to app.ymlCó thể đã có người làm @yuri-rod đã nhận 7 ngày trước. Đang mởCLI
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
databricks/cli#6910 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
DABs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
databricks/cli#6670 ·
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 56/100
databricks/cli#7013 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
DABs
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 18/100
databricks/cli#7002 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
DABs
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
databricks/cli#6986 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của databricks/cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
accepted bug wg/agentic-context
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
vllm-project/semantic-router#4922 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] Extraction-mode autogen returns pod templates in random order for map-keyed CRDs, so deny and report messages change between runsCó thể đã có người làm @ManojLamani đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
kyverno/kyverno#17980 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
raised-by:reviewer
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 84/100
medici-finance/assay#2681 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
fullsend-ai/fullsend#8353 · 4 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày