Skip to contentSkip to conversation

rgw: how to prevent rgw user from creating a new bucket?

DISCUSSION Yang Joseph 3 participants 3 messages Dec 2, 2016 – Dec 5, 2016 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hello,

I would like only to allow the user to read the object in a already existed bucket, and not allow users to create new bucket. It supposed to execute the following command:

$ radosgw-admin metadata put user:test3 < ...
  ...
        "caps": [
            {
                "type": "buckets",
                "perm": "read"
            }

But why user test3 can still create new bucket after I have set its caps to "buckets=read"?

thx,

Yang Honggang

A message that is not in the archive (sent off-list or not yet received): 584158A2.9020303-/BaA95PH9wJWk0Htik3J/[email protected]

#2 lore raw
Quoted 14 lines · Yang Joseph

Hello,

I would like only to allow the user to read the object in a already existed bucket, and not allow users
to create new bucket. It supposed to execute the following command:

$ radosgw-admin metadata put user:test3 < ...
  ...
        "caps": [
            {
                "type": "buckets",
                "perm": "read"
            }
Quoted 3 lines

But why user test3 can still create new bucket after I have set its caps to "buckets=read"?

Because this cap is unrelated. iirc starting at jewel you can do:

$ radosgw-admin user modify --uid=test3 --max-buckets=-1

Yehuda

#3 lore raw

Thank you very much for your response.

I‘m confused about what this cap related to?

Quoted 29 lines · Yehuda Sadeh-Weinraub
Quoted 14 lines · Yang Joseph

Hello,

I would like only to allow the user to read the object in a already existed bucket, and not allow users
to create new bucket. It supposed to execute the following command:

$ radosgw-admin metadata put user:test3 < ...
   ...
         "caps": [
             {
                 "type": "buckets",
                 "perm": "read"
             }
Quoted 3 lines

But why user test3 can still create new bucket after I have set its caps to "buckets=read"?

Because this cap is unrelated. iirc starting at jewel you can do:

$ radosgw-admin user modify --uid=test3 --max-buckets=-1

Yehuda
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html