Skip to main content

ADR-0276: Preview administration access is independent of execution readiness

Status: Proposed — 2026-11-28

Context​

#1443 requires the existing startup Console to remain reachable when Bootstrap is pending or has failed. The application already distinguishes administration availability from execution readiness. The preview lifecycle in ADR-0259 instead waits for complete readiness before starting its connector and publishing its URL, preventing diagnosis through that Console.

Decision​

Reuse the application's empty /startup/ready probe: 204 means sign-in is available, including when administrationReady=true and /health/ready is 503. No application authentication credential, Bootstrap detail or deployment logic is added to the product. Existing administrator-only admission and execution fencing remain authoritative. Full readiness also permits administration for older images.

Keep the existing provider lease, ownership, private OCI digests, loopback binding, closed Azure ingress, shared read-only Access policy and isolated Caddy/connector. Stage only the owned protected DNS name after the policy/configuration and origin isolation checks. Start the application stack without waiting, then start the connector after the administration probe and exact server-image check succeed. Continue the existing full readiness, enrollment and GUID initialization checks. Staging a name does not confirm application availability or deployment success.

If full deployment readiness fails, retain the route only when a fresh check confirms the expected server digest, live administration and connector, closed ingress, unchanged Access/ingress configuration, anonymous/invalid-token denial, and the dedicated CI token receiving the exact 204 startup signal over HTTPS. Otherwise withdraw the owned DNS publication. Status repeats those checks before reporting an administrative URL.

An unready result may contain a verified administrative URL and administrationReady=true; applicationReady is a separate observation. Deployment still exits unsuccessfully and never receives the deployed label. Preserve the bounded result artifact on failure so command feedback can show the URL, health and unconfirmed Bootstrap outcome without exporting logs or private configuration.

For unchanged automatic intent, retain a reachable unready administrative session instead of restarting it on every reconciliation. A new intent or explicit deploy can retry. If application readiness subsequently recovers, ordinary preserving deployment can finish the outstanding receipt checks. TTL, quota, close/opt-out cleanup and explicit destroy retain their existing ownership/data semantics.

This decision changes ADR-0259's full-readiness publication gate and unconditional failed-deployment withdrawal; its isolation and authorization controls remain.

Consequences​

The protected name can briefly have no responding origin during startup. Its presence is not a ready signal. Consumers must check deployment state rather than equating a nonempty URL with a successful deployment. The connector stays outside the application Compose project and the Runtime remains infrastructure-neutral.

Existing native startup/admission tests cover the empty administration signal. Offline provider/guest tests cover partial initialization, actual lifecycle relay, source matching, protection failures, result reporting and status labels. Live protected Azure qualification requires the trusted workflow changes on main; offline tests do not establish that external acceptance.