「S3」- 配置对象存储公共读

  CREATED BY JENKINSBOT

解决方案

# s3cmd --configure
...

# cat > ceph-bkt-foo_pub-read.json
{
  "Version":"2012-10-17",
  "Statement":[
    {
      "Sid":"AddPerm",
      "Effect":"Allow",
      "Principal": "*",
      "Action":["s3:GetObject"],
      "Resource":["arn:aws:s3:::ceph-bkt-foo/*"]
    }
  ]
}

# s3cmd setpolicy ceph-bkt-foo_pub-read.json s3://ceph-bkt-foo

# s3cmd delpolicy s3://ceph-bkt-foo

参考文献

python – Ceph radosgw – bucket policy – make all objects public-read by default – Stack Overflow
Bucket Policies — Ceph Documentation