oxyno-zeta / s3-proxy

S3 Reverse Proxy with GET, PUT and DELETE methods and authentication (OpenID Connect and Basic Auth)
https://oxyno-zeta.github.io/s3-proxy/
Apache License 2.0
295 stars 33 forks source link

Allow to pass AWS_SESSION_TOKEN #467

Closed jpambrun-vida closed 1 month ago

jpambrun-vida commented 1 month ago

Is your feature request related to a problem? Please describe. I would like to test s3-proxy locally using my SSO user's temporary credentials. I do not have permission to create a new IAM user.

It seems like most of the plumbing is there to accommodate the AWS_SESSION_TOKEN value.

Describe the solution you'd like

  1. Add a 'credentials.token.(env|value|file)' to the config
  2. Wire to AWS credential

Describe alternatives you've considered Given my inability to create a new programmatic AWS IAM user. I can't think of anything else.

Additional context N/A

jpambrun-vida commented 1 month ago

Nevermind.. User error. I didn't realize the I could just omit credentials and it would be happy. In my defense, the documentation is a bit light on this topic 😅 .