On Wed, May 30, 2018 at 5:18 PM, Volker Theile <vtheile@xxxxxxxx> wrote: > 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. That's great, I just had the need for this api yesterday. > > 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. > Looks good. Yehuda > > 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 > > -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html