Storefront has been decoupled into micro-frontends with a dedicated commerce app and shared shell.

Read the architecture guide →

ADR-004: Keep Scheduler credentials and sensitive payloads out of job state

Scheduler credentials and sensitive downstream data are supplied through runtime configuration and excluded from Quartz metadata and routine telemetry.

October 27, 2026AcceptedSecurity

1. Context & Problem

Automated background jobs managed by the Scheduler SystemSystemv1.0.0Scheduler SystemInternal Quartz-based platform system that persists schedules, coordinates recurring jobs, and dispatches background wor...Ownerplatform-engineering-teamDiagramOpen docs must call other internal services using service-to-service credentials and may initiate workflows involving customer notifications or other sensitive operational data. Because saved job definitions, execution history, and routine operational logs are long-lived and broadly accessible to operators for day-to-day support, placing passwords, access tokens, or full message contents inside them would greatly widen the impact of any accidental exposure. At the same time, support teams still need clear, reliable tracking identifiers to connect a scheduled run to its downstream work when investigating delays or failures.

2. Business Value

  • Lower data and credential exposure: Keeps service passwords, access tokens, personal details, and notification text out of long-lived scheduling records and everyday operational logs.
  • Zero-touch credential rotation: Security and platform teams can rotate service credentials through deployment settings without editing saved schedules or documentation.
  • Preserved operational traceability: Support staff can still trace every scheduled run from start to finish using safe correlation identifiers and sanitized error categories.
  • Cleaner compliance boundaries: Confines sensitive customer and business records to the downstream services that already enforce dedicated access and retention controls.

3. How It Works

  1. Runtime-only credentials: When a scheduled job calls another service, it obtains its authentication credentials from secure runtime configuration at execution time rather than reading them from saved job definitions.
  2. Minimal job metadata: Stored schedules keep only the bare minimum non-sensitive identifiers needed to start the work—for instance, a notification maintenance job passes simple request metadata and lets the downstream service choose its own pending records.
  3. Sanitized operational telemetry: Routine logs and monitoring records capture run identifiers, job and schedule names, target service names, completion status, duration, and sanitized failure categories, while excluding authorization headers, secrets, message bodies, and personal data.
  4. Restricted deep investigation: When an incident requires inspecting recipient details or message content, authorized support staff review records inside the responsible downstream service under that service’s own security controls.

4. Trade-offs & Lessons Learned

  • Two-step troubleshooting: Excluding payloads from scheduler logs means operators investigating item-level or recipient-level issues must follow correlation identifiers into the downstream system rather than finding everything in one log entry.
  • Ongoing governance remains essential: Storing secrets in runtime configuration reduces blast radius, but teams must still enforce strict access controls on scheduler administration tools, run secret scanning, and monitor log retention policies.
  • Alternatives considered and rejected:
    • Storing tokens or passwords in job definitions: Rejected because scheduling state is durable and broadly viewable, and embedded secrets complicate credential rotation.
    • Logging full requests and downstream responses: Rejected because full payloads can expose recipient details, notification content, or personal data in routine telemetry.
    • Removing all operational identifiers from telemetry: Rejected because operators could no longer link a scheduled execution to its downstream processing.

5. Technical Reference

  • Scope: Applies to Scheduler SystemSystemv1.0.0Scheduler SystemInternal Quartz-based platform system that persists schedules, coordinates recurring jobs, and dispatches background wor...Ownerplatform-engineering-teamDiagramOpen docs, scheduler-service, and scheduler-database.
  • Credential sourcing: Outbound service-to-service credentials are supplied exclusively via runtime secret configuration and must never be embedded in Quartz job definitions (JobDataMap), committed to the catalog, or written to routine logs.
  • Job metadata minimization: Quartz job data and execution history store only minimal non-sensitive identifiers (firing, job, trigger, and target identifiers) and operational metadata required to execute and diagnose runs. For example, Notification maintenance requests carry only request metadata while Notification selects its own outbox records.
  • Telemetry & retention rules: Logs and telemetry retain correlation identifiers, target identifiers, status, duration, and sanitized failure categories instead of authorization headers, credentials, notification contents, or personal data. Any controlled diagnostic capture of sensitive values requires restricted access and compliance with the platform retention policy.
  • Operational controls: Access to Quartz administration surfaces, logs, traces, and diagnostic retention remains restricted, complemented by ongoing secret scanning and retention monitoring.