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)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- go
- Ambito
- authentication, cli
Direzione di ricerca
Inizia con il comando current-user me e il percorso di inizializzazione del bundle che risolvono SCIM /Me, quindi riproduci il fallimento usando un profilo con ambito di ruolo e bundle validate. Determina se la CLI può evitare la ricerca o deve segnalare la limitazione del ruolo, e copri con test il comportamento scelto; il lavoro è completato quando l’autenticazione del ruolo non produce più uno SCIM_404 opaco durante il workflow supportato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Go
- Stelle
- 404
- Fork
- 246
- Merge medio
- 1g 10h
- PR unite (30g)
- 225
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di databricks/cli
-
Apps commands only accept relative path to app.ymlForse già presa @yuri-rod l’ha presa 7 giorni fa. ApertaCLI
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
databricks/cli#6910 ·
I maintainer di solito rispondono entro 1 giorno
-
DABs
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
databricks/cli#6670 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 56/100
databricks/cli#7013 ·
I maintainer di solito rispondono entro 1 giorno
-
DABs
Difficoltà 5/5 Più di una settimana Idoneità per principianti 18/100
databricks/cli#7002 ·
I maintainer di solito rispondono entro 1 giorno
-
DABs
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
databricks/cli#6986 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di databricks/cli
Issue simili
-
[schema-coverage] elasticstack_kibana_security_detection_ruleForse già presa @github-actions l’ha presa oggi. Apertaacceptance-tests phase-coding schema-coverage testing triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
elastic/terraform-provider-elasticstack#5186 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
jaegertracing/jaeger#9830 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
apache/rocketmq-dashboard#6318 ·
I maintainer di solito rispondono entro 5 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
GoogleCloudPlatform/opentelemetry-operations-collector#710 ·
I maintainer di solito rispondono entro 1 giorno