Skip to content

Unexpected response (401 Unauthorized) when connecting to S3 with credentials from EC2 Instance Metadata with IMDSv2 required #14862

@trecio

Description

@trecio

Describe the bug
I'm trying to connect to S3 from an EC2 instance using the "S3 (Credentials from EC2 Instance Metadata)" profile described here https://docs.cyberduck.io/protocols/s3/#connecting-with-temporary-access-credentials-token-from-ec2.
It fails with an error Unexpected response (401 Unauthorized). Please contact your web hosting service provider for assistance.

To Reproduce
Steps to reproduce the behavior:

  1. Open Cyberduck and from the main menu select Edit > Preferences ...
  2. In preferences window switch to Profiles tab and make sure that "S3 (Credentials from AWS Security Token Service)" is enabled. Close the Preferences window.
  3. Change the name of the role as it is described in https://docs.cyberduck.io/protocols/s3/#connecting-with-temporary-access-credentials-token-from-ec2
  4. Click on Open Connection button, select "S3 (Credentials from EC2 Instance Metadata)"

Expected behavior
Available S3 buckets should appear.

Screenshots
obraz

Desktop (please complete the following information):

  • OS: Microsoft Windows Server 2019
  • Version 8.6.0 (39818)

Log Files
cyberduck.log

Additional context
EC2 has IMDSv2 required. Does Cyberduck support it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    s3AWS S3 Protocol Implementation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions