Introducing a new way to review your PRs.

Read the announcement

gotempsh / temps

AI-native open-source alternative to Vercel + Sentry + PostHog + Pingdom + Resend + E2B. 440+ CLI operations with drop-in skills for Claude Code, Codex & OpenCode — deployments, analytics, session replay, error tracking, OpenTelemetry, email, sandboxes & AI gateway in one self-hosted Rust binary.

View on GitHub

25 documents · Updated Oct 21, 2026

docs / cloud-control-plane

Cloud control plane

The cloud control plane links a self-hosted Temps instance to an optional managed backend and coordinates work on managed worker nodes. It gives one tenant a view of its connected instances, hosted resources, agents, and managed console access while keeping application traffic and local primary data on the self-hosted system. It also supports an outbound console tunnel so managed access does not require the local console to accept public inbound traffic.

System boundary

Control-plane role

The cloud control plane is a coordination layer between a local Temps instance, a managed tenant account, and worker-node agents. The local instance remains responsible for application traffic and its own primary data, except for projects that explicitly choose cloud-primary telemetry. The cloud side provides shared account state, service entitlement, liveness, and selected hosted resources. The control plane can also ask a linked agent to manage containers and external service resources on the node that owns them.

This boundary is important: a cloud outage can delay a mirror or managed service, but it must not stop local deployments, application traffic, local storage, or work already running on a worker. The local system reports the degraded state so an operator can act on it.

References: crates/…/lib.rs• L4-8 crates/…/server.rs• L44-162 crates/…/lib.rs• L4-22 crates/…/lib.rs• L4-28

Tenant and instance identity

An instance is one self-hosted Temps installation. A tenant is the cloud account that owns one or more connected instances. Enrollment binds an instance to a tenant and returns an instance-scoped credential, so the cloud backend can separate one customer's resources from another customer's resources.

The instance keeps a stable identity across disconnect and reconnect. Re-enrollment can refresh a credential without creating a second instance, while connecting to a different tenant is treated as a new binding. This identity is the basis for tenant-scoped resource records and agent liveness.

The backend URL is part of this binding. A one-shot backend bootstrap can set it only while the instance is unlinked, and the enrollment that follows reads the saved value. A linked instance keeps its established backend instead of silently changing the origin of its credential. Production communication uses an HTTPS origin without embedded credentials, query data, fragments, or a path.

References: crates/…/messages.rs• L49-102 crates/…/lib.rs• L87-179 crates/…/state.rs• L66-96 crates/…/link.rs• L160-223 crates/…/service.rs• L916-1001

Managed console access

The control plane supports managed console access through an outbound console-proxy tunnel. The tunnel opens only when the instance is linked and the console-access feature is enabled. This keeps the local console behind its normal boundary while allowing the cloud service to reach it through an authenticated connection.

The cloud can send the tunnel's OpenID Connect (OIDC) configuration to the instance. OIDC is the sign-in protocol that lets the local console trust the cloud identity service. The instance applies the provider to its local identity service only when console access is still allowed and the cloud link is still valid. Turning the feature off closes the tunnel and removes the managed provider and its sessions. Disconnect performs the same cleanup before it removes the cloud link. A hosted first boot can also use a one-use bootstrap file for the initial provider configuration. The file's presence grants console-access consent on that hosted boot; the provider is stored before that consent is enabled, and a failed apply reports whether cleanup restored both parts. The issuer and client ID are audit data; the client secret is not.

See Identity and team access for the wider authentication, team, permission, and session model.

References: crates/…/console_oidc.rs• L4-55 crates/…/console_oidc_bootstrap.rs• L4-13 crates/…/console_oidc_bootstrap.rs• L117-145 crates/…/service.rs• L660-684 crates/…/service.rs• L978-1017 crates/…/service.rs• L1322-1359

Managed resource coordination

Cloud feature controls

Cloud connection and data export are separate decisions. After an instance is linked, the operator can enable telemetry export, backup export, notification delivery, and managed console access independently. The control plane keeps these choices visible in status and applies them to the matching local work. Linking an account alone never enables an export or opens the console tunnel.

