Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Govern deploy enrollment durability
pulse-triage[bot]cbcd27b4a878
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.mdindex c90f97b0c5..80c56fa1bd 100644--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md@@ -6674,3 +6674,22 @@ or re-enrollment authority. Its liveness marker observes only whether themonitor select loop is progressing; agent report success or failure cannotindependently assert that Pulse is healthy. Agent-lifecycle behavior and proofroutes remain unchanged.++### Deploy enrollment swaps credentials as one durable transition++A deploy bootstrap token remains the live credential until Pulse can durably+replace it with the long-lived, host-bound runtime token. Enrollment prepares+the runtime credential first, then removes the single-use bootstrap token and+adds the runtime token under one configuration lock and one persistence write.+Concurrent reuse loses the locked removal and returns `409`; persistence+failure restores the complete prior token inventory and primary-token+projection, returns `500`, discloses no runtime credential, and leaves the+target enrolling so the same bootstrap credential can be retried safely.++Bootstrap minting follows the same commit boundary: a token is returned only+after its updated inventory is durably stored, and a failed write restores the+prior live inventory. `TestHandleEnroll_Success`,+`TestHandleEnroll_RollsBackBootstrapConsumptionWhenPersistenceFails`, and+`TestMintBootstrapTokenForTarget_RollsBackWhenPersistenceFails` in+`internal/api/deploy_handlers_test.go` pin the durable replacement and rollback+paths.diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex 9172f3c70f..e4e54a2e9c 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -9965,3 +9965,21 @@ failure count, sanitized error, and last interruption. It never returns theURL or endpoint fingerprint. A saved configuration that cannot be decrypted is`configuration_unavailable`, while explicit removal is immediately `disabled`even if cancellation of an older request is still unwinding.++### Deploy enrollment reports only committed credentials++`POST /api/agents/agent/enroll` returns a long-lived runtime token only after+the authenticated single-use bootstrap token has been replaced in the durable+API-token inventory. The replacement is one locked persistence transition;+another request that already consumed the bootstrap token receives the stable+`409 token_already_consumed` response. If persistence fails, the API restores+the complete prior inventory and legacy primary-token projection, returns+`500 token_persistence_error`, emits no runtime token, and does not advance the+deployment target from `ENROLLING` to `VERIFYING`.++The internal bootstrap-mint boundary likewise returns no raw token or token ID+when persistence fails. `TestHandleEnroll_Success`,+`TestHandleEnroll_RollsBackBootstrapConsumptionWhenPersistenceFails`, and+`TestMintBootstrapTokenForTarget_RollsBackWhenPersistenceFails` in+`internal/api/deploy_handlers_test.go` prove the persisted success state and+both failed-commit responses.diff --git a/docs/release-control/v6/internal/subsystems/security-privacy.md b/docs/release-control/v6/internal/subsystems/security-privacy.mdindex 19a1111a8b..cb7fa0bc82 100644--- a/docs/release-control/v6/internal/subsystems/security-privacy.md+++ b/docs/release-control/v6/internal/subsystems/security-privacy.md@@ -2356,3 +2356,15 @@ tokens and primary-token projection, emits only a failed `token_deleted` auditevent, and returns an error; a successful response identifies a deletion thatwill survive restart. Exact multi-token removal and persistence-failurerollback are exercised in `internal/api/security_tokens_lifecycle_test.go`.++### Deploy enrollment never exposes an uncommitted credential++The deploy bootstrap secret is single-use only at the durable API-token commit+boundary. Pulse generates the host-bound runtime credential without admitting+or returning it, then replaces the bootstrap record under one lock and persists+the resulting inventory once. A concurrent replay cannot pass the locked+removal. A failed persistence write restores the complete prior inventory and+primary-token projection, returns an error, and discloses no runtime secret;+failed bootstrap minting likewise returns no credential material. The success,+replay, and forced-write-failure paths are exercised in+`internal/api/deploy_handlers_test.go`.diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex 8296dbd55e..6fbe25857e 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -5642,3 +5642,16 @@ whose atomic/fsync discipline ensures a later process can report a Pulsemonitoring gap; it contains endpoint fingerprint and timing only. Configurationexport/import carries the watchdog URL solely inside the existingpassphrase-encrypted bundle and advances that bundle contract to version 4.4.++### Deploy credential replacement preserves restart-time truth++The shared deploy enrollment path treats the persisted API-token inventory as+the commit boundary when exchanging a bootstrap token for a runtime token. One+locked write records the replacement; a failed write restores the complete+prior inventory and primary-token projection, returns no new credential, and+leaves the deployment target retryable. Bootstrap minting also restores live+state and returns no token if its inventory write fails. These transitions add+no backup, restore, retention, snapshot, or recovery authority; they prevent a+successful enrollment response from describing credential state that a restart+would undo. Their success and forced-write-failure proofs live in+`internal/api/deploy_handlers_test.go`.