From 882ed6e362d78906d3fd017e4b72dacadb82180b Mon Sep 17 00:00:00 2001 From: Bevan Arps Date: Fri, 20 Sep 2024 08:47:57 +1200 Subject: [PATCH] Document hard coded key and reference origin (#4280) --- pkg/resourcemanager/autorest/authorization_helpers.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkg/resourcemanager/autorest/authorization_helpers.go b/pkg/resourcemanager/autorest/authorization_helpers.go index 7f69e8d78b8..9f9271bb86a 100644 --- a/pkg/resourcemanager/autorest/authorization_helpers.go +++ b/pkg/resourcemanager/autorest/authorization_helpers.go @@ -55,7 +55,13 @@ const HeaderRange = "Range" // StorageEmulatorAccountName is the Storage Account Name for the Azure Storage Emulator const StorageEmulatorAccountName = "devstoreaccount1" -// StorageEmulatorAccountKey is the Storage Account Key for the Azure Storage Emulator +// StorageEmulatorAccountKey is the Storage Account Key for the Azure Storage Emulator. +// +// The emulator supports a single fixed account and a well-known authentication key for +// Shared Key authentication. This account and key are the only Shared Key credentials +// permitted for use with the emulator. +// +// See https://learn.microsoft.com/en-us/azure/storage/common/storage-use-emulator#authorize-with-shared-key-credentials const StorageEmulatorAccountKey = "Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==" // buildCanonicalizedHeader builds the Canonicalized Header required to sign Storage Requests