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

Does not work with empty secret_key command line parameter #1385

Open
StefanBrand opened this issue Jun 17, 2024 · 0 comments
Open

Does not work with empty secret_key command line parameter #1385

StefanBrand opened this issue Jun 17, 2024 · 0 comments

Comments

@StefanBrand
Copy link

StefanBrand commented Jun 17, 2024

We use radosgw with LDAP: https://docs.ceph.com/en/octopus/radosgw/ldap-auth/

A secret_key is not required and can be left empty. However, s3cmd does not support that. --secret_key must be set to an arbitrary non-empty string.

Note that I don't want to use a config file for easier portability of the command.

Not working

s3cmd ls --access_key=<base64-encoded token> --host=s3.example.com
s3cmd ls --access_key=<base64-encoded token> --secret_key= --host=s3.example.com
s3cmd ls --access_key=<base64-encoded token> --secret_key="" --host=s3.example.com
ERROR: /home/brands/.s3cfg: None
ERROR: Configuration file not available.
ERROR: Consider using --configure parameter to create one.

Working

s3cmd ls --access_key=<base64-encoded token> --secret_key=. --host=s3.example.com
s3cmd ls --access_key=<base64-encoded token> --secret_key=f --host=s3.example.com
s3cmd ls --access_key=<base64-encoded token> --secret_key=foobar --host=s3.example.com
2024-06-17 09:17  s3://stefans-bucket
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

No branches or pull requests

1 participant