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

[Bug] - s3cmd - attempt to set canned ACL --acl-public returns 400 #963

Open
lrm25 opened this issue Nov 21, 2024 · 0 comments
Open

[Bug] - s3cmd - attempt to set canned ACL --acl-public returns 400 #963

lrm25 opened this issue Nov 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@lrm25
Copy link
Contributor

lrm25 commented Nov 21, 2024

Describe the bug
The --acl-public canned ACL should result in non-admin users being able to read files in an admin-owned bucket. However, attempting to set it results in a returned 400.
ERROR: S3 error: 400 (InvalidRequest): Invalid Request.

To Reproduce

  1. Start versitygw, e.g.: ./versitygw --access=******* --secret=******** --region=us-east-1 --iam-dir=/Users/lukemccrone/devel/versitygw/iam --cert /Users/lukemccrone/devel/versitygw/cert.pem --key /Users/lukemccrone/devel/versitygw/versitygw.pem posix --versioning-dir /tmp/versioning /tmp/gw
  2. Create bucket, e.g.: s3cmd -c ./tests/s3cfg.local.default --access_key=******* --secret_key=******** --no-check-certificate mb s3://versity-gwtest-bucket-one-1
  3. Attempt to set ACL, e.g.: s3cmd -c ./tests/s3cfg.local.default --access_key=******** --secret_key=******** --no-check-certificate setacl s3://versity-gwtest-bucket-one-1 --acl-public

Expected behavior
Command succeeds, and info call (e.g. s3cmd -c ./tests/s3cfg.local.luke --access_key=******** --secret_key=******** --no-check-certificate info s3://versity-gwtest-bucket-luke-four-1) afterwards shows lines similar to:
ACL: {root key}: FULL_CONTROL
ACL: anon: READ

Server Version
Version : v1.0.8
Build : bacd85c
BuildTime: 2024-11-21_05:29:52PM
Darwin Lukes-MacBook-Pro.local 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:25 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6030 arm64

@lrm25 lrm25 added the bug Something isn't working label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant