azurerm_databricks_workspace_root_dbfs_customer_managed_key - fix panics, allow managed hsm, and allow versionless keys#31336
Conversation
…te resource to prevent panics, allow managed hsm, and allow versionless keys
catriona-m
left a comment
There was a problem hiding this comment.
Thanks @sreallymatt LGTM! Left one comment on your //todo but we don't necessarily have to fix that in this pr.
| // Only throw the import error if the keysource value has been set to something other than default... | ||
| if params.Encryption != nil && params.Encryption.Value != nil && keySource != workspaces.KeySourceDefault { | ||
| return tf.ImportAsExistsError("azurerm_databricks_workspace_root_dbfs_customer_managed_key", id.ID()) | ||
| // TODO: consider removing this check and deprecating the `key_vault_id` property. |
There was a problem hiding this comment.
I agree that we should probably remove these checks from the create/update. We don't typically check this in other customer_managed_key resources and there doesn't seem to be any particular reason it was added in this one in the first place?
There was a problem hiding this comment.
No particular reason I was able to find, I'll add an issue internally to resolve this TODO
|
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Community Note
Description
PR resolves some bugs and adds additional functionality:
azurerm_databricks_workspacePR Checklist
For example: “
resource_name_here- description of change e.g. adding propertynew_property_name_here”Changes to existing Resource / Data Source
Testing
2 failures:

basicAltSubscriptionwas ignoring the wrong field during the ImportStep, fixed and reran:basicManagedHSMseems to have failed due to a timing issue regarding the permissions allocated to the SP running Terraform. Transient error, succeeded on rerun:Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_resource- support for thething1property [GH-00000]This is a (please select all that apply):
Related Issue(s)
Fixes #25896
Fixes #27739
AI Assistance Disclosure
Rollback Plan
If a change needs to be reverted, we will publish an updated version of the provider.
Changes to Security Controls
Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.
Note
If this PR changes meaningfully during the course of review please update the title and description as required.