Enable Double (infrastructure) Encryption on ARO-provisioned storage accounts (#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
This commit is contained in:
Tanmay Satam 2023-10-17 13:26:50 -04:00 коммит произвёл GitHub
Родитель 92ca0e4c1f
Коммит 4ae11b1c41
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
5 изменённых файлов: 10 добавлений и 6 удалений

Просмотреть файл

@ -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,

Просмотреть файл

@ -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": {

Просмотреть файл

@ -107,7 +107,7 @@
"location": "[resourceGroup().location]",
"name": "[parameters('rpVersionStorageAccountName')]",
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2019-04-01"
"apiVersion": "2019-06-01"
},
{
"properties": {
@ -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'))]"
]
@ -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'))]"
]

Просмотреть файл

@ -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": {

Просмотреть файл

@ -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