Managed backups have a wider setup flow. The cloud can provide a tenant-owned backup destination with temporary or long-lived credentials and a plan retention value. The local system stores that destination, keeps its credential current, and reports whether the destination is ready, needs setup, needs a subscription, or can be retried. When the destination is first created, the control plane attempts to create the plan's default backup schedule. The status also shows the schedule and any archive conflicts so the operator can fix setup without guessing.

Enrollment can provision this destination without making enrollment fail when the tenant has no backup entitlement or the backend is not ready. If completed backups already use the destination, the mirror registers them so they remain visible and restorable even when export consent is later off. The local console receives an actionable state instead of treating every case as a generic connection failure.

References: crates/…/lib.rs• L56-63 crates/…/service.rs• L51-145 crates/…/service.rs• L228-384 crates/…/service.rs• L472-513 crates/…/service.rs• L690-710 crates/…/service.rs• L915-975 crates/…/service.rs• L1126-1176 crates/…/handler.rs• L283-320

Enrollment effects

Enrollment establishes the cloud link first and then performs related setup. Managed backup provisioning is best effort, so a missing entitlement or an unavailable backend leaves the link usable and gives the operator a setup state to resolve later. When provisioning creates a destination, the control plane also attempts to attach the plan's default schedule; a schedule error does not undo the link or destination.

On a genuinely new link, an instance administrator can also start the telemetry activation that moves local project history toward cloud export. This work starts after the enrollment response and records its estimate, project set, and job identity in the audit trail. It runs independently of the enrollment response, so activation failure or audit failure cannot undo a completed link. Re-authentication to the same tenant or reconnection of a historical instance does not start it again. Enrollment by a non-administrator does not authorize the instance-wide spend, and the operator can start the activation later from the cloud settings flow.

The activation is an enrollment side effect rather than a public cloud route. An instance without a telemetry activation source still enrolls normally, and skipped activation states do not claim that a spend started.

First-boot enrollment can run without a logged-in operator. It uses the same link and managed-backup outcomes as the operator path, then records an actor-less audit trail that identifies the bootstrap path. A backend URL bootstrap is audited as a configuration change before that enrollment audit, so the selected cloud origin and the resulting credential remain separate events.

References: crates/…/service.rs• L886-926 crates/…/service.rs• L1029-1131 crates/…/service.rs• L1150-1265 crates/…/service.rs• L1295-1397 crates/…/handler.rs• L316-545 crates/…/handler.rs• L712-823 crates/…/plugin.rs• L151-160

Hosted resource lifecycle

The control plane coordinates resources that have a cloud-owned part and a local part. Enrollment can establish the link and request a managed backup destination. Local completed backups can then be registered with the cloud resource, while local backup data remains authoritative for the self-hosted system. The control plane can also catalog backup objects already in a managed bucket instead of making a second copy.

Backup registration covers customer service snapshots and the Temps control-plane database backup. The local mirror identifies the backup type from the completed record, checks the source layout, and sends the cloud the engine, restore identity, object list, and integrity data needed to offer a restorable record. WAL-G snapshots include the base backup and only the WAL range needed to reach the snapshot's recovery point. The mirror waits when that WAL has not arrived yet, because a record that cannot restore is not a completed cloud backup.

For a cloud-managed source, the tenant bucket already holds the backup objects, so the cloud can catalog the declared root in place. Large object lists use a bounded manifest in that bucket. If the cloud cannot accept in-place cataloging, the mirror can switch to a checked copy path. Interrupted copy work resumes from the set of objects the cloud already verified, while permanent layouts such as an empty completed object set remain visible as unsupported work instead of retrying forever.

A separate worker agent lets the control plane place and operate application containers and external services on the node that owns them. Other hosted services follow the same pattern: the instance asks what the tenant is allowed to use, sends only the approved material, and reports the result locally.

