Skip to content

Commit

Permalink
Enable encryption at host for vms (#4263)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvalyaron authored Jan 28, 2025
1 parent fd89717 commit 7c88fe4
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ ENHANCEMENTS:
* Add EventGrid diagnostics to identify airlock issues ([#4258](https://github.com/microsoft/AzureTRE/issues/4258))
* Allow enablement of Secure Boot and vTPM for Guacamole VMs ([#4235](https://github.com/microsoft/AzureTRE/issues/4235))
* Surface the server-layout parameter of Guacamole [server-layout](https://guacamole.apache.org/doc/gug/configuring-guacamole.html#session-settings) ([#4234](https://github.com/microsoft/AzureTRE/issues/4234))
* Add encryption at host for VMs ([#4263](https://github.com/microsoft/AzureTRE/pull/4263))

BUG FIXES:
* Update KeyVault references in API to use the version so Terraform cascades the update ([#4112](https://github.com/microsoft/AzureTRE/pull/4112))
Expand Down
2 changes: 1 addition & 1 deletion core/terraform/resource_processor/vmss_porter/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ resource "azurerm_linux_virtual_machine_scale_set" "vm_linux" {
disable_password_authentication = false
admin_password = random_password.password.result
custom_data = data.template_cloudinit_config.config.rendered
encryption_at_host_enabled = false
encryption_at_host_enabled = true
upgrade_mode = "Automatic"
tags = local.tre_core_tags
secure_boot_enabled = true
Expand Down
5 changes: 3 additions & 2 deletions core/terraform/servicebus.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ resource "azurerm_servicebus_namespace" "sb" {
dynamic "customer_managed_key" {
for_each = var.enable_cmk_encryption ? [1] : []
content {
key_vault_key_id = azurerm_key_vault_key.tre_encryption[0].id
identity_id = azurerm_user_assigned_identity.encryption[0].id
key_vault_key_id = azurerm_key_vault_key.tre_encryption[0].id
identity_id = azurerm_user_assigned_identity.encryption[0].id
infrastructure_encryption_enabled = true
}
}

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.11.18"
__version__ = "0.11.19"
2 changes: 1 addition & 1 deletion resource_processor/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.11.0"
__version__ = "0.11.1"
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ resource "azurerm_windows_virtual_machine" "jumpbox" {
admin_username = "adminuser"
admin_password = random_password.password.result
tags = local.tre_shared_service_tags
encryption_at_host_enabled = true
secure_boot_enabled = true
vtpm_enabled = true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ resource "azurerm_linux_virtual_machine" "nexus" {
admin_username = "adminuser"
admin_password = random_password.nexus_vm_password.result
tags = local.tre_shared_service_tags
encryption_at_host_enabled = true
secure_boot_enabled = true
vtpm_enabled = true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ resource "azurerm_windows_virtual_machine" "windowsvm" {
allow_extension_operations = true
admin_username = random_string.username.result
admin_password = random_password.password.result
encryption_at_host_enabled = true
secure_boot_enabled = local.secure_boot_enabled
vtpm_enabled = local.vtpm_enabled

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ resource "azurerm_windows_virtual_machine" "windowsvm" {
allow_extension_operations = true
admin_username = random_string.username.result
admin_password = random_password.password.result
encryption_at_host_enabled = true
secure_boot_enabled = local.secure_boot_enabled
vtpm_enabled = local.vtpm_enabled

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ resource "azurerm_linux_virtual_machine" "linuxvm" {
disable_password_authentication = false
admin_username = random_string.username.result
admin_password = random_password.password.result
encryption_at_host_enabled = true
secure_boot_enabled = local.secure_boot_enabled
vtpm_enabled = local.vtpm_enabled

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ resource "azurerm_windows_virtual_machine" "windowsvm" {
allow_extension_operations = true
admin_username = random_string.username.result
admin_password = random_password.password.result
encryption_at_host_enabled = true
secure_boot_enabled = local.secure_boot_enabled
vtpm_enabled = local.vtpm_enabled

Expand Down

0 comments on commit 7c88fe4

Please sign in to comment.