Skip to content

Using azure workload identity requires using a deprecated side car injection #5353

Closed
@alexku7

Description

@alexku7

Describe the bug
Cortex supports using the Azure workload identity when the AKS cluster is used for Cortex deployment.
However, Cortex uses a deprecated method to get the token from the IMDS metadata.
This approach required to put the annotation azure.workload.identity/inject-proxy-sidecar: true in order to inject a special side car. Microsoft deprecated this method

Cortex should upgrade the Azure SDK and use automatically the env vars , such as

AZURE_CLIENT_ID
AZURE_TENANT_ID
AZURE_FEDERATED_TOKEN_FILE

The variables are injected automatically by Azure workload identity admission hook:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions