-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
`azurerm_mssql_server_transparent_data_encryption: support for Key Vault Keys from a Managed HSM #22977
Comments
hey @baaym Unfortunately despite some documentation to the contrary, there's already behavioural differences between a Key Vault Key and a Key backed by a Managed HSM - and unfortunately at this point in time Keys backed by a Managed HSM aren't supported in all cases. Whilst this may have worked in some places in previous versions of the Provider, unfortunately that was unintentional and so the PR #22162 has fixed this validation issue such that we clarify this isn't supported at this time. That said, I can see the requirement for this - and from our side we'd look to add support for this via a separate field, Unfortunately the domain suffix ( As such, I'm going to label this an Thanks! |
azurerm_mssql_server_transparent_data_encryption
no longer supports HSM keys
FYI: |
fixed by #26496 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Is there an existing issue for this?
Community Note
Terraform Version
1.5.5
AzureRM Provider Version
3.69.0
Affected Resource(s)/Data Source(s)
azurerm_mssql_server_transparent_data_encryption
Terraform Configuration Files
Debug Output/Panic Output
Error: parsing "https://XXX.managedhsm.azure.net/keys/KEY_NAME/KEY_VERSION": internal-error: Managed HSM IDs are not supported as Key Vault Nested Items
Expected Behaviour
With AzureRM version 3.38.0 this works fine, and our SQL Server uses a HSM key for TDE. It should still be possible to set a HSM key as the TDE key on Azure MSSql.
Actual Behaviour
Terraform throws an error:
Steps to Reproduce
terraform plan
Important Factoids
No response
References
I traced back the change to Pull Request #22162, where
nested_item.go
now explicitly checks for the presence of.managedhsm.
in the key ID. When the related parse function is called frommssql_server_transparent_data_encryption_resource.go
, it trips over the presence of.managedhsm.
and throws the error mentioned above.Direct link to the diff: https://github.com/hashicorp/terraform-provider-azurerm/pull/22162/files#diff-47ee3cc88d70fdbce65e1d87a4f46810d37aab7ed4a292f2224273c9cd7b6d8d
The text was updated successfully, but these errors were encountered: