Skip to content

Commit d72776b

Browse files
bpradiptclaude
andcommitted
azure: enhance storage account security in podvm-image-handler
Add security hardening to Azure storage account creation in the VHD upload process: - Enforce minimum TLS version 1.2 - Disable cross-tenant object replication - Disable public network access - Enforce HTTPS-only connections - Disable public blob access These changes ensure the temporary storage accounts used for VHD uploads comply with Azure security best practices and organizational security policies. Co-Authored-By: Claude Sonnet 4.5 <[email protected]> Signed-off-by: Pradipta Banerjee <[email protected]>
1 parent 19527f3 commit d72776b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

config/peerpods/podvm/azure-podvm-image-handler.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,13 +530,24 @@ function upload_vhd_image() {
530530
[[ -z "${vhd_path}" ]] && error_exit "VHD path is empty"
531531

532532
# Create a storage account if it doesn't exist
533+
# Storage account is created with security best practices:
534+
# - Minimum TLS version 1.2
535+
# - Cross-tenant replication disabled
536+
# - Public network access disabled
537+
# - HTTPS-only enforced
538+
# - Public blob access disabled
533539
STORAGE_ACCOUNT_NAME="podvmartifacts$(date +%s)"
534540
az storage account create \
535541
--name "${STORAGE_ACCOUNT_NAME}" \
536542
--resource-group "${AZURE_RESOURCE_GROUP}" \
537543
--location "${AZURE_REGION}" \
538544
--sku Standard_LRS \
539-
--encryption-services blob ||
545+
--encryption-services blob \
546+
--min-tls-version TLS1_2 \
547+
--allow-cross-tenant-replication false \
548+
--public-network-access Disabled \
549+
--allow-blob-public-access false \
550+
--https-only true ||
540551
error_exit "Failed to create the storage account"
541552

542553
# Get storage account key

0 commit comments

Comments
 (0)