Describe the bug
ReplicationDestination and ReplicationSource no longer auto picks up the correct information for Azure Workload Identity. It seems #1934 broke it.
At least for the ReplicationSource, this worked in 0.15.0. In 0.16.0, manually trying to restore from backup, it is now broken.
Steps to reproduce
Set up Azure Workload Identity. Create a service account with federated credentials, and contributor access to a storage account. Make sure the service account is annotated with the manage identity client id.
Set the ReplicationSource/Destination moverServiceAccount to the service account. Use the federated service account. Set moverPodLabels: azure.workload.identity/use: "true"
Expected behavior
AZURE_TENANT_ID, AZURE_CLIENT_ID and AZURE_FEDERATED_TOKEN_FILE are all defined as env:. No more magic is necessary.
Actual results
I tries loading these from a secret.
Additional context
When workload identity is enabled, you should not need to do anything else. All necessary secrets are already loaded and defined as the platform intends.
Describe the bug
ReplicationDestination and ReplicationSource no longer auto picks up the correct information for Azure Workload Identity. It seems #1934 broke it.
At least for the ReplicationSource, this worked in 0.15.0. In 0.16.0, manually trying to restore from backup, it is now broken.
Steps to reproduce
Set up Azure Workload Identity. Create a service account with federated credentials, and contributor access to a storage account. Make sure the service account is annotated with the manage identity client id.
Set the ReplicationSource/Destination moverServiceAccount to the service account. Use the federated service account. Set moverPodLabels:
azure.workload.identity/use: "true"Expected behavior
AZURE_TENANT_ID,AZURE_CLIENT_IDandAZURE_FEDERATED_TOKEN_FILEare all defined asenv:. No more magic is necessary.Actual results
I tries loading these from a secret.
Additional context
When workload identity is enabled, you should not need to do anything else. All necessary secrets are already loaded and defined as the platform intends.