ResourceControl-plane responsibilityLocal or worker responsibility
TelemetryAccept mirrored spans and expose tenant-scoped reads when supportedProduce and retain the primary telemetry according to the selected write mode
Managed backupsProvide the tenant's managed destination and record backup stateCreate local backups and mirror eligible completed objects
NotificationsQueue cloud-owned delivery to configured sinksProduce the alert and provide a stable source identity for retries
Managed AIReport available provider and model capability and process approved requestsSelect and redact the context before it crosses the boundary
Worker-hosted containers and servicesDirect control to the worker that owns the resource and retain tenant-level stateRun containers, service operations, health checks, and data actions on the worker

References: crates/…/service.rs• L343-384 crates/…/service.rs• L820-1052 crates/…/service.rs• L1295-1445 crates/…/backup_mirror.rs• L352-576 crates/…/backup_mirror.rs• L843-889 crates/…/backup_mirror.rs• L1226-1620 crates/…/backup_mirror.rs• L1622-2058 crates/…/messages.rs• L325-392

Cloud service lifecycle

The cloud integration is optional at startup. It loads an encrypted link and local settings, validates the configured backend, and blocks outbound cloud work when the local configuration or link state cannot be trusted. A failed optional initialization logs the problem and does not stop the local console from starting.

After successful initialization, background work handles the telemetry flusher, durable telemetry outbox, backup mirror, backup credential rotation, instance heartbeat, backup lifecycle notices, and the console-proxy worker. These paths are independent of application traffic and stop through a bounded shutdown path. Optional backup, identity, and telemetry services can add schedule creation, managed console OIDC provisioning, and purchase-triggered telemetry activation without making builds that lack those services fail.

References: crates/…/plugin.rs• L44-149 crates/…/plugin.rs• L151-175 crates/…/service.rs• L187-266 crates/…/service.rs• L541-684 crates/…/service.rs• L1446-1516 crates/…/service.rs• L1577-1647 crates/…/lib.rs• L181-259 crates/…/outbox.rs• L283-409 crates/…/service.rs• L1302-1361

Primary telemetry durability

Cloud-primary telemetry uses a durable local handoff before delivery. The instance accepts spans into a byte-limited queue and ships them in order from the background path. This protects accepted telemetry from process restarts without treating the queue as a second long-term telemetry store.

When the queue reaches its limit, it refuses new spans instead of removing older ones. It records the refused time range as a delivery gap so the operator can see the loss. If cloud delivery is disabled or the instance disconnects, queued spans can be written to the local store before they leave the queue. The queue reports pending work, active delivery failures, and dead letters as metadata rather than exposing telemetry content through status.

The cloud client classifies failures by whether the same request can succeed later. Temporary transport and backend failures keep data for retry, while permanent rejection does not create an endless buffer. A response must also acknowledge the same submission and span count before the batch is considered delivered.

References: crates/…/outbox.rs• L4-67 crates/…/outbox.rs• L221-281 crates/…/outbox.rs• L348-409 crates/…/outbox.rs• L706-764 crates/…/outbox.rs• L815-929 crates/…/lib.rs• L225-259 crates/…/lib.rs• L705-769

Agent communication

Management channel

The managed agent uses a protected control-plane API to manage a worker and to prove that the worker is alive. The agent sends a heartbeat with capacity, labels, container platform, and selected network health. Its first successful heartbeat also gives the control plane a managed-container inventory so the control plane can repair stale records after a worker restart. A separate outbound console-proxy channel serves the local console and carries managed OIDC updates; it is controlled by the same cloud link and a separate console-access choice.

The agent retries transient heartbeat failures and keeps local work independent from the heartbeat path. A worker platform remains unknown until the Docker daemon reports it. This prevents the control plane from treating the agent process architecture as proof that the worker can run a given image.

The communication sequence is:

sequenceDiagram
    participant A as Worker agent
    participant C as Control plane
    participant I as Temps instance
    A->>C: Authenticated heartbeat
    C-->>A: Heartbeat result
    C->>A: Container or service operation
    A-->>C: Operation result and health data
    I->>C: Enroll with short-lived code
    C-->>I: Tenant identity and instance credential
    I->>C: Management message
    C-->>I: Accepted result

References: crates/…/server.rs• L180-447 crates/…/server.rs• L517-665 crates/…/lib.rs• L181-259 crates/…/messages.rs• L17-45 crates/…/messages.rs• L916-945

Managed worker agents

A worker agent is the control plane's local execution boundary for a node. Its authenticated API manages application containers and external services such as databases, caches, and object stores. It also supports bounded commands, terminals, logs, stats, health probes, and service backup or restore actions.

The agent binds published service ports to the node's private or overlay address rather than the public interface. When the cluster has an overlay, service containers can receive a cross-node address and use the cluster DNS view. This lets the control plane reach the resource without making the service public by default.

References: crates/…/handlers.rs• L472-760 crates/…/handlers.rs• L762-1110 crates/…/service_handlers.rs• L234-558 crates/…/service_handlers.rs• L1196-1384

Delivery and read paths

Cloud-facing work runs in background paths rather than in application requests. Telemetry and backup data can wait in local queues when the backend is slow or unavailable. A completed local backup wakes the mirror early, and the mirror keeps per-object progress so a later pass can skip objects that the cloud already verified. Retries preserve the distinction between temporary failure, operator action, and permanent rejection, while status reports buffering or data loss explicitly.

Cloud-primary telemetry uses the durable outbox described above, while mirror-mode telemetry uses a best-effort buffer because local storage already holds the authoritative copy. Backup discovery is bounded and tenant-scoped. It considers only backups written to a cloud-managed source, records per-backup retry state, and uses a completion cursor so old history does not block new work. A partial object pass continues with other objects and resumes from the cloud's completed set on the next pass. The cloud client keeps backend calls short and does not follow redirects. Backup uploads use a separate bounded connection and idle-progress policy so a slow object store cannot become an unbounded instance wait.

Some services use a request-response path for a bounded operation, such as capability checks, an approved managed AI request, or a worker service action. Managed AI retries reuse the request identity, and notification retries reuse the source notification identity, so a lost response does not create a second charge or delivery. These calls still use the relevant instance or agent authentication and time limits. The cloud backend does not become a proxy for deployed application traffic.

References: crates/…/backup_mirror.rs• L265-349 crates/…/backup_mirror.rs• L352-576 crates/…/backup_mirror.rs• L1554-1619 crates/…/backup_mirror.rs• L1995-2058 crates/…/lifecycle_notify.rs• L21-73 crates/…/lib.rs• L181-259 crates/…/lib.rs• L441-476 crates/…/lib.rs• L478-559 crates/…/lib.rs• L694-703 crates/…/service.rs• L238-333

Operator boundary

Cloud connection operations

The local API presents a small control surface for the lifecycle of a cloud link. Operators can inspect capability and status, enroll an instance, change export choices, reconcile a managed backup source, create or retry its backup schedule, and disconnect the instance. These actions update local state and produce audit records so the cloud link remains visible as an operational decision. The feature update also controls the console tunnel, and disconnect revokes managed console identity before it reports completion.

Enrollment can also be driven without a logged-in operator during first boot. The unattended path records the same link and managed-backup outcomes as the operator path, but marks the action as bootstrap work rather than assigning it to a user. Audit failures do not undo a completed enrollment or a running activation. The purchase-triggered telemetry activation has no separate public route; a qualified administrator can start it from the existing telemetry settings flow when enrollment does not start it.

Access checks for these actions are part of the platform's wider identity and team model. See Identity and team access for authentication, permissions, team membership, and audit rules.

References: crates/…/handler.rs• L246-335 crates/…/handler.rs• L423-545 crates/…/handler.rs• L547-659 crates/…/handler.rs• L890-950 crates/…/service.rs• L915-1017 crates/…/service.rs• L1322-1363

Cloud integration boundaries

The cloud client and protocol define what may cross the managed boundary. The protocol carries enrollment, liveness, telemetry, backup declarations, backup lifecycle events, notification requests, approved managed-service requests, and console-proxy traffic. Backup declarations can name an existing managed-bucket location or a large manifest. Lifecycle events give the cloud a fast view of backup progress, while the mirror remains the source of truth when an event is lost.

The client accepts only the protocol's approved payloads. It does not send source code, environment variables, or secrets as part of the normal cloud link. Presigned backup destinations are checked before upload and are used without redirects. Backend error details remain bounded and operator-readable, while credential and session fields stay out of diagnostics. See Cloud client and protocol for the wire contracts, capability negotiation, retry behavior, and data-safety rules that support this control plane.

References: crates/…/lib.rs• L18-22 crates/…/lib.rs• L393-416 crates/…/lib.rs• L825-1002 crates/…/lib.rs• L1025-1077 crates/…/lib.rs• L4-45 crates/…/messages.rs• L325-392 crates/…/messages.rs• L421-466 crates/…/messages.rs• L734-805 crates/…/console_oidc.rs• L31-55 crates/…/lifecycle_notify.rs• L141-198

Change checklist

When these files or sections are changed, remember to consider these:

  • Changes to tenant or instance identity must preserve the rule that reconnecting to the same tenant does not create a new instance, while a different tenant creates a new binding.
  • Changes to backend bootstrap or enrollment must keep URL validation, the established backend, and the enrollment credential in the same binding decision.
  • Changes to feature switches must keep enrollment separate from export consent and must keep local fallback behavior aligned with each switch.
  • Changes to managed backup capability data must keep credential fields, session tokens, expiry, and plan retention aligned from the wire response through encrypted storage and schedule setup.
  • Changes to managed backup setup must preserve the difference between no entitlement, inactive subscription, unavailable backend, and a ready destination. Enrollment must remain usable when backup provisioning is not ready.
  • Changes to managed backup schedule creation must keep plan retention, existing schedules, archive conflicts, and the operator retry path aligned with the managed destination.
  • Changes to backup discovery must keep cloud-managed source filtering, tenant-scoped mirror state, bounded due work, and the completion cursor aligned. Operator-owned backup destinations must not become cloud mirror candidates.
  • Changes to a managed resource capability must update both the cloud response contract and the local status states that distinguish unavailable, not entitled, and retryable conditions.
  • Changes to agent routes or request envelopes must stay aligned with the control-plane remote-resource client, including auth, timeout, and response error meanings.
  • Changes to worker heartbeats must preserve the distinction between unknown and confirmed platform data, and must not drop the first inventory reconciliation.
  • Changes to backup lifecycle events must keep the mirror sweep as a recovery path, preserve credential redaction, and keep deletion identifiable after the local backup row is gone.
  • Changes to backup declarations must keep the in-place catalog path, copy path, manifest path, and completed-object resume behavior compatible with older cloud peers.
  • Changes to backup object identity or restore metadata must keep the declared engine, format, source identity, object keys, sizes, and checksums consistent with the objects in storage.
  • Changes to backup engine dispatch must keep control-plane backups, logical dump fallbacks, native snapshots, and WAL-G snapshots on compatible declaration paths. WAL-G declarations must still cover the sentinel, base data, and required WAL range.
  • Changes to backup discovery or mirror classification must preserve the difference between a temporary missing WAL segment, an unsupported source layout, and an empty completed object set. A permanent backup problem must not slow discovery for unrelated backups.
  • Changes to managed source layout or cloud declaration contracts must preserve in-place cataloging, bounded large manifests, safe copy fallback, and manifest cleanup.
  • Changes to managed backup object progress must keep cloud-verified objects resumable, partial passes retryable, and consecutive failures bounded so one outage does not hold the full sweep.
  • Changes to managed console access must keep first-boot file deletion after successful persistence, secret redaction, provider revocation, and session invalidation aligned.
  • Changes to console-proxy configuration must keep link state, the console-access switch, tunnel shutdown, OIDC provider updates, and session revocation aligned. A delayed cloud configuration must not recreate a provider after access is disabled.
  • Changes to disconnect must release schedules before revoking managed backup credentials and must not remove a source that still owns backup history.
  • Changes to purchase-triggered telemetry activation must keep it limited to a new link by an instance administrator, detached from enrollment latency and failure, and visible through its job and audit record.
  • Changes to optional cloud plugin services must keep missing backup, identity, or telemetry services non-fatal while starting only the background work that has a valid initialized control plane.
  • Changes to cloud-primary telemetry must keep accepted spans durable before acknowledgement, preserve FIFO delivery, and keep queue overflow visible as a gap rather than silently evicting older accepted spans.
  • Changes to outbox settlement must preserve the order of durable local storage before spill completion, cloud acknowledgement before delivery settlement, and project deletion before any queued telemetry can ship.
  • Changes to cloud client retries must preserve stable request or source identities for idempotent managed AI and notification operations, and must keep retryable and permanent failures distinct.
  • Changes to backup upload targets must keep expiry, host, resolved address, header, HTTPS, and redirect checks aligned so a managed destination remains an authority boundary.

Important failure modes

TriggerConsequenceGuard
Cloud backend is unreachableLocal work continues, but mirrored data waits in a bounded queue and status becomes degraded or bufferingBackground delivery, retry backoff, and visible mirror health
Cloud-primary telemetry reaches its byte capNew spans are refused and a time gap is recorded instead of silently deleting older accepted spansDurable byte cap, newest-first refusal at the boundary, and gap status
Instance credential is rejectedCloud delivery stops and the link needs operator re-enrollmentSeparate credential_rejected state and local storage fallback
Worker agent auth or TLS identity is rejectedThe control plane cannot manage the node or receive fresh node healthBearer authentication, optional fail-closed mTLS, and private node addressing
Worker heartbeat cannot learn the Docker platformImage placement remains unverified instead of using a possibly wrong platform valueRetry daemon discovery and omit unknown architecture from the heartbeat
A backup object fails during a mirror passThat object remains pending, while successful objects stay complete and later passes resume from the cloud's completed setPer-object retry, bounded failure reporting, cloud completed-key tracking, and a consecutive-failure stop
A WAL-G backup's required WAL is not archived yetThe backup remains pending instead of becoming a cloud record that cannot restore to its declared pointSentinel LSN bounds, range selection, and a retry state that names the missing segment
A large backup manifest is not accepted by the cloud peerThe snapshot cannot be mirrored by another path and remains an actionable permanent failureVersioned manifest contract and explicit rejection instead of endless retry
A completed object-set backup has no source objectsThe backup is marked unsupported and does not keep unrelated mirror work at the slow retry cadencePermanent classification and separate per-backup retry timing
A managed backup credential expires or loses its session tokenNew writes or mirror reads fail even though the tenant is still linkedBackground credential rotation and explicit expiry and setup state
The managed backup plan retention is unavailableThe destination can be ready, but the default schedule cannot be created safelyFetch the capability before schedule creation and expose a retryable setup error
A presigned backup target is expired, unsafe, or redirectedThe upload is rejected before it can send backup bytes to an untrusted destinationTarget validation, DNS address checks, pinned resolution, HTTPS, and disabled redirects
Cloud returns a different managed bucketNew records use the new bucket while older objects can become orphaned from the local source recordStable tenant-to-bucket contract and loud ProvisionedBucketChanged status
Link state cannot be readThe system cannot safely know which tenant or credential it ownsBlock mutations until the original encryption key or state file is recovered
Cloud capability is not included in the tenant planThe related hosted service is not provisionedReturn an explicit entitlement state and an operator action
Managed backup source is still referenced by schedules or historyDisconnect cannot remove the source without risking local backup recordsRelease schedules first and keep the source when backup history still references it
Protocol version is incompatibleThe management connection cannot negotiate a safe set of featuresReject the connection version while keeping capability absence non-fatal
Console OIDC bootstrap file is malformed or cannot be appliedManaged console sign-in is not provisioned and the plaintext input remains for inspectionValidate before apply, keep failed input in place, and delete only after success
Console OIDC bootstrap enables consent but its compensating cleanup failsThe settings row or managed provider can remain active after a failed first-boot applyApply the provider before consent, attempt both compensating actions, and audit which action did not complete
Console OIDC provider cannot be revoked during disconnectThe cloud link stays in place instead of falsely reporting a complete disconnectRevoke the provider and its sessions before removing the link
Console-proxy OIDC configuration arrives after console access is disabledA stale cloud message could restore a provider that the operator already turned offSerialize provider updates with feature changes and reject configuration unless the link and feature are both active
Auth services are not registered in an optional buildThe console tunnel cannot authenticate managed accessFail closed for provider setup while allowing the local application to start
Telemetry activation cannot be queued after a new enrollmentThe link succeeds without switching projects or sending historyDetach activation from the response and expose the missing job through the status card
Cloud integration initialization failsThe local console starts without the optional cloud background workersLog the initialization error and keep local operation available
A queued telemetry row cannot be decoded or exhausts delivery attemptsThe row no longer blocks later work, but the operator sees a permanent delivery recordDead-letter the row, retain bounded failure metadata, and expose the dead-letter count
A project is deleted while telemetry remains queuedDeleted project telemetry could be exported or consume the queue indefinitelyProject deletion purge, deletion fence, claim-time existence check, and orphan sweep
A retryable managed request loses its response after the backend commitsThe operation could be charged or delivered twice if retried with a new identityReuse the request ID for managed AI and the source notification ID for notifications

