Re: RGW Admin REST metadata caps

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



the /admin/metadata apis require caps of type "metadata"

source: https://github.com/ceph/ceph/blob/master/src/rgw/rgw_rest_metadata.h#L37

On 7/23/19 12:53 PM, Benjeman Meekhof wrote:
Ceph Nautilus, 14.2.2, RGW civetweb.
Trying to read from the RGW admin api /metadata/user with request URL like:
GET /admin/metadata/user?key=someuser&format=json

But am getting a 403 denied error from RGW.  Shouldn't the caps below
be sufficient, or am I missing something?

  "caps": [
         {
             "type": "metadata",
             "perm": "read"
         },
         {
             "type": "user",
             "perm": "read"
         },
         {
             "type": "users",
             "perm": "read"
         }
     ],

The application making the call is a python module:
https://github.com/UMIACS/rgwadmin

I have another application using the API and it is able to make
requests to fetch a user but does so by calling 'GET
/admin/user?format=xml&uid=someuser' and that user has just the
'users=read' cap.

thanks,
Ben
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux