Skip to content

Commit

Permalink
Enforce RBAC only for non-free search service (#1502)
Browse files Browse the repository at this point in the history
* Configure Azure Developer Pipeline

* Configure Azure Developer Pipeline

* Update pricing calculator link

* Enforce RBAC only for search service

* Rm unneeded change

* Remove it from main.bicep
  • Loading branch information
pamelafox authored Apr 9, 2024
1 parent 9e76dc3 commit 774d3d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion infra/core/search/search-services.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ resource search 'Microsoft.Search/searchServices@2021-04-01-preview' = {
// The free tier does not support managed identity
identity: searchIdentityProvider
properties: {
authOptions: authOptions
authOptions: disableLocalAuth ? null : authOptions
disableLocalAuth: disableLocalAuth
disabledDataExfiltrationOptions: disabledDataExfiltrationOptions
encryptionWithCmk: encryptionWithCmk
Expand Down
6 changes: 1 addition & 5 deletions infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -418,11 +418,7 @@ module searchService 'core/search/search-services.bicep' = {
name: !empty(searchServiceName) ? searchServiceName : 'gptkb-${resourceToken}'
location: !empty(searchServiceLocation) ? searchServiceLocation : location
tags: tags
authOptions: {
aadOrApiKey: {
aadAuthFailureMode: 'http401WithBearerChallenge'
}
}
disableLocalAuth: !useSearchServiceKey
sku: {
name: searchServiceSkuName
}
Expand Down

0 comments on commit 774d3d3

Please sign in to comment.