Project

General

Profile

Actions

Feature #71849

open
VS DP

Feature #62856: cephfs: persist an audit log in CephFS

common: introduce ceph command auditing library backed by libcephsqlite

Feature #71849: common: introduce ceph command auditing library backed by libcephsqlite

Added by Venky Shankar over 1 year ago. Updated 6 months ago.

Status:
In Progress
Priority:
Normal
Category:
Administration/Usability
Target version:
Due date:
% Done:

0%

Source:
Q/A
Backport:
Reviewed:
Affected Versions:
Component(FS):
Labels (FS):
Pull request ID:
Tags (freeform):
cephfs,audit
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:

Description

To be used by the following cephfs components for auditing executed commands:
  • 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 Actions #1

  • Backport deleted (tentacle)

DP Updated by Dhairya Parmar 8 months ago Actions #2

  • Status changed from New to In Progress
  • Pull request ID set to 66946

DP Updated by Dhairya Parmar 8 months ago ยท Edited Actions #3

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 Actions #4

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.

Actions

Also available in: PDF Atom