Skip to content

Storage, retention, and privacy

Daemonitor is designed for local-only monitoring. All process samples, correlated builds, observation sessions, and settings are stored on your local machine.

Storage locations

Both daemonitor-cored and the Desktop application resolve the same <appSupportDir>:

Operating system <appSupportDir>
macOS ~/Library/Application Support/Daemonitor
Linux $XDG_DATA_HOME/Daemonitor (fallback ~/.local/share/Daemonitor)
Windows %LOCALAPPDATA%\Daemonitor (fallback ~/AppData/Local/Daemonitor)

Files stored in <appSupportDir>:

  • watcher.db: Shared SQLite database (WAL mode, busy_timeout = 5000ms, schema version 7) containing process_samples, builds, process_instances, process_events, observation_sessions, and session_process_links. Created with directory mode 0700 and file mode 0600 by daemonitor-cored.
  • daemonitor-core.sock (macOS/Linux): Local IPC Unix domain socket (0600, removed on shutdown). On Windows, IPC uses a per-user named pipe \\.\pipe\daemonitor-core-<UserSID> with a current-user-only DACL.
  • settings.properties: Desktop appearance, retention days, and MCP configuration (hardened to 0600 permissions).

Retention and cleanup

  • Go daemonitor-cored: Defaults to -retention 24h and runs a cleanup purge every 30 seconds, removing expired rows from process_samples, process_events, process_instances, session_process_links, and observation_sessions. (Note: the builds table is not pruned by daemonitor-cored's 24-hour purge.)
  • Desktop / Kotlin core: Defaults to 15 days (configurable from 1 to 90 days in Settings → History retention), purging expired records on startup and immediately when changed.

Command-line and log redaction

Both daemonitor-cored (cored/internal/poll/redactor.go) and Kotlin core/ (Redactor.kt) apply best-effort redaction (***) to process command lines and Gradle daemon log lines before storing or returning them:

  • Sensitive key detection: Case-insensitive substring match for password, secret, token, credential, apikey, authenticationkey, or whole-word key (avoiding false positives like keystore.path).
  • Redacted forms:
  • -Pkey=value, -Dkey=value, --key=value, and nested Bazel/JVM flags (for example, --jvmopt=-Dtoken=...) → <prefix><key>=***
  • Bare KEY=value assignments (for example, xcodebuild API_TOKEN=secret) → KEY=***
  • Separate-argument flags (--token secret, -Ppassword val, -Dapi_key val) → next token masked as ***
  • Credentialed URLs (scheme://user:pass@host) → scheme://***:***@host
  • Known limitation: Bare positional secrets without a recognizable key name cannot be automatically redacted.

Export path sanitization

By default, daemonitor-cli strips full local paths (working_directory, project_path, daemon log path) down to basenames in ps, history, builds, and logs outputs. Pass --include-project-path only when full local paths are required. Files written by export --output and observe --output are created with mode 0600.

Network access and external integrations

  • No telemetry or analytics: Daemonitor sends zero usage analytics, crash reports, or process data to external servers.
  • Optional GitHub Releases update check: The Desktop application checks github.com/cdsap/daemonitor releases on startup (disabled in App Store builds).
  • Optional Develocity integration: Only when you explicitly apply the experimental Gradle plugin and Develocity is configured in your build does the plugin project GBOS RSS summary custom values into your Develocity Build Scan.
  • Optional MCP server: Disabled by default; when enabled in Desktop Settings, binds strictly to 127.0.0.1 with bearer-token authentication and localhost Origin checks.