-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[1.4.x] Nomad integration breakage with aws / aws-ec2 auth and instance metadata #8972
Comments
The upgrade guide is helpful here. I had missed it originally. As a user (vault and/or nomad), I think I would like to know which of |
I faced the same, in some cases mandatory metadata field will be required https://github.com/hashicorp/vault/blob/master/builtin/credential/aws/path_login.go#L965-L969 |
We ran into this issue upgrading from v1.3.4 to 1.4.1 (not using Nomad). While the upgrade guide did note the change in behavior, it did not note that the |
The update to the metadata handling was indeed an API change, but it definitely should not have broken token renewal. A fix will be coming soon, and in the interim the manual configuration you've mentioned is the correct mitigation. We've added a 1.4.1 upgrade guide and updated the 1.3.5 guide to describe this situation and workaround. After the fix, the metadata customization will not be a requirement. You'll be able to set that as appropriate (or not at all), and Vault will always retain what is needed for token renewal. Thank you for reporting this! |
Upgrading vault from 1.3.x to 1.4.x causes token renew-self failures with nomad 0.11.1 (and possibly others). This might be a silent BC break for nomad users. It went unnoticed for several days in my test environment, but I suspect that it could have lead to widespread downtime if left long enough.
Error message logged by nomad:
Gitter discussions:
The issue seems to be related to recent value changes related to EC2 instance metadata:
In my environment, adding back the the ec2_metadata attributes appears to completely fix the issue:
I also added iam_metadata based on a previous community member's findings, but those may not be necessary to fix this particular problem.
Environment:
vault status
): 1.4.1vault version
): 1.4.1The text was updated successfully, but these errors were encountered: