Skip to content

Commit f4964a8

Browse files
Merge pull request #756 from dmage/azure-https-only
Bug 2056519: Enable enableHttpsTrafficOnly for Azure storage account
2 parents 5cfc7ea + ce355ed commit f4964a8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/storage/azure/azure.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,9 @@ func (d *driver) createStorageAccount(storageAccountsClient storage.AccountsClie
158158

159159
kind := storage.StorageV2
160160
params := &storage.AccountPropertiesCreateParameters{
161-
AllowBlobPublicAccess: to.BoolPtr(false),
162-
MinimumTLSVersion: storage.TLS12,
161+
EnableHTTPSTrafficOnly: to.BoolPtr(true),
162+
AllowBlobPublicAccess: to.BoolPtr(false),
163+
MinimumTLSVersion: storage.TLS12,
163164
}
164165

165166
if strings.EqualFold(cloudName, "AZURESTACKCLOUD") {

0 commit comments

Comments
 (0)