Skip to content

Commit

Permalink
Update acls, admin users, Makefile, *.json
Browse files Browse the repository at this point in the history
    Signed-off-by: Aaron Wislang <[email protected]>
  • Loading branch information
asw101 committed Aug 29, 2024
1 parent 1849f35 commit 6693c66
Show file tree
Hide file tree
Showing 14 changed files with 51 additions and 29 deletions.
6 changes: 0 additions & 6 deletions cloud-native/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
bicep:
az bicep build -f aks-arm64/main.bicep
az bicep build -f aks-bicep-keda/01-aks/main.bicep
az bicep build -f aks-bicep/01-aks/main.bicep
az bicep build -f aks-open-service-mesh/main.bicep
az bicep build -f aks-webapp-routing/main.bicep
az bicep build -f containerapps-bicep/main.bicep
az bicep build -f aks-bicep-k8s/main.bicep
9 changes: 8 additions & 1 deletion cloud-native/aks-azure-linux/aks.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ resource containerRegistry 'Microsoft.ContainerRegistry/registries@2019-05-01' =
name: 'Standard'
}
properties: {
adminUserEnabled: true
adminUserEnabled: false
}
}

Expand All @@ -88,6 +88,13 @@ resource storageAccount 'Microsoft.Storage/storageAccounts@2021-02-01' = {
name: 'Premium_LRS'
}
properties: {
allowBlobPublicAccess: false
networkAcls: {
defaultAction: 'Deny'
bypass: 'AzureServices'
virtualNetworkRules: []
ipRules: []
}
minimumTlsVersion: 'TLS1_2'
}
}
Expand Down
2 changes: 1 addition & 1 deletion cloud-native/containerapps-bicep/containerapp.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ resource containerRegistry 'Microsoft.ContainerRegistry/registries@2019-05-01' =
name: 'Standard'
}
properties: {
adminUserEnabled: true
adminUserEnabled: false
}
}

Expand Down
2 changes: 1 addition & 1 deletion cloud-native/containerapps-bicep/containerapp.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"name": "Standard"
},
"properties": {
"adminUserEnabled": true
"adminUserEnabled": false
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion cloud-native/containerapps-bicep/keyvault.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ resource keyVault 'Microsoft.KeyVault/vaults@2019-09-01' = {
family: 'A'
}
networkAcls: {
defaultAction: 'Allow'
defaultAction: 'Deny'
bypass: 'AzureServices'
}
accessPolicies: [
Expand Down
4 changes: 2 additions & 2 deletions cloud-native/containerapps-bicep/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"name": "Standard"
},
"properties": {
"adminUserEnabled": true
"adminUserEnabled": false
}
},
{
Expand Down Expand Up @@ -268,7 +268,7 @@
"family": "A"
},
"networkAcls": {
"defaultAction": "Allow",
"defaultAction": "Deny",
"bypass": "AzureServices"
},
"accessPolicies": [
Expand Down
2 changes: 1 addition & 1 deletion cloud-native/containerapps-bicep/postgres-keyvault.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ resource keyVault 'Microsoft.KeyVault/vaults@2019-09-01' = {
family: 'A'
}
networkAcls: {
defaultAction: 'Allow'
defaultAction: 'Deny'
bypass: 'AzureServices'
}
accessPolicies: [
Expand Down
7 changes: 7 additions & 0 deletions cloud-native/containerapps-bicep/storage.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ resource storageAccount 'Microsoft.Storage/storageAccounts@2021-02-01' = {
name: 'Premium_LRS'
}
properties: {
allowBlobPublicAccess: false
networkAcls: {
defaultAction: 'Deny'
bypass: 'AzureServices'
virtualNetworkRules: []
ipRules: []
}
minimumTlsVersion: 'TLS1_2'
}
}
Expand Down
16 changes: 8 additions & 8 deletions linux/vm-flatcar-postgres/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.28.1.47646",
"templateHash": "16546506825093351762"
"version": "0.29.47.4906",
"templateHash": "61716172662635668"
}
},
"parameters": {
Expand Down Expand Up @@ -59,8 +59,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.28.1.47646",
"templateHash": "5008762517955484404"
"version": "0.29.47.4906",
"templateHash": "13749006361708145984"
}
},
"parameters": {
Expand Down Expand Up @@ -479,8 +479,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.28.1.47646",
"templateHash": "17782720627283437608"
"version": "0.29.47.4906",
"templateHash": "13926952482795887884"
}
},
"parameters": {
Expand Down Expand Up @@ -594,8 +594,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.28.1.47646",
"templateHash": "9620970338207014434"
"version": "0.29.47.4906",
"templateHash": "17815256772229698992"
}
},
"parameters": {
Expand Down
7 changes: 7 additions & 0 deletions linux/vm-mariner/vm.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,13 @@ resource storageAccount 'Microsoft.Storage/storageAccounts@2021-02-01' = {
name: 'Premium_LRS'
}
properties: {
allowBlobPublicAccess: false
networkAcls: {
defaultAction: 'Deny'
bypass: 'AzureServices'
virtualNetworkRules: []
ipRules: []
}
minimumTlsVersion: 'TLS1_2'
}
}
Expand Down
11 changes: 9 additions & 2 deletions linux/vm-mariner/vm.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.28.1.47646",
"templateHash": "15024671018336532028"
"version": "0.29.47.4906",
"templateHash": "4772838773161597591"
}
},
"parameters": {
Expand Down Expand Up @@ -414,6 +414,13 @@
"name": "Premium_LRS"
},
"properties": {
"allowBlobPublicAccess": false,
"networkAcls": {
"defaultAction": "Deny",
"bypass": "AzureServices",
"virtualNetworkRules": [],
"ipRules": []
},
"minimumTlsVersion": "TLS1_2"
}
},
Expand Down
4 changes: 2 additions & 2 deletions linux/vm-mastodon/vm.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.28.1.47646",
"templateHash": "9529550557696470493"
"version": "0.29.47.4906",
"templateHash": "1716787271065300818"
}
},
"parameters": {
Expand Down
4 changes: 2 additions & 2 deletions linux/vm/vm.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.28.1.47646",
"templateHash": "3859452481311857536"
"version": "0.29.47.4906",
"templateHash": "18192218196942100983"
}
},
"parameters": {
Expand Down
4 changes: 2 additions & 2 deletions linux/vmss/vmss.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.28.1.47646",
"templateHash": "9575926172091705339"
"version": "0.29.47.4906",
"templateHash": "14570331344852001599"
}
},
"parameters": {
Expand Down

0 comments on commit 6693c66

Please sign in to comment.