-
-
Notifications
You must be signed in to change notification settings - Fork 192
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
Switch AWS data source to IMDSv2 #848
Comments
Yup, definitely still using v1 😉 Looking at aws/aws-sdk-go#2980 it seems there may be some extra latency when IMDSv2 isn't available. I've had some issues recently with IMDS/IMDSv2 - for example in Kubernetes clusters sometimes tools like KIAM are used, which intercept the IMDS calls and redirect them to a central server. IMDSv2 support was only added to KIAM in March, and so it's likely that some users of this tool have not yet upgraded. Either way, I think just switching to IMDSv2 as you say is probably the best option. There's a possibility it'll introduce latency, but long-term it's the right thing to do. @cburgmer Are you interested in submitting a PR for this? |
I referenced the issue here on the company issue tracker. When this get's priority I'm sure this can be done. |
@cburgmer thanks! |
Is there any timeline when this issue will be picked up to support IMDSv2 auth for AWS instances ? |
@angrastuti not as far as I'm aware... In gomplate v4 however I will switch to using |
AWS' instance metadata service has received a more secure way of accessing it (version 2 called IMDSv2): https://aws.amazon.com/blogs/security/defense-in-depth-open-firewalls-reverse-proxies-ssrf-vulnerabilities-ec2-instance-metadata-service/
Looking at https://github.com/hairyhenderson/gomplate/blob/master/aws/ec2meta.go we are probably still calling it with the previous version.
As both versions are supported by AWS the migration plan could be as easy as switching to IMDSv2 instead, which means fetching a shortlived token first.
The text was updated successfully, but these errors were encountered: