Skip to content

Commit

Permalink
Document hard coded key and reference origin (#4280)
Browse files Browse the repository at this point in the history
  • Loading branch information
theunrepentantgeek authored Sep 19, 2024
1 parent bb03424 commit 882ed6e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/resourcemanager/autorest/authorization_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 882ed6e

Please sign in to comment.