Skip to content

Commit fcbebae

Browse files
authored
Merge pull request Azure#3561 from Azure/ankusing/ARO-5514-cosmosdb-disable-local-auth
Disable cosmosdb local auth
2 parents fcd3e1d + dc2a28b commit fcbebae

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

pkg/deploy/assets/rp-development.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
"defaultConsistencyLevel": "Strong"
7171
},
7272
"databaseAccountOfferType": "Standard",
73+
"disableLocalAuth": true,
7374
"locations": [
7475
{
7576
"locationName": "[resourceGroup().location]"

pkg/deploy/assets/rp-production.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,7 @@
673673
},
674674
"databaseAccountOfferType": "Standard",
675675
"disableKeyBasedMetadataWriteAccess": true,
676+
"disableLocalAuth": true,
676677
"ipRules": "[if(parameters('disableCosmosDBFirewall'), createArray(), concat(parameters('ipRules'),createArray(createObject('ipAddressOrRange', '104.42.195.92'),createObject('ipAddressOrRange','40.76.54.131'),createObject('ipAddressOrRange','52.176.6.30'),createObject('ipAddressOrRange','52.169.50.45'),createObject('ipAddressOrRange','52.187.184.26'))))]",
677678
"isVirtualNetworkFilterEnabled": "[not(parameters('disableCosmosDBFirewall'))]",
678679
"locations": [

pkg/deploy/generator/resources_rp.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -884,6 +884,7 @@ func (g *generator) rpCosmosDB() []*arm.Resource {
884884
},
885885
},
886886
MinimalTLSVersion: &minTLSVersion,
887+
DisableLocalAuth: to.BoolPtr(true), // Disable local authentication
887888
},
888889
Name: to.StringPtr("[parameters('databaseAccountName')]"),
889890
Type: to.StringPtr("Microsoft.DocumentDB/databaseAccounts"),

0 commit comments

Comments
 (0)