Key files

FileWhy to read it
crates/…/service.rsShows the local coordinator for enrollment, status, feature choices, managed backup setup and scheduling, credential refresh, managed console access, and shutdown.
crates/…/handler.rsShows the operator-facing cloud lifecycle, access and audit boundary, unattended enrollment trail, backend bootstrap audit, and the gated purchase-triggered telemetry activation.
crates/…/plugin.rsShows how the optional cloud integration joins the application, backup, identity, and telemetry services and starts background coordination only after valid initialization.
crates/…/console_oidc_bootstrap.rsShows the one-use first-boot input for managed console OIDC access and its consent trace, secret-safe audit data, and cleanup behavior.
crates/…/console_oidc.rsShows the adapter that applies or revokes OIDC configuration received through the live console-proxy connection.
crates/…/server.rsShows the worker heartbeat, node health reporting, agent transport, and authenticated route boundary.
crates/…/handlers.rsShows the control plane's container operations and bounded remote command and terminal boundary.
crates/…/service_handlers.rsShows worker-hosted service creation, health, runtime resources, and backup operations.
crates/…/lib.rsShows the optional cloud boundary, backend validation, enrollment, managed service requests, retry meanings, and safe backup uploads.
crates/…/outbox.rsShows the durable cloud-primary telemetry handoff, queue limits, delivery states, gap reporting, local spill path, and cleanup rules.
crates/…/link.rsShows the instance-side link model and the rule that local work remains primary.
crates/…/heartbeat.rsShows how a linked instance reports liveness without depending on telemetry or backup activity.
crates/…/lib.rsDefines the control-plane boundary, capability negotiation, and compatibility rules.
crates/…/messages.rsDefines the high-level messages for enrollment, liveness, telemetry, backup declarations, manifests, lifecycle events, and managed services.
crates/…/backup_mirror.rsShows how the background mirror discovers cloud-managed completed backups, validates their restore inputs, catalogs or copies their objects, resumes partial work, and records tenant-scoped outcomes.
crates/…/lifecycle_notify.rsShows the fast backup status path and its safe fallback to the mirror sweep.
web/…/CloudSettingsPage.tsxShows how operators connect an instance, inspect status, and choose cloud exports.