Get the user metadata via RGW Admin OPS API of the signer of the request

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

 



I've enhanced the RGW Admin OPS API to get the metadata of the user
without using the URL /admin/metadata/user?key=<username>, instead the
URL /admin/metadata/user?myself will return the metadata of the user
that is used to sign the request.

You're asking what this is good for?

In the Dashboard it is necessary to check if a RGW user that is going to
be deleted is not the user account that is used to access the RGW Admin
OPS API (see feature https://tracker.ceph.com/issues/24335). The problem
is that the Dashboard only knows about the access/secret key of the
administration account. With the above feature it is easy to retrieve
the user name of the administration account by requesting the metadata
via /admin/metadata/user?myself.

You can find the already working implementation at
https://github.com/votdev/ceph/commit/581374fb22734ba3fd904407210add6351df59cd.

Is this a good approach or can this be done better? Feel free to comment
this email.


Volker

-- 
Volker Theile
Software Engineer | openATTIC
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
Phone: +49 173 5876879
E-Mail: vtheile@xxxxxxxx


Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux