mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-23 16:22:15 +00:00
Audit rules provide more granular control over which statements are audited, filtering by tables, roles, and categories. Typos in sink or category names should be caught at parse time rather than silently disabling rules at runtime. Define the audit_rule struct with JSON parsing, validation of sink and category names, serialization, and fmt support. Move statement_category, category_set, and category_to_string out of audit.hh/audit.cc so the rule type is self-contained. Refs SCYLLADB-1430