Publish curated Unraid-AppOps-Gateway source from 034c9f844d2455850ba37b31379b7edaa786583e

This commit is contained in:
Public Source Publisher committed 2026-10-01 19:39:31 +00:00
1 parent c61fbfd87f
commit 1a54836efc
101 files changed
+4973 -1298

No files matched your search

+6
View File
@@ -31,6 +31,12 @@ def log_event(
post_checks: dict[str, Any] | None = None,
redacted_metadata: dict[str, Any] | None = None,
) -> AuditEvent:
from .user_access import actor_identity
user_identity = actor_identity.get()
if user_identity and identity in {"manual", "voice", "automation", "system"}:
# Keep the request channel separately from the authenticated actor.
redacted_metadata = {**(redacted_metadata or {}), "requestSource": identity}
identity = user_identity or identity
event = AuditEvent(
id=f'audit-{uuid.uuid4().hex[:12]}',
timestamp=utc_now(),