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