Hi Joao & Martin, Thanks for your sharing, that's a big help for me! Best Regards, Dave Chen > -----Original Message----- > From: Joao Eduardo Luis [mailto:joao@xxxxxxx] > Sent: Friday, January 20, 2017 9:53 PM > To: Chen, Wei D; ceph-devel@xxxxxxxxxxxxxxx; Ceph-User > Subject: Re: Question about user's key > > On 01/20/2017 03:52 AM, Chen, Wei D wrote: > > Hi, > > > > I have read through some documents about authentication and user > > management about ceph, everything works fine with me, I can create a > > user and play with the keys and caps of that user. But I cannot find where those keys or capabilities stored, obviously, I can > export those info to a file but where are they if I don't export them out? > > > > Looks like these information (keys and caps) of the user is stored in > > memory? but I still can list them out after rebooting my machine. Or these info are persisted in some type of DB I didn't > aware? > > > > Can anyone help me out? > > Authentication keys and caps are kept by the monitor in its store, either a leveldb or a rocksdb, in its data directory. > > The monitor's data directory are, by default, in /var/lib/ceph/mon/ceph-X, with X being the monitor's id. The store is within > that directory, named `store.db`. > > The store in not in human-readable format, but you can use ceph-kvstore-tool to walk the keys if you want. Please note that, > should you want to do this, the monitor must be shutdown first. > > -Joao
Attachment:
smime.p7s
Description: S/MIME cryptographic signature