[PR #1760] [MERGED] fix IAM role retrieval from IMDSv2 #2160

Closed
opened 2026-03-04 02:04:04 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/1760
Author: @nmeyerhans
Created: 9/3/2021
Status: Merged
Merged: 9/3/2021
Merged by: @gaul

Base: masterHead: imdsv2-role-auto


📝 Commits (1)

  • a3dd53a fix IAM role retrieval from IMDSv2

📊 Changes

1 file changed (+31 additions, -1 deletions)

View changed files

📝 src/curl.cpp (+31 -1)

📄 Description

AWS IMDSv2 support was added in #1462, but the implementation did not
cover the addional IMDS access that occurs with the iam_role=auto
configuration. This change implements IMDSv2 support for the IMDS
call to determine the instance's role name.

See also
https://stackoverflow.com/questions/69031023/how-to-make-s3fs-use-imds-v2-when-mounting-s3-buckets-from-ec2-instance


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/s3fs-fuse/s3fs-fuse/pull/1760 **Author:** [@nmeyerhans](https://github.com/nmeyerhans) **Created:** 9/3/2021 **Status:** ✅ Merged **Merged:** 9/3/2021 **Merged by:** [@gaul](https://github.com/gaul) **Base:** `master` ← **Head:** `imdsv2-role-auto` --- ### 📝 Commits (1) - [`a3dd53a`](https://github.com/s3fs-fuse/s3fs-fuse/commit/a3dd53a487a22e5f16d6b851b881ab89029a9332) fix IAM role retrieval from IMDSv2 ### 📊 Changes **1 file changed** (+31 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/curl.cpp` (+31 -1) </details> ### 📄 Description AWS IMDSv2 support was added in #1462, but the implementation did not cover the addional IMDS access that occurs with the iam_role=auto configuration. This change implements IMDSv2 support for the IMDS call to determine the instance's role name. See also https://stackoverflow.com/questions/69031023/how-to-make-s3fs-use-imds-v2-when-mounting-s3-buckets-from-ec2-instance --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 02:04:04 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#2160
No description provided.