Giter Site home page Giter Site logo

Comments (5)

gites avatar gites commented on May 28, 2024 1

I was able to configure s3-proxy to use named profiles. The secret souce was setting AWS_SDK_LOAD_CONFIG (https://docs.aws.amazon.com/sdk-for-go/api/aws/session/)
The final config looks like this:

          - name: AWS_SDK_LOAD_CONFIG
            value: "true"
          - name: AWS_PROFILE
            value: some-profile-name

from s3-proxy.

oxyno-zeta avatar oxyno-zeta commented on May 28, 2024

Hello !

Thanks for your issue.
I'm afraid that this isn't possible in the application for the moment. I think without any environment variables declared, the AWS client will fallback to file and use the default profile but this isn't managed by s3-proxy itself.
The config is asking 2 files containing the 2 secrets or environment variables or a combination of the 2 to configure the AWS credentials.

Regards,

Oxyno-zeta

from s3-proxy.

gites avatar gites commented on May 28, 2024

I tried to use default profile but it is also failing.
I set:

        - name: AWS_SHARED_CREDENTIALS_FILE
          value: /home/proxy/.aws/credentials
        - name: AWS_PROFILE
          value: default

but still getting the same error message:

"NoCredentialProviders: no valid providers in chain. Deprecated.\n\tFor verbose messaging see aws.Config.CredentialsChainVerboseErrors"

from s3-proxy.

oxyno-zeta avatar oxyno-zeta commented on May 28, 2024

I was afraid of this. I'm sorry but you will have to change to environment variables or files containing plain secrets.
Or you can contribute and create the support for that.

Regards,

Oxyno-zeta

from s3-proxy.

oxyno-zeta avatar oxyno-zeta commented on May 28, 2024

Awesome ! That's a great thing. Thanks for this share.

from s3-proxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.