Open masterphenix opened 2 years ago
@masterphenix did you find any solution? I have the same error with azure federation token now.
Hello, not sure it is considered a solution, but since AAD Pod Identity is now deprecated, we have moved to Azure Workload Identity, and it works fine.
@masterphenix Hi, for me Azure Workload Identity does not work, I have the same 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
Could you please provide a bit more details about your set up? Such as VAULT_CONFIG for example, so I can compare, thanks.
@kchervonets Hi, I'm facing the same issues and I'm not sure what I'm doing wrong. Did you manage to get it working? I guess the problem is with HashiCorp Vault, not with the user-assigned identity
@aleksandrovpa I've never managed to make it worked with user assigned identities. It works fine with workload assigned identities, but user ones don't. I looked through vault injector's code and Azure library and didn't find any confirmation that it should work. I ended up using neither and used AKS as a oidc issuer and a auth/jwt method for authentication.
@kchervonets could you please share the links about workload assigned identities? There are too many documents, and I have no idea which one works. I'd greatly appreciate it!
Describe the bug I am getting the following errors in the injected init container when trying to use Azure Auth with the Vault Injector, and a user assigned Identity assigned to my pod. First a couple of these:
And then, a whole lot of these until the pod is killed:
To Reproduce Steps to reproduce the behavior:
Application deployment:
When the init-container is not injected, and the IMDS manually queried, a token is successfully acquired:
And, If I query vault manually from this point on with vault CLI, I can successfully access my secret by means of the user assigned Identity.
Expected behavior Init-container should be able to successfully use pod identity to query secrets.
Environment
Additional context N/A