Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An experimental feature to support different credentials for per bucket #372

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

whybeyoung
Copy link

An experimental feature to support different credentials for per bucket , we can choose using sqlite or yaml file .Please not merge

…To achieve that we can use different accesskey and secret key for per bucket.
…To achieve that we can use different accesskey and secret key for per bucket.
@whybeyoung
Copy link
Author

prepare an bucket_access.yml file with these content:

hellworld:
  access_key: "helloworld2"
  secret_key: "ccccccdcssdddddddddddd"
hellworld2:
  access_key: "hellowo2rld2"
  secret_key: "ccccccdc2ssdddddddddddd"
test3:
  access_key: "helloworld3"
  secret_key: "12345122345"
test4:
  access_key: "hello11world3"
  secret_key: "1234511122345"

then using --properties src/main/resources/s3proxy-fs.conf --enable_bucket_ak_sk --config_path bucket_access.yml
to start s3proxy .

All the change in the yaml file will be watched and take affect.

@Jayd603
Copy link

Jayd603 commented Dec 6, 2023

So... I like this idea. whybeyoung here wants to create basic authentication tied to different buckets on the SAME backend. I was looking for a solution for this and have not yet found anything. I thought of launching multiple s3proxy containers but the issue is the backend credentials i'm using grant access to ALL buckets. Is there currently any way to restrict s3proxy to one bucket on a backend? Like with filesystem there is a basedir. A basedir on the s3 backend (which is actually a bucket) would achieve that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants