Skip to main content

ADR-0278: Preview access references can use private SMTP notifications

Status: Proposed — 2026-11-29

Context​

ADR-0277 publishes an optional Key Vault retrieval reference after the host writes its generated Bootstrap password. Public GitHub comments expose that reference and the secret name. They grant no Azure permission, but maintainers want to reduce that metadata disclosure and retrieve the reference from their mailbox. #1448 owns this extension.

Decision​

Add an opt-in SMTP notification to the existing external Azure preview execution boundary. Use Python's standard library, a provider-configured SMTP endpoint, verified implicit TLS or mandatory STARTTLS, bounded socket I/O and authenticated submission. No new service, Runtime dependency, cloud account or mail-provider resource is provisioned. Default deployment remains cloud-optional.

Protected GitHub environment settings select the sender and fixed recipients; SMTP credentials and recipients are environment secrets. PR text, labels and application profiles cannot select recipients or SMTP credentials. Temporarily remove mail settings from the process environment during provider work so child commands and guest material cannot inherit them. Restore them for subsequent actions in the same reconciliation process.

Send only after the existing host-publication and protected-access checks pass. Mail contains the preview URL, expiry and validated Key Vault reference/name; it never fetches or includes a password or Azure token. In email mode, remove the reference from all newly returned lifecycle results before workflow outputs, artifacts or comments are produced. The same boundary covers manual/automatic deploys and protected partial administration. Status, destroy and validation do not send mail; a status must not imply a previous notification was sent.

SMTP failure is a separate notification result, not a reason to invalidate or destroy the deployed application. Always withhold the reference in email mode, including configuration, transport and authentication failures. Publish only fixed notification states, never provider replies or recipient addresses. Do not retry uncertain SMTP handoffs automatically; explicit deploy can request another notification. SMTP acceptance is distinct from inbox delivery.

Consequences​

Operators need an SMTP mailbox and protected configuration in addition to Key Vault. No product account, tenant or workspace notification system is added. Azure RBAC remains the authorization boundary; the mailbox is a private delivery channel for metadata, not a replacement for that authorization.

Historical public metadata is not erased. Other infrastructure identifiers remain in technical results and documentation. Disabling the option restores the default portal-reference feedback; this option is not a confidentiality guarantee for all deployment metadata. Live mail delivery and human retrieval require explicit maintainer validation in addition to offline TLS/redaction/failure tests.