Comments (5)
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.
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.
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.
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.
Awesome ! That's a great thing. Thanks for this share.
from s3-proxy.
Related Issues (20)
- Using s3cmd HOT 4
- folder-list page leads to Internal server error HOT 4
- Allow application/octet-stream HOT 1
- Sub bucket HOT 1
- Let the docker image build itself HOT 3
- Add support for filesystem as a target HOT 1
- Proxy pre-compressed data as-is HOT 13
- Provide a way to disable folder listing HOT 9
- Support PASETO authentication HOT 4
- OIDC: no resource declared message when it is HOT 8
- Signed URL for PUT requests HOT 10
- Assume role failing via WebIdentity HOT 4
- Uploading large objects using multipart HOT 2
- [oidc] JWT auth failures respond with HTTP 500 instead of 401 HOT 2
- How to integrate with an SPA using a bearer token HOT 2
- Update project to resolve dependabot and renovate suggestions HOT 2
- Can't set a context-path for the server config HOT 1
- Handling method for storing audit log to somewhere HOT 4
- does this support Azure active directory for authentication and authorization ? HOT 9
- Potential memory leak HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from s3-proxy.