Skip to content

Commit 465375f

Browse files
Update azure.mdx for adding one section around known issue & its fix (#30072)
* Update azure.mdx Added one section around one known issue & how to fix it, while using Azure Auth method for workload/application running on K8s. * Update website/content/docs/auth/azure.mdx * Update website/content/docs/auth/azure.mdx * Update website/content/docs/auth/azure.mdx * Update website/content/docs/auth/azure.mdx --------- Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
1 parent ce9c011 commit 465375f

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

website/content/docs/auth/azure.mdx

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,38 @@ have a time-to-live of 1 hour and automatically refresh when they expire.
400400
Please see the [API documentation](/vault/api-docs/auth/azure#configure)
401401
for more details on the fields associated with plugin WIF.
402402

403+
## Known issues and workarounds
404+
405+
### OIDC ID token error
406+
Users have reported an [issue](https://github.com/hashicorp/vault-plugin-auth-azure/issues/141#issuecomment-2757840078), where workloads running inside AKS with Azure authentication on Vault servers deployed to Azure VM throw following error:
407+
408+
**Error**
409+
```
410+
oidc: id token issued by a different provider, expected "https://sts.windows.net/TenantID/" got "https://login.microsoftonline.com/TenantId/v2.0"
411+
```
412+
413+
414+
The error occured because `vault-agent-init` container by default uses `auth-type` as `kubernetes`.
415+
416+
Ref. https://developer.hashicorp.com/vault/docs/platform/k8s/injector/annotations#vault-hashicorp-com-auth-type
417+
418+
We need to explicitly define the azure auth method using annotation `vault.hashicorp.com/auth-type: 'azure'`.
419+
420+
Also, we need to pass resource field which is mandatory, that is why we need to pass another annotation `vault.hashicorp.com/auth-config-resource: "https://management.azure.com/"`.
421+
422+
Ref. https://developer.hashicorp.com/vault/docs/platform/k8s/injector/annotations#vault-hashicorp-com-auth-config
423+
https://developer.hashicorp.com/vault/docs/agent-and-proxy/autoauth/methods/azure#resource
424+
425+
_Annotations to use:-_
426+
427+
```
428+
...
429+
annotations:
430+
vault.hashicorp.com/auth-type: 'azure'
431+
vault.hashicorp.com/auth-config-resource: "https://management.azure.com/"
432+
...
433+
```
434+
403435
## API
404436

405437
The Azure Auth Plugin has a full HTTP API. Please see the [API documentation](/vault/api-docs/auth/azure) for more details.

0 commit comments

Comments
 (0)