[Bug 1882389] Re: ec2metadata doesn't support AWS EC2 IMDSv2

2021-09-03 Thread Launchpad Bug Tracker
*** 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

[Bug 1882389] Re: ec2metadata doesn't support AWS EC2 IMDSv2

2020-07-07 Thread Paride Legovini
*** 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

[Bug 1882389] Re: ec2metadata doesn't support AWS EC2 IMDSv2

2020-07-02 Thread Ubuntu Foundations Team Bug Bot
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,

[Bug 1882389] Re: ec2metadata doesn't support AWS EC2 IMDSv2

2020-07-01 Thread Fred Vogt
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

[Bug 1882389] Re: ec2metadata doesn't support AWS EC2 IMDSv2

2020-07-01 Thread Fred Vogt
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

[Bug 1882389] Re: ec2metadata doesn't support AWS EC2 IMDSv2

2020-07-01 Thread Fred Vogt
** 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

[Bug 1882389] Re: ec2metadata doesn't support AWS EC2 IMDSv2

2020-07-01 Thread Fred Vogt
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.

[Bug 1882389] Re: ec2metadata doesn't support AWS EC2 IMDSv2

2020-07-01 Thread Fred Vogt
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: