Hi,

with s3cmd, can I make anonymous requests, without specifying an access key?

I have a Ceph S3 object store with some buckets configured for read-only anonymous, unauthenticated access. I can access these with the aws client:

```
$ aws --endpoint-url http://$AWS_S3_ENDPOINT --no-verify-ssl --region "" --no-sign-request s3 ls s3://test-policy
2020-11-20 14:50:55        298 policy_anon_read_bucket.json
```

I haven't been able to do the same operation with s3cmd. If I provide an empty key on the command line I get an InvalidArgument error:

```
$ s3cmd --host-bucket= --no-ssl -v --host $AWS_S3_ENDPOINT --access_key "" --secret_key "" ls s3://test-policy
ERROR: S3 error: 400 (InvalidArgument)
```

If I don't specify one on the command line, it picks up whatever key is in $HOME/.s3cfg (even if its invalid), and if I don't have a key in the configuration or if I remove the configuration altogether it gives me another error.

Thanks in advance for any suggestions.

Cheers,

Luca


_______________________________________________
S3tools-general mailing list
S3tools-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/s3tools-general

Reply via email to