Closed lennartkats-db closed 3 weeks ago
Yeah, no functional change. If Alice deploys, then Alice is still the OWNER like before, even though there's a permission that says she has CAN_MANAGE. If the template is freshly created from the template and Bob deploys, Bob would always get an error about run_as Alice and/or deployment to Users/Alice.
Changes
This updates the templates to include a
permissions
section. Having a permissions section is a best practice, is helpful to understand the notion of permissions, and helps diagnose permission errors (https://github.com/databricks/cli/pull/1386).This is a cherry-pick from https://github.com/databricks/cli/pull/1387.
This change was verified to work both in dev and prod. Existing unit tests validate the validity of the templates in these modes.