Document sending audit entries to Dagu Console

Closed
YO
3d ago
+23-0

Summary

Dagu servers can now send their audit entries to Dagu Console (dagucloud/dagu#4090, #4099, #4117), controlled by two new settings, cloud.audit and cloud.audit_drain_timeout, that the docs do not mention yet. This documents both. RFC 021 task D5 (tracker dagucloud/cloud#51).

Hold the merge until a Dagu release carries these settings. The release waits for Dagu Console's audit endpoint (gate GR on the tracker). Add the version ("Needs v2.N or later") to both env entries when merging, as the reference does for other recent settings.

Changes

  • server-admin/reference.md:
    • audit and audit_drain_timeout in the cloud: YAML example.
    • DAGU_CLOUD_AUDIT and DAGU_CLOUD_AUDIT_DRAIN_TIMEOUT in the Dagu Console environment variables, with levels, conditions, defaults, and where Dagu Console stores the entries.
  • server-admin/server.md, Audit Logging:
    • A note that entries are masked before they are written.
    • A "Send to Dagu Console" subsection covering:
      • the levels, and what changes skips;
      • that only masked entries are sent, masked again before sending;
      • that one process per installation sends;
      • storage in the United States for the workspace's retention;
      • gaps;
      • the drain on stop;
      • where the license page shows the setting.

Testing

pnpm build: the site builds, and the social metadata of all 304 pages validates.

Out of scope

  • A full page on audit logs in Dagu Console, and the pricing page: P1 on the tracker.

Summary by cubic

Documents cloud.audit and cloud.audit_drain_timeout, the settings that let a Dagu server send its audit entries to Dagu Console.

  • server-admin/reference.md adds both settings to the cloud: YAML example and the two new environment variables.
  • server-admin/server.md explains the levels, masking behavior, storage location, gaps, and drain on stop.

Hold the merge until a Dagu release carries these settings; add the required version to both env entries when merging.

Summary by CodeRabbit

  • Documentation
    • Added configuration guidance for cloud audit reporting levels, Console requirements, retention, and shutdown drain behavior.
    • Expanded audit logging documentation with secret masking details, MCP call filtering, storage and retention information, and shutdown reporting.