s5cmd icon indicating copy to clipboard operation
s5cmd copied to clipboard

Feature Request: Access Key/ Secret should not be mandatory for connection.

Open gargnipungarg opened this issue 2 years ago • 1 comments

Although we can configure external endpoint via env variable (S3_ENDPOINT_URL), there should be a way to override authentication based on session token alone(principal based auth). Currently AWS_SESSION_TOKEN, still needs ACCESS and SECRET env vars. If there is a provision to override Authorization header by populating an env var CUSTOM_AUTH_TOKEN, all client requests can go to endpoint with that header. S5 is a great tool that can be expanded to cater to more auth mechanisms.

gargnipungarg avatar Jun 20 '23 17:06 gargnipungarg

Similar, not sure how closely related: I tried to switch from awscli to s5cmd in a Kubernetes context where auth is configured by setting env vars AWS_ROLE_ARN and AWS_WEB_IDENTITY_TOKEN_FILE. I wasn't able to debug the behaviour, but s5cmd certainly didn't "automagically" work with that the way awscli does.

reitzig avatar Aug 20 '25 08:08 reitzig