-
Notifications
You must be signed in to change notification settings - Fork 108
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
AWS IAM Auth seems to ignore X-Vault-AWS-IAM-Server-ID header in VaultAuth CR #915
Comments
Hi @joshbench, Thanks reporting this issue. Would you mind setting the value on the VaultAuth's Please let us know if that helps to resolve the issue. Thanks, Ben |
I @benashz, Thank you for responding! I reconfigured my values.yml like so:
And I'm still getting an error, but now it's "missing Authorization header":
Seems like the Authorization header is possibly getting overwritten? |
Looking further into this, and also reading up on https://developer.hashicorp.com/vault/docs/auth/aws#iam-auth-method, I think I'm just not authenticating to AWS correctly, so the Authorization header is not being set. I think the version of the package used for AWS authentication uses an older version of the AWS SDK that doesn't support Pod Identity.
Where newer versions of awsutil seem to use aws-sdk-go-v2, which does support pod identity: So maybe instead, this should be a feature request to support authentication via Pod Identity? |
Describe the bug
When vault-secrets-operator is configured to authenticate to Vault with AWS IAM, with
X-Vault-AWS-IAM-Server-ID
set as a header in the VaultAuth custom resource, aVaultStaticSecret
that is configured to use the configuredVaultAuth
fails to authenticate with the following error:It seems like when the
VaultStaticSecret
attempts to refresh, or to authenticate before refreshing, it is not attempting to use this header.To Reproduce
Steps to reproduce the behavior:
kubectl describe vaultstaticsecret example-secret
kubectl describe vaultauth default
Expected behavior
Environment
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: