Repository navigation
Description
Problem / motivation
Reporting runtime, certificate or configuration-application failures currently requires collecting information from several screens and logs. Copying raw configuration or logs can expose credentials and private deployment details.
Proposed solution
Offer an explicit download of a structured, sanitized support report for authorized administrators. The report should make useful runtime evidence easy to attach to a bug report.
Scope
- Include application/controller/Caddy version metadata, capture time, component availability, desired/applied revision identifiers, relevant configuration counts and activation status.
- Include aggregate certificate/job states and bounded, sanitized error codes/status information available through existing status APIs.
- Define an explicit allowlist and version the report format. Return clear unavailable/partial markers when a component cannot be queried.
- Exclude environment variables, credentials, tokens, private keys, raw Caddy JSON, raw request/audit logs, database dumps and arbitrary filesystem contents.
- Describe desired/active configuration through revision/status/count metadata rather than exporting private configuration values such as domains, upstream addresses or headers.
- Reuse existing administrative read permissions and retain server-side authorization.
- The user initiates a local download; no automatic upload or telemetry.
Acceptance criteria
- An authorized administrator can download a report with useful, documented fields.
- Healthy, pending-apply and unavailable-controller states produce understandable evidence.
- Permission checks remain effective when invoking the export endpoint directly.
- The report has a bounded size and states when evidence is partial.
- Allowlist tests prove exclusion of secrets, private configuration and untrusted raw error text, including nested values.
- The download control and feedback are keyboard/mobile accessible and localized.
- Tests cover authorization, allowed fields, sanitization and unavailable/partial data.
Alternatives considered
Screenshots and manually copied status fields remain possible, but are cumbersome and inconsistent. Full configuration/log bundles carry unnecessary disclosure risk.
Affected area
Caddy Runtime / Web Admin UI.
Additional context
Requested for the Beta 1 milestone. #171 demonstrates the value of precise failure evidence; this report improves supportability and does not establish a fix for the reload reset. Include the final export contract in security review #72 and UX/accessibility review #74 before release preparation #75 completes.
Activity