Closed mehighlow closed 1 year ago
I've found the underlying issue that we need to resolve.
For aadOrApiKey
, the payload ends up looking like this:
"authOptions": {
"aadOrApiKey": {
"aadAuthFailureMode": "http401WithBearerChallenge"
}
}
We can support generating this from ASO easily.
But when you want to use apiKeyOnly
the payload needs to look like this.
"authOptions": {
"apiKeyOnly": {}
}
That is, you need to provide an empty object (i.e {}
) as the value.
Problems we need to solve:
Describe the current behavior Azure Cognitive Search is available with ASO version 2.1.0; however, it is not possible to set the desired API access control. The service gets created with 'API keys' access control by default.
Describe the improvement It would be great to have an option for defining API access control and obtaining the AdminApiKey and QueryApiKey as secrets with
operatorSpec
, for example:A minor improvement could be adjusting the SKU to the standard (if possible) that other Azure services have - where the SKU starts with a capital letter.
Additional context https://github.com/Azure/azure-service-operator/issues/2843#issuecomment-1518375581