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