Deploy SQLite WAL SHA256 audit core, modular sources, and per-ministry Charcoal dispatcher
This commit is contained in:
parent
ea32bde3ac
commit
1e003c2f50
6 changed files with 190 additions and 0 deletions
13
core/audit_sources/source_web.py
Normal file
13
core/audit_sources/source_web.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from core.audit_core import emit_audit
|
||||
|
||||
def log_web_ministry_action(ministry: str, panel_label: str, actor_name: str, actor_discord_id: str, action: str, target: str = "", details: dict = None):
|
||||
payload = {"sphere": panel_label, **(details or {})}
|
||||
return emit_audit(
|
||||
ministry=ministry,
|
||||
source="web_panel",
|
||||
actor_name=actor_name,
|
||||
actor_discord_id=actor_discord_id,
|
||||
action=action,
|
||||
target=target,
|
||||
details=payload
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue