Feature #71849
openFeature #62856: cephfs: persist an audit log in CephFS
common: introduce ceph command auditing library backed by libcephsqlite
0%
Description
- cephfs specific ceph-mgr comamnds
- offline tools
- cephfs specific ceph-mon commands
ceph-mon commands are not audited by the monitor daemon directly, but relayed to ceph-mgr for recording to libcephsqlite.
VS Updated by Venky Shankar over 1 year ago
- Backport deleted (
tentacle)
DP Updated by Dhairya Parmar 8 months ago
- Status changed from New to In Progress
- Pull request ID set to 66946
DP Updated by Dhairya Parmar 8 months ago ยท Edited
Status: Done writing most APIs, right now, im working on - how and where the .audit pool should be created and how to delete the underlying <daemon|some_offline_tool>.db file (if needed) which is stored in the (.audit) RADOS pool and once that is done i'll be adding unit test cases.
DP Updated by Dhairya Parmar 8 months ago
audit pool needs to exist before creating the repective db files and start auditing. I'm following a belt and suspenders approach where i'm adding the check in Mgr::init() right after the sqlite3 extension is loaded and also equip standalone tools to do a get_or_create for audit pool. The reason is that we don't want to miss out on ANY standalone tool log (which also is the most important ask in this feature), while discussing this with @Mahesh Mohan today, he brought up two critical points:
1) Do we fail Mgr:init() if the pool creation fails? if not, how do we convey it to the cluster admin? Do we generate cluster warnings? Do we re-try, say inside a tick?
2) Is this get_or_create approach to ensure audit pool in standalone tools, atomic? We don't want multiple tools racing to create the pool.
I'm yet to finalise a sound design for this. If anyone has any suggestions/comments/remarks, they'd be highly appreciated.