Uh oh!
There was an error while loading. Please reload this page.
feat: Refine run_as validation for dashboards to only disallow when… - #4408
feat: Refine run_as validation for dashboards to only disallow when…#4408iammuntazirali wants to merge 1 commit into
run_as validation for dashboards to only disallow when…#4408Conversation
… `embed_credentials` is true.
An authorized user can trigger integration tests manually by following the instructions below: Trigger: Inputs:
Checks will be approved automatically on success. |
andrewnester
commented
Feb 12, 2026
Thanks for raising the PR! For contributing to Databricks CLI we require users to sign CLA, if that's something you are willing to do, please drop an email with a request to dabs-feedback@databricks.com |
kmarq
commented
Feb 27, 2026
Any hope on this one moving forward? |
txti
commented
Apr 13, 2026
Is there another committer (with a CLA) that can take this forward? IMHO this is a bug, not a feature. If it is a "feature" then it stands to reason that there is a "correct" way to set the Today that is not possible and the only way that might work is to set In my case, I can't even do that because in development mode I need to use Now I probably need to create a separate solution and copy configurations everyone which is worse than my old bash scripts. |
This PR has not received an update in a while. If you want to keep this PR open, please leave a comment below or push a new commit and auto-close will be canceled. |
Description
Fixes#4394
This PR refines the run_as validation for dashboards. Previously, all dashboards were rejected when the bundle's run_as identity differed from the deployment user. Now, only dashboards with
embed_credentials: trueare rejected, as those embed the owner's credentials for query execution.Dashboards with
embed_credentials: false(the default) don't embed owner credentials - queries run under the viewer's credentials instead. Therefore, the run_as setting is irrelevant for these dashboards and they should be allowed.Changes
embed_credentials: trueembed_credentialsrequirementdashboardsto theallowListin tests since they're now conditionally allowedembed_credentials: true) and success case (embed_credentials: false)run_as/dashboard_embed_credentials/andrun_as/dashboard_no_embed/Why
The previous behavior was overly restrictive. According to the run_as documentation, run_as semantics apply to resources that execute code on behalf of a user. Dashboards with
embed_credentials: falsedon't embed the owner's credentials for query execution - they run queries using the viewer's credentials. This means run_as is irrelevant for such dashboards, and blocking deployment was unnecessarily preventing valid use cases.Tests
embed_credentials: truestill fail validationembed_credentials: falsepass validationacceptance/bundle/run_as/dashboard_embed_credentials/andacceptance/bundle/run_as/dashboard_no_embed/Run tests with: