Skip to content

Support AWS STS for s3 #3959

@ianb-mp

Description

@ianb-mp

Is your feature request related to a problem? Please describe:
I've generated short term credentials using AWS STS and stored them in a k8s secret. However when I attempt to import an image from S3 using that secret, I get this error in the CDI importer pod:

E1127 04:28:14.705335       1 importer.go:347] InvalidAccessKeyId: The AWS Access Key Id you provided does not exist in our records.        

Describe the solution you'd like:
In addition to accessKeyId and secretKey, it should be possible to pass a session token (required by AWS STS) to enable authentication.

This code would need to be updated to accept the token (see AWS SDK doco here)

creds := credentials.NewStaticCredentials(accessKey, secKey, "")

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions