Skip to content

Commit

Permalink
Enable Double (infrastructure) Encryption on ARO-provisioned storage …
Browse files Browse the repository at this point in the history
…accounts (Azure#3216)

* Upgrade Microsoft.Storage API Version to 2019-06-01

* Explicitly set encryption Enabled=True on all storage account services

This is not strictly necessary, as the Storage API will default these to True.
This change is just to reconcile expected with actual.

* Update generated deployment assets
  • Loading branch information
tsatam authored and ventifus committed Feb 7, 2024
1 parent d5937fa commit 182e724
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions pkg/cluster/deploybaseresources_additional.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,19 @@ func (m *manager) storageAccount(name, region string, ocpSubnets []string, encry
Services: &mgmtstorage.EncryptionServices{
Blob: &mgmtstorage.EncryptionService{
KeyType: mgmtstorage.KeyTypeAccount,
Enabled: to.BoolPtr(true),
},
File: &mgmtstorage.EncryptionService{
KeyType: mgmtstorage.KeyTypeAccount,
Enabled: to.BoolPtr(true),
},
Table: &mgmtstorage.EncryptionService{
KeyType: mgmtstorage.KeyTypeAccount,
Enabled: to.BoolPtr(true),
},
Queue: &mgmtstorage.EncryptionService{
KeyType: mgmtstorage.KeyTypeAccount,
Enabled: to.BoolPtr(true),
},
},
KeySource: mgmtstorage.KeySourceMicrosoftStorage,
Expand Down
2 changes: 1 addition & 1 deletion pkg/deploy/assets/gateway-production.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
"location": "[resourceGroup().location]",
"name": "[substring(parameters('gatewayStorageAccountDomain'), 0, indexOf(parameters('gatewayStorageAccountDomain'), '.'))]",
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2019-04-01"
"apiVersion": "2019-06-01"
},
{
"sku": {
Expand Down
6 changes: 3 additions & 3 deletions pkg/deploy/assets/rp-production-global.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"location": "[resourceGroup().location]",
"name": "[parameters('rpVersionStorageAccountName')]",
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2019-04-01"
"apiVersion": "2019-06-01"
},
{
"properties": {
Expand All @@ -116,7 +116,7 @@
},
"name": "[concat(parameters('rpVersionStorageAccountName'), '/default/rpversion')]",
"type": "Microsoft.Storage/storageAccounts/blobServices/containers",
"apiVersion": "2019-04-01",
"apiVersion": "2019-06-01",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', parameters('rpVersionStorageAccountName'))]"
]
Expand All @@ -128,7 +128,7 @@
},
"name": "[concat(parameters('rpVersionStorageAccountName'), '/default/ocpversions')]",
"type": "Microsoft.Storage/storageAccounts/blobServices/containers",
"apiVersion": "2019-04-01",
"apiVersion": "2019-06-01",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', parameters('rpVersionStorageAccountName'))]"
]
Expand Down
2 changes: 1 addition & 1 deletion pkg/deploy/assets/rp-production.json
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@
"location": "[resourceGroup().location]",
"name": "[substring(parameters('storageAccountDomain'), 0, indexOf(parameters('storageAccountDomain'), '.'))]",
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2019-04-01"
"apiVersion": "2019-06-01"
},
{
"properties": {
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/azureclient/apiversions.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var apiVersions = map[string]string{
"microsoft.network": "2020-08-01",
"microsoft.network/dnszones": "2018-05-01",
"microsoft.network/privatednszones": "2018-09-01",
"microsoft.storage": "2019-04-01",
"microsoft.storage": "2019-06-01",
}

// APIVersion gets the APIVersion from a full resource type
Expand Down

0 comments on commit 182e724

Please sign in to comment.