*** This bug is a duplicate of bug 1870244 ***
https://bugs.launchpad.net/bugs/1870244
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: cloud-utils (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of
*** This bug is a duplicate of bug 1870244 ***
https://bugs.launchpad.net/bugs/1870244
** This bug has been marked a duplicate of bug 1870244
ec2metadata does not speak EC2 IMDSv2
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to
The attachment "sample fix" seems to be a patch. If it isn't, please
remove the "patch" flag from the attachment, remove the "patch" tag, and
if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by
~brian-murray,
https://github.com/fred-vogt/cloud-
utils/blob/bug/1882389-IMDSv2-support/bin/ec2metadata
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1882389
Title:
ec2metadata doesn't support AWS EC2 IMDSv2
To
Tested on an 'm5d.large' EC2 instance in us-west-2.
** Patch added: "sample fix"
https://bugs.launchpad.net/ubuntu/+source/cloud-utils/+bug/1882389/+attachment/539/+files/ec2metadata-IMDSv2.diff
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is
** Description changed:
AWS EC2 Metadata Service v2 uses session tokens:
+
+ $ ec2metadata
+ Traceback (most recent call last):
+ File "/usr/bin/ec2metadata", line 249, in
+ main()
+ File "/usr/bin/ec2metadata", line 245, in main
+ display(metaopts, burl, prefix)
+ File
For reference here is a patched version of `apt-transport-s3`:
https://github.com/fred-vogt/apt-transport-s3/commit/a6f9e35932cec7083b2e18f78a779a32c2d7d907
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
Oops. Didn't file the bug correctly.
I've looked into the locating the sources for the package / python
script.
https://git.launchpad.net/cloud-utils/tree/bin/ec2metadata
Indeed this doesn't have support for IMDSv2 session tokens.
This github gist has support for it: