Skip to content

Commit

Permalink
Update KeyVault references (#4112)
Browse files Browse the repository at this point in the history
* Update KeyVault references

* Update changelog

* Update secret name

---------

Co-authored-by: Tim Allen <[email protected]>
Co-authored-by: Yuval Yaron <[email protected]>
  • Loading branch information
3 people authored Nov 6, 2024
1 parent 9140431 commit f0c2a59
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ENHANCEMENTS:
* Update Terraform to use Azure AD authentication rather than storage account keys ([#4103](https://github.com/microsoft/AzureTRE/issues/4103))

BUG FIXES:
- Update KeyVault references in API to use the version so Terraform cascades the update ([#4112](https://github.com/microsoft/AzureTRE/pull/4112))

COMPONENTS:

Expand Down
6 changes: 3 additions & 3 deletions core/terraform/api-webapp.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ resource "azurerm_linux_web_app" "api" {
"RESOURCE_LOCATION" = azurerm_resource_group.core.location
"ENABLE_SWAGGER" = var.enable_swagger
"SWAGGER_UI_CLIENT_ID" = var.swagger_ui_client_id
"AAD_TENANT_ID" = "@Microsoft.KeyVault(SecretUri=${azurerm_key_vault_secret.auth_tenant_id.id})"
"API_CLIENT_ID" = "@Microsoft.KeyVault(SecretUri=${azurerm_key_vault_secret.api_client_id.id})"
"API_CLIENT_SECRET" = "@Microsoft.KeyVault(SecretUri=${azurerm_key_vault_secret.api_client_secret.id})"
"AAD_TENANT_ID" = "@Microsoft.KeyVault(SecretUri=${azurerm_key_vault.kv.vault_uri}secrets/${azurerm_key_vault_secret.auth_tenant_id.name}/${azurerm_key_vault_secret.auth_tenant_id.version})"
"API_CLIENT_ID" = "@Microsoft.KeyVault(SecretUri=${azurerm_key_vault.kv.vault_uri}secrets/${azurerm_key_vault_secret.api_client_id.name}/${azurerm_key_vault_secret.api_client_id.version})"
"API_CLIENT_SECRET" = "@Microsoft.KeyVault(SecretUri=${azurerm_key_vault.kv.vault_uri}secrets/${azurerm_key_vault_secret.api_client_secret.name}/${azurerm_key_vault_secret.api_client_secret.version})"
"RESOURCE_GROUP_NAME" = azurerm_resource_group.core.name
"SUBSCRIPTION_ID" = data.azurerm_subscription.current.subscription_id
CORE_ADDRESS_SPACE = var.core_address_space
Expand Down
2 changes: 1 addition & 1 deletion core/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.10.11"
__version__ = "0.10.12"

0 comments on commit f0c2a59

Please sign in to comment.