Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1793652

Summary: Support for AWS IMDS v2 (available in cloud-init 19.4)
Product: Red Hat Enterprise Linux 7 Reporter: Marc Methot <mmethot>
Component: cloud-initAssignee: Eduardo Otubo <eterrell>
Status: CLOSED ERRATA QA Contact: Frank Liang <xiliang>
Severity: urgent Docs Contact: Jiri Herrmann <jherrman>
Priority: urgent    
Version: 7.8CC: agilley, davdunc, eterrell, gveitmic, huzhao, jgreguske, jherrman, linl, mkalinin, ribarry, wefleury, xiliang, ymao
Target Milestone: rcKeywords: TestOnly, ZStream
Target Release: 7.9   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
.cloud-init now supports IMDSv2 for AWS With this update, the `cloud-init` utility supports Instance Metadata Service version 2 (IMDSv2) for Amazon Web Services (AWS). As a result, RHEL virtual machines on AWS created by `cloud-init` can benefit from various identity management and security enhancement provided by IMDSv2.
Story Points: ---
Clone Of:
: 1827098 1827207 (view as bug list) Environment:
Last Closed: 2020-09-29 19:48:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1827098, 1827207    

Description Marc Methot 2020-01-21 18:34:35 UTC
The version of cloud-init included with RHEL is older than 19.4 and as such it does not allow the use of session authentication.

Limited impact as AWS still supports IMDS v1, however customer requests' it.


Version-Release number of selected component (if applicable): 18.5

More info:
- https://github.com/canonical/cloud-init/commit/4bc399e0cd0b7e9177f948aecd49f6b8323ff30b
- https://github.com/canonical/cloud-init/blob/master/ChangeLog
- https://aws.amazon.com/blogs/security/defense-in-depth-open-firewalls-reverse-proxies-ssrf-vulnerabilities-ec2-instance-metadata-service/

Comment 12 Eduardo Otubo 2020-04-14 12:41:43 UTC
*** Bug 1810704 has been marked as a duplicate of this bug. ***

Comment 20 errata-xmlrpc 2020-09-29 19:48:41 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: cloud-init security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:3898