We have a managed identity keda-dev that we use successfully via the azure-workload provider to auth against ServiceBus. However, when attempting to use the same managed identity via TriggerAuthentication with the mssql trigger type against an Azure-hosted database (and after adding the appropriate DB permissions), the SQL login is failing.
Expected Behavior
I didn't see anything in the documentation that says whether this is expected to work or not work, but I would generally expect the mssql trigger type to support the azure-workload auth provider, especially when the database being targeted is hosted on Azure.
Actual Behavior
We are receiving an error from KEDA: error establishing mssql connection: mssql: login error: Login failed for user ''.
Steps to Reproduce the Problem
Set up a managed identity with a federated credential and database access
Create scaled job with a trigger of type mssql and an azure-workload auth provider, using the managed identity's client id as the identityId
Observe the scaled job's failure to connect to the database
Report
We have a managed identity
keda-dev
that we use successfully via theazure-workload
provider to auth against ServiceBus. However, when attempting to use the same managed identity via TriggerAuthentication with themssql
trigger type against an Azure-hosted database (and after adding the appropriate DB permissions), the SQL login is failing.Expected Behavior
I didn't see anything in the documentation that says whether this is expected to work or not work, but I would generally expect the
mssql
trigger type to support theazure-workload
auth provider, especially when the database being targeted is hosted on Azure.Actual Behavior
We are receiving an error from KEDA:
error establishing mssql connection: mssql: login error: Login failed for user ''.
Steps to Reproduce the Problem
mssql
and anazure-workload
auth provider, using the managed identity's client id as theidentityId
Logs from KEDA operator
KEDA Version
2.14.1
Kubernetes Version
1.29
Platform
Microsoft Azure
Scaler Details
MSSQL
Anything else?
Here are the manifests I'm using, with some information redacted...