-
Notifications
You must be signed in to change notification settings - Fork 13
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
Support AWS IMDSv2 #28
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arossert changes look fine. Since IMDSv2 is supposed to be more secure than v1, it's good to implement it now.
Have you tested it in both Linux and Windows EC2 instances?
I couldn't test it myself as I am having some issues with my AWS account, haven't used it in long time.
@arossert Can you call the two APIs concurrently using |
@kshivakumar yes I tested it on both Windows and Linux, what I don't know to tell is if V2 can be disabled and If this is the case we can try to do what you suggested and do both, one to try with V1 (without token) and the other with. Let me know if you think it will work better |
Great! |
@kshivakumar I ended up keeping the old I removed the try...catch block and just ignored the exceptions with the Let me know if this looks good to you. |
@arossert Please fix the "DCO" check. |
Signed-off-by: Amir Rossert <[email protected]>
Signed-off-by: Amir Rossert <[email protected]>
Signed-off-by: Amir Rossert <[email protected]>
Remove response.raise_for_status() Change TTL to 60 seconds Signed-off-by: Amir Rossert <[email protected]>
Signed-off-by: Amir Rossert <[email protected]>
Signed-off-by: Amir Rossert <[email protected]>
60c7c92
to
fc11d7b
Compare
Fixed |
Added support for IMDSv2
#27