Patch workflows
Praxis separates inventory (what is installed and updatable, covered in packages) from patching (a governed, staged, approvable process). Everything below lives under the Update workspace.
Patch policies
Update > Patch Policies defines how a set of hosts gets patched, not when a single job runs. A policy carries:
- Scope - which packages the policy governs: security-only, or an explicit allow-list / deny-list of package names. This is the blast-radius control; a too-broad scope means a policy can move more packages than you intended.
- Rings - an ordered list of host cohorts (e.g.
canary > early > broad). Lower rings patch first so you catch a bad update on a few hosts before it reaches the fleet. - Maintenance window binding - patches only dispatch inside the bound window (see Jobs & Scheduling > Maintenance Windows). No window means nothing is time-boxed.
- Reboot behavior - whether a patch that requires a reboot triggers one, and whether that reboot is held for the maintenance window.
- Approval requirement - whether producing/dispatching an update plan needs an approver.
The scope + ring pairing is the safety model. A policy with a wide scope and a single ring patches everything everywhere at once. Start narrow (security-only, canary ring first) and widen deliberately.
Patch advisories
Update > Patch Advisories holds native distribution advisories - Ubuntu USN, Debian security (DSA), and Red Hat updateinfo (RHSA). Praxis joins each advisory’s fixed-package targets against host facts and installed packages to compute per-host applicability (applicable / fixed / not_applicable / unknown). To rank the findings by risk and follow each host’s next action, see patch prioritization.
Advisories arrive two ways, and both feed the same applicability engine:
- Advisory feeds refresh the Debian Security Tracker, Ubuntu USN OVAL and Red Hat CSAF advisories from the publishers on a schedule or with Sync now. Feeds are off by default, show how fresh each source is, and respect offline mode. See advisory feeds.
- Exploitation and CVE record enrichment is optional. The CISA Known Exploited Vulnerabilities catalog marks advisories and findings whose exact CVE is known to be exploited, to help you choose what to patch first; it never changes whether a host is affected. Structured CVE records add upstream product and version evidence, and a distribution verdict for the exact installed build always wins over them. Both can also be loaded from a file with no network. See advisory feeds.
- Import advisories works with no network: pick a source and paste one raw native advisory object, a JSON array of them, or a Red Hat CSAF document downloaded from the publisher. The import records a run (status + imported/refreshed/unchanged/error counts) and recomputes applicability for affected hosts.
Each host finding separates the vendor release statement, the repository candidate the host’s own repositories offer, and the installed revision. A finding the vendor confirms but has not yet fixed stays applicable (awaiting the vendor fix) and becomes eligible on the next refresh once a fix is published; it is not unknown. A host showing unknown has insufficient evidence, and the reason is shown - usually missing facts or inventory, which a facts refresh or package scan resolves.
A security-only plan selects a publisher finding only when the host’s own repository offers the vendor fix. A package is patched by name, which also upgrades every installed architecture of it, so when another architecture of the same package is unknown or has not been assessed, the package is left unselected with that reason. A withdrawn advisory drops out of a plan preview, the host’s findings, every count and smart groups that match on advisory fields immediately, before the host is reassessed. When a publisher corrects an advisory (for example raising the fix from revision 2 to 3), a host’s earlier finding is not selected while the host waits for reassessment, and after reassessment it is judged against the corrected fix.
Update plans, rings, and waves
Update > Update Plans is where a policy becomes a concrete, reviewable change. A plan is organized into waves that follow the policy’s ring order: wave 1 targets the first ring, and later waves only proceed once earlier ones are healthy.
On a plan’s detail page you see the per-wave, per-host package changes before anything runs. Building a plan flips metadata only - it never touches a host.
Direct and bulk updates from the package pages are plans too, generated from each host’s effective policy and named Direct update on .... Their packages, revisions and windows are frozen: they cannot be refreshed, their windows cannot be replaced, and each runs only once. Submit a new update to change the scope.
A plan with nothing to install will not start. If no host in the plan has selected package work that can actually be dispatched, starting the execution is refused with no_selected_packages rather than recorded as a run. Praxis does not create a successful execution that installed nothing, so a green execution always means real package work was attempted. Mixed plans are unaffected: hosts with no applicable work are skipped individually, and the hosts that do have work still patch. The refusal says which case it is - the plan selected nothing at all, the selected work has no dispatchable host left (for example its target system was removed), an earlier run already applied the work, or an earlier attempt failed or only partly succeeded, in which case it reports how many package results succeeded out of the total.
Approvals
When the policy requires approval, dispatching a plan (or a rollback) is gated: an approver reviews the frozen plan and approves, rejects, or the request is cancelled. Approvals can be multi-level. The approval snapshots (“freezes”) the plan so what gets dispatched is exactly what was approved, even if the live inventory shifts afterward.
Approval queues for patch and command actions are reachable from Operate > Approval Queue and the plan and rollback surfaces themselves.
Reboot scheduling
Reboot behavior is a patch policy setting. When a patch needs a reboot, the policy decides whether the host is rebooted, and its reboot window decides when. Praxis then sends due reboots and verifies them on its own; the plan page shows each host’s reboot and offers the operator controls.
Scheduled reboots happen without further action. A policy with a reboot behavior of
if_requiredoralwaysand a reboot window means Praxis restarts hosts inside that window. A policy with no reboot window schedules and sends nothing.
Reboot evidence
The decision is made from a fresh observation, not from stored inventory. After a host’s package work succeeds under if_required, Praxis asks the host directly instead of reading the reboot_required fact collected by the last inventory sweep, which predates the update. Each package family answers through the indicator it treats as authoritative:
- Debian family: the
/var/run/reboot-requiredor/run/reboot-requiredmarker. - RPM family:
needs-restarting -r, read from its exit status (0no reboot needed,1reboot needed). Any other status is the tool failing rather than an answer.needs-restartingships indnf-utils/yum-utilsand is absent from a minimal install; see known distro-specific limitations.
The probe is read-only. It rides the same transport and sudo method as the package command, installs nothing, and reboots nothing.
Each observation is recorded on the reboot row under decision_details.reboot_evidence: the value, the indicator it came from (source), the probe outcome, the UTC collected_at, the package family, the exit_code, and a bounded detail. The reboot CSV export carries reboot_evidence_source, reboot_evidence_outcome, and reboot_evidence_collected_at.
An observation is reused for up to an hour, and only when it was collected at or after the host finished its package work, so a pre-update reading can never decide a row. It is also reused only as a successful yes or no from the indicator of the host’s package family, with the exit status recorded for that answer (0 for the Debian probe; for needs-restarting -r, 0 with no and 1 with yes); a stored record that does not hang together is collected again. Hosts on never or always are not probed at all, because the answer cannot change their decision; their rows record the outcome not_collected with the reason.
Unknown evidence fails closed. A row reads not_required only on a fresh, successful, negative observation. Everything else - missing, stale, unsupported, timed out, transport failure, malformed output, or a failed probe - produces a pending row with the decision code reboot_evidence_unknown. On such a row reboot_required_fact is null, and null does not mean “no reboot needed”: read it together with the decision code. Pending rows keep dependent waves blocked with the gate reason prior_wave_reboots_in_progress.
An unknown row is never scheduled, and no reboot is sent for it. To clear it, fix why the host could not answer (install dnf-utils on an RPM host, restore connectivity), then use Re-check evidence on the row or reconcile the queue of that execution. Either one removes the reboot when the host reports that none is needed, and schedules it when one is. A scheduled reboot that is still needed keeps its time. A reconcile keeps the decisions operators made, and never schedules a reboot that has been sent. A reboot refused before anything was sent because of the credential’s sudo method can be reconciled back into the queue.
Just before an if_required reboot is sent, an observation older than an hour, or one that could not be reused for the reasons above, is collected again. If the host no longer reports that it needs a reboot, none is sent; if it cannot answer, the row returns to pending with reboot_evidence_unknown. The stored answer is judged once more with the connection to the host open, immediately before the command. If it has passed the hour by then, or no longer holds together, nothing is sent and the host is asked again on a later attempt.
When the reboot queue is incomplete
The queue answers “what still has to reboot”. It also reports whether it is a complete account of the run. GET /patch/update-executions/{id}/reboots and GET /patch/update-plans/{id}/reboots return a summary.reconciliation block: status (ok, incomplete, or failed), action_required, succeeded_host_count, reboot_row_count, missing_row_count, and last_failure. The plan-scoped response adds execution_ids_action_required.
While action_required is set, the counts are not that answer, and the plan and execution detail pages carry a Reboot queue incomplete warning saying so. incomplete means hosts finished patching without a queue row; failed means a reconcile pass itself failed.
A failed pass also records a marker on the execution, emits the audit action patch_update_execution_reboot.reconcile_failed with outcome failure, raises a patch.reboot_required notification at error severity, and blocks dependent waves with the gate reason reboot_reconcile_failed.
Re-run the reboot reconcile for the execution to rebuild the queue. A successful pass clears the marker.
Scheduling, sending and verification
A reboot passes through these states: pending (needed or unknown, not scheduled), scheduled, rebooting (sent, not yet proven), verifying (being checked), and finally healthy or failed. not_required and skipped rows are never sent.
Scheduling. The queue of a wave is built as soon as the wave completes, and the queue of the whole run when it ends. A needed reboot is scheduled for the next opening of the reboot window after that, even if the window is open at the time. All times are stored and shown in UTC.
A staged rollout waits on its reboots. A later wave starts only when every reboot of the earlier waves is healthy, not needed, or skipped by an operator. A failed, unverified, unknown or canceled reboot keeps the later waves waiting. While a run is under way, a host is rebooted only once every host of its wave has finished its package work, whoever asks; one host that succeeded does not go ahead of the others.
Sending. Praxis sends a scheduled reboot on its own once its time arrives. It collects the host’s facts immediately before, stores them with the record that the reboot is being sent, and does not send a reboot without that baseline. The window is judged against the clock once more immediately before the command leaves. The command is given 60 seconds. If no answer arrives, a reboot that Praxis sent on its own, or one of a direct update, is left for verification to decide. Except with Send now, the scheduled time is read again as the reboot is claimed, so a reschedule saved before that point holds.
Verification. A sent reboot is checked first after a grace period (60 seconds by default) and then again every 30 to 60 seconds, on the first worker sweep at least 30 seconds after the previous check, until its deadline (900 seconds after the send by default). Praxis takes no automatic check before the grace period or the recorded time of the next one; Verify now does not wait for them. A host passes only on proof that it restarted: a different running kernel, an uptime lower than before the send, or a current boot that began after the send. Reachability alone is not proof. At the deadline an unproven reboot is recorded as failed with the reason of the last check: reachability_failed, no_reboot_evidence, probe_timeout or transport_error. A reboot with no baseline (no_baseline) or whose host was removed (system_deleted) fails at once.
The grace period and deadline are set with PRAXIS_REBOOT_VERIFY_GRACE_SECONDS (10 to 3600) and PRAXIS_REBOOT_VERIFY_TIMEOUT_SECONDS (60 to 86400, never less than the grace period plus 30) in the backend environment. Raise the deadline for hardware with long firmware or file system checks.
What a scheduled reboot rests on
The approved plan authorizes the reboots it covers: those hosts, that reboot behavior, inside that reboot window. There is no second approval for a reboot, and no force or emergency option that sends one outside these bounds. A reboot that the plan does not cover needs a new plan, approved where the policy requires it, or your own change process.
Approval covers the reboot window by identity and definition: its enabled state, schedule and target. They are recorded when approval is requested, or when a plan that needs no approval is approved; a direct update records them when it is confirmed. Votes record nothing of their own: a request made without a record stays without one however many votes follow. A window edited after that, another window chosen when the plan is scheduled, or a plan with no such record holds every reboot, whether Praxis or an operator asks for it. Restoring the approved definition releases the hold; otherwise the reboot needs a new approved plan.
Every send, whether automatic or requested by an operator, is checked against current state. Nothing is sent when any of these fails, and the row records why:
| Hold | Meaning |
|---|---|
reboot_batch_paused, reboot_batch_canceled, reboot_failure_threshold_exceeded | The reboots of the execution are paused or canceled. |
plan_missing, plan_withdrawn, plan_approval_missing | The plan was removed, canceled or superseded, or its approval no longer stands. |
reboot_phase_not_ready, reboot_wave_incomplete | The run is still under way and the wave of the host has not finished, the run is paused, or its last queue reconcile failed. |
host_not_succeeded, reboot_policy_invalid, reboot_decision_invalid | The host did not complete its package work, or the row does not record a known need to reboot. |
actor_authority | The person the send acts for is inactive, lost the role, or lost fleet scope over the host. An automatic send acts for the operator who started the run. |
reboot_policy_changed | The policy that applies to the host changed, no longer applies, or its reboot behavior or window changed. |
reboot_window_unset, reboot_window_missing, reboot_window_disabled, reboot_window_unusable, reboot_window_closed | There is no usable open window. |
reboot_window_unapproved, reboot_window_changed | The approval has no record of this window, covers another one, or the window differs from what was approved. |
package_work_unresolved, package_work_running, host_reboot_in_progress | Package work, or an unverified reboot, is under way on the same host. |
reboot_concurrency_limit, waiting_capacity | The run already has as many unverified reboots as its parallelism allows. |
reboot_baseline_unavailable, reboot_evidence_unknown, reboot_not_required | The host could not be read just before the send, or no longer reports that it needs the reboot. |
Automatic sending is stricter. It also holds a reboot when the execution is canceled or paused (execution_canceled, execution_paused), when the last queue reconcile failed (reboot_reconcile_failed), and when a remediation rule behind the run was disabled or removed (remediation_rule_withdrawn). An operator can still send the reboots of a canceled run through the same checks.
A held reboot stays scheduled and is tried again after 60 to 90 seconds. One whose window has closed is moved to the next opening.
Concurrency and failure threshold
The unverified reboots of one execution never exceed its parallelism (max_parallel_per_wave); those of a direct update never exceed the operation’s max_parallel. A host is never sent a second reboot while another is unverified.
When the execution has a failure threshold and the share of failed reboots among those sent exceeds it, the reboots of that execution pause automatically, whether the failure was in sending or in verification. The pause is recorded together with the failure that causes it, so no further reboot of the execution is claimed in between. Reboots already sent are still verified. After finding the cause, Resume reboots. The results reached before the resume no longer count; a later send or verification of any row does, including one whose earlier failure was accepted.
Reboot worker
Every backend process runs the scheduler, and the processes sharing one database share the work. Every 30 seconds one of them wins the sweep, picks the rows with work due, and handles up to four hosts at a time. Correctness does not depend on which one: each row is sent or verified only under an exclusive database claim and a conditional state change, which the API uses too, so a second process, a repeated request or a restart cannot send or verify a row twice.
A restart is recovered without assuming success:
- During a send. The row was recorded as sent before the command left, so it stays
rebootingand is never sent again on its own. Verification decides from the host. If it cannot prove a restart by the deadline, the row fails and records that the result of the send was never recorded. - During a verification. The next sweep returns the row to
rebootingand it is checked again. - Before a send was claimed. The row is still
scheduledand is picked up again.
GET /patch/update-executions/reboots/automation, shown above the reboot table on the plan page, reports whether a sweep succeeded in the last 90 seconds (healthy), when it last did, the last error of the sweep and of single rows, and the backlog among the hosts you can see: due, overdue (more than five minutes past due), held, oldest_due_at, rebooting, verification_due, failed, awaiting_evidence and paused_batches. See troubleshooting reboots.
Reboot controls
The plan page shows, for the latest execution and for earlier ones that queued reboots, each host’s decision, evidence, scheduled time, state, attempts, result and history. Reading follows the same fleet scope as the execution. Every control requires the admin or maintainer role and fleet scope over every host of the execution; direct updates use the same controls. Paths below are under /patch/update-executions/{id}/reboots.
| Control (API path) | Applies to | Result | Reason |
|---|---|---|---|
Initialize or reconcile queue (reconcile) | completed waves or a finished run | rows created or refreshed | no |
Send due reboots (dispatch-due) | due scheduled rows | sent, subject to every check | no |
Verify reboots (verify-due) | rebooting rows past the grace period | one check each: healthy, or failed if not proven now | no |
Send now ({row}/dispatch) | unsent scheduled or pending row with a known need | sent now, only while the window is open; otherwise the response carries hold | required |
Skip ({row}/skip) | unsent row | skipped; later waves no longer wait for it | required |
Reschedule ({row}/reschedule, with scheduled_for_at) | unsent row with a known need | scheduled at a future time at which the window is open | required |
Verify now ({row}/verify) | rebooting row | one check; an unproven answer before the deadline keeps it rebooting | optional |
Retry verification ({row}/retry-verification) | failed row that was sent | rebooting with a new deadline; nothing is sent. Refused after a later reboot of the host | required |
Reset ({row}/reset) | failed row | queued again, due at once if the window is open (the worker then sends it) and otherwise at its next opening. A sent reboot is reset only when the host’s current facts show the boot from before the send, and, unless the command was refused or no session opened, at least ten minutes after the send | required |
Re-check evidence ({row}/recheck-evidence) | pending row with unknown evidence | scheduled or not_required on a clear answer; otherwise unchanged | optional |
Acknowledge ({row}/acknowledge) | failed row, or unknown evidence | records who is handling it; state and later waves are unchanged | required |
Pause reboots (pause) | the execution’s reboots | nothing more is sent; verification continues | required |
Resume reboots (resume) | paused reboots | sending allowed again; results reached so far stop counting toward the threshold | required |
Cancel reboots (cancel) | the execution’s reboots | every unsent reboot becomes skipped for good, and later waves do not run | required |
Verify reboots (verify-due) is a single, final check of each row it takes: use it only once hosts should be back. Verify now and the automatic checks wait until the deadline.
A control that does not apply to the row’s current state is refused with HTTP 422 and changes nothing. Every control is written to the audit log with the person, reason, old and new state, host and time, and each row keeps the same in its history.
Pending reboots retry once you fix the window. A reboot that cannot be scheduled because the window is missing, disabled or unusable stays pending with a structured reason (window_missing, window_disabled or window_unusable). Correct the window and reconcile the queue. A window whose definition differs from what the plan was approved with is not used for its reboots, so a correction that changes the approved definition needs a new approved plan.
Credentials must declare how to escalate. Patch, rollback, and reboot dispatch honor the host credential’s sudo method (none, nopasswd, or password). If a credential has no sudo method set, or an unrecognized one, dispatch is refused with a structured condition on the row (missing_sudo_method / unknown_sudo_method) instead of silently running unprivileged and failing opaquely as non-root. Set a valid sudo method on the credential, then reset the failed row.
Rollback
If a dispatched update causes trouble, open the Rollback panel on the plan execution (Update Plans > plan > execution). Rollback is never automatic - it walks an explicit lifecycle:
- Evaluate - Praxis computes rollback feasibility for the execution.
- Request approval - a feasibility summary plus a frozen-plan preview goes to an approver; approvers vote.
- Start dispatch - once approved, rollback begins, batch by batch.
- Dispatch next batch / Cancel - you advance or stop the rollback per cohort, watching per-host state.
- Verify due - after the rollback completes, verification confirms hosts are back to the intended state.
The frozen plan preview always reflects the approval snapshot, not live package state - so an approver reviews exactly what will be undone.
Related
- Packages - inventory, available/security updates, and the support matrix for which package families are serviceable.
- Compliance Workflows - turn failing evidence into approved remediation.
- Patch remediation - turn confirmed host CVEs into governed update plans, by hand or by an operator-enabled rule: patch remediation.
- Linux support matrix: supported distributions. Hardening: production hardening.