Skip to content

Commit 6693c66

Browse files
committed
Update acls, admin users, Makefile, *.json
Signed-off-by: Aaron Wislang <aaron.wislang@microsoft.com>
1 parent 1849f35 commit 6693c66

14 files changed

Lines changed: 51 additions & 29 deletions

File tree

cloud-native/Makefile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,2 @@
11
bicep:
2-
az bicep build -f aks-arm64/main.bicep
3-
az bicep build -f aks-bicep-keda/01-aks/main.bicep
4-
az bicep build -f aks-bicep/01-aks/main.bicep
5-
az bicep build -f aks-open-service-mesh/main.bicep
6-
az bicep build -f aks-webapp-routing/main.bicep
72
az bicep build -f containerapps-bicep/main.bicep
8-
az bicep build -f aks-bicep-k8s/main.bicep

cloud-native/aks-azure-linux/aks.bicep

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ resource containerRegistry 'Microsoft.ContainerRegistry/registries@2019-05-01' =
7676
name: 'Standard'
7777
}
7878
properties: {
79-
adminUserEnabled: true
79+
adminUserEnabled: false
8080
}
8181
}
8282

@@ -88,6 +88,13 @@ resource storageAccount 'Microsoft.Storage/storageAccounts@2021-02-01' = {
8888
name: 'Premium_LRS'
8989
}
9090
properties: {
91+
allowBlobPublicAccess: false
92+
networkAcls: {
93+
defaultAction: 'Deny'
94+
bypass: 'AzureServices'
95+
virtualNetworkRules: []
96+
ipRules: []
97+
}
9198
minimumTlsVersion: 'TLS1_2'
9299
}
93100
}

cloud-native/containerapps-bicep/containerapp.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ resource containerRegistry 'Microsoft.ContainerRegistry/registries@2019-05-01' =
1818
name: 'Standard'
1919
}
2020
properties: {
21-
adminUserEnabled: true
21+
adminUserEnabled: false
2222
}
2323
}
2424

cloud-native/containerapps-bicep/containerapp.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"name": "Standard"
4848
},
4949
"properties": {
50-
"adminUserEnabled": true
50+
"adminUserEnabled": false
5151
}
5252
},
5353
{

cloud-native/containerapps-bicep/keyvault.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ resource keyVault 'Microsoft.KeyVault/vaults@2019-09-01' = {
2323
family: 'A'
2424
}
2525
networkAcls: {
26-
defaultAction: 'Allow'
26+
defaultAction: 'Deny'
2727
bypass: 'AzureServices'
2828
}
2929
accessPolicies: [

cloud-native/containerapps-bicep/main.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"name": "Standard"
9090
},
9191
"properties": {
92-
"adminUserEnabled": true
92+
"adminUserEnabled": false
9393
}
9494
},
9595
{
@@ -268,7 +268,7 @@
268268
"family": "A"
269269
},
270270
"networkAcls": {
271-
"defaultAction": "Allow",
271+
"defaultAction": "Deny",
272272
"bypass": "AzureServices"
273273
},
274274
"accessPolicies": [

cloud-native/containerapps-bicep/postgres-keyvault.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ resource keyVault 'Microsoft.KeyVault/vaults@2019-09-01' = {
2626
family: 'A'
2727
}
2828
networkAcls: {
29-
defaultAction: 'Allow'
29+
defaultAction: 'Deny'
3030
bypass: 'AzureServices'
3131
}
3232
accessPolicies: [

cloud-native/containerapps-bicep/storage.bicep

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ resource storageAccount 'Microsoft.Storage/storageAccounts@2021-02-01' = {
1515
name: 'Premium_LRS'
1616
}
1717
properties: {
18+
allowBlobPublicAccess: false
19+
networkAcls: {
20+
defaultAction: 'Deny'
21+
bypass: 'AzureServices'
22+
virtualNetworkRules: []
23+
ipRules: []
24+
}
1825
minimumTlsVersion: 'TLS1_2'
1926
}
2027
}

linux/vm-flatcar-postgres/main.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"metadata": {
55
"_generator": {
66
"name": "bicep",
7-
"version": "0.28.1.47646",
8-
"templateHash": "16546506825093351762"
7+
"version": "0.29.47.4906",
8+
"templateHash": "61716172662635668"
99
}
1010
},
1111
"parameters": {
@@ -59,8 +59,8 @@
5959
"metadata": {
6060
"_generator": {
6161
"name": "bicep",
62-
"version": "0.28.1.47646",
63-
"templateHash": "5008762517955484404"
62+
"version": "0.29.47.4906",
63+
"templateHash": "13749006361708145984"
6464
}
6565
},
6666
"parameters": {
@@ -479,8 +479,8 @@
479479
"metadata": {
480480
"_generator": {
481481
"name": "bicep",
482-
"version": "0.28.1.47646",
483-
"templateHash": "17782720627283437608"
482+
"version": "0.29.47.4906",
483+
"templateHash": "13926952482795887884"
484484
}
485485
},
486486
"parameters": {
@@ -594,8 +594,8 @@
594594
"metadata": {
595595
"_generator": {
596596
"name": "bicep",
597-
"version": "0.28.1.47646",
598-
"templateHash": "9620970338207014434"
597+
"version": "0.29.47.4906",
598+
"templateHash": "17815256772229698992"
599599
}
600600
},
601601
"parameters": {

linux/vm-mariner/vm.bicep

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,13 @@ resource storageAccount 'Microsoft.Storage/storageAccounts@2021-02-01' = {
351351
name: 'Premium_LRS'
352352
}
353353
properties: {
354+
allowBlobPublicAccess: false
355+
networkAcls: {
356+
defaultAction: 'Deny'
357+
bypass: 'AzureServices'
358+
virtualNetworkRules: []
359+
ipRules: []
360+
}
354361
minimumTlsVersion: 'TLS1_2'
355362
}
356363
}

0 commit comments

Comments
 (0)