Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure authentication method doesn't work with federated token #554

Open
kchervonets opened this issue Nov 20, 2023 · 0 comments
Open

Azure authentication method doesn't work with federated token #554

kchervonets opened this issue Nov 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@kchervonets
Copy link

kchervonets commented Nov 20, 2023

I have a service account in my AKS which I used to create a federated token.
If I use this service account with my pod, the pod gets a AZURE_FEDERATED_TOKEN_FILE: /var/run/secrets/azure/tokens/azure-identity-token

if I try to login to the vault using azure methond and the following set of annotations on the same pod

  `azure.workload.identity/use: "true"
    vault.hashicorp.com/agent-inject: "true"
    vault.hashicorp.com/agent-init-first: "true"
    vault.hashicorp.com/namespace: "default"
    vault.hashicorp.com/role: "dev-role"
    vault.hashicorp.com/auth-path: "auth/azure"
    vault.hashicorp.com/auth-type: "azure"`

I have a vault-agent-init running with the following error:

2023-11-20T21:43:59.828Z [ERROR] agent.auth.handler: error getting path or data from method: error="error response in metadata from http://169.254.169.254/metadata/identity/oauth2/token: {\"error\":\"invalid_request\",\"error_description\":\"Identity not found\"}" backoff=4m48.84s

It does not seem like the federation token is supported by this method, does it?

@kchervonets kchervonets added the bug Something isn't working label Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant