mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-28 16:58:31 +01:00
Stop recommending Pulse or SSO login credentials for archive encryption. Use one independent passphrase form, validate exact local confirmation before prompting or sending, and clear both fields together. Keep original-passphrase imports and archive/auth contracts unchanged; align the shipped migration guide and exercise the existing consuming flow. Change-source: pulse-maintainer
258 lines
15 KiB
Markdown
258 lines
15 KiB
Markdown
# Migrating Pulse
|
|
|
|
**Create Backup** in **Settings → System → Recovery** creates an encrypted
|
|
configuration export, not a full backup of the installation. Check its scope
|
|
before moving Pulse or retiring the old server. Do not use it alone when you
|
|
need to preserve history, agent enrolment state or settings outside that scope.
|
|
|
|
## Choose the backup you need
|
|
|
|
### Configuration transfer
|
|
|
|
Use export/import to move the included settings between installations. Pulse
|
|
decrypts the export with its passphrase and saves the imported credentials with
|
|
the destination's encryption key. Do not copy individual encrypted files into
|
|
a fresh installation with a different key.
|
|
|
|
The current export format includes:
|
|
|
|
| Included | Not included |
|
|
| :--- | :--- |
|
|
| Proxmox VE, PBS and PMG connections and credentials | TrueNAS, vSphere and Machine Availability connections |
|
|
| Alert configuration, overrides and intent policies | Active alerts, incidents, notification queue and delivery history |
|
|
| Email, webhook, Apprise and external watchdog configuration | Metrics history, audit history and report schedules |
|
|
| System settings | Local login credentials, environment overrides and sessions |
|
|
| API-token records | Server-side host/Docker/Kubernetes agent inventory and enrolment state |
|
|
| SSO providers configured in Pulse | Legacy environment-configured OIDC settings, external CA/certificate files and custom RBAC roles |
|
|
| Guest metadata and notes | Host/Docker metadata, agent profiles and assignments |
|
|
| — | Organisation definitions, members, invitations and resource shares |
|
|
| — | AI settings, findings, usage and chat history |
|
|
| — | Licence files, existing Relay configuration, binaries, service definitions and update backups |
|
|
|
|
Contents depend on the version that created the export. Older formats can omit
|
|
settings included above. Imported API-token records retain their scopes and
|
|
expiry; they do not reveal the original tokens or transfer every agent's state.
|
|
SSO configuration **is included**, even though local login credentials are not.
|
|
|
|
Automated provisioning uses the same limited scope. Read the
|
|
[startup-import gate and safeguards](CONFIGURATION.md#auto-import-bootstrap)
|
|
before setting bootstrap variables: startup import requires an empty destination
|
|
data directory (apart from a regular deployment `.env`), even without
|
|
`nodes.enc`. Keep its input archive outside that directory. Normal startup after
|
|
an import error or skipped import does not confirm a successful transfer.
|
|
|
|
### Full-state recovery
|
|
|
|
If you need the same installation's history and excluded state, retain a
|
|
consistent filesystem/volume backup as well. Before stopping Pulse, confirm
|
|
that all state survives the stop: a container's writable layer or Kubernetes
|
|
`emptyDir` is not retained storage when its container or pod is replaced. If
|
|
persistence is unknown, preserve the state through your deployment's recovery
|
|
procedure first; do not delete or scale down the server to find out. See the
|
|
[Kubernetes storage and controller checks](KUBERNETES.md#proxmox-backup-safety).
|
|
|
|
Stop Pulse before taking that
|
|
backup; monitoring and alert delivery pause while it is stopped. Preserve every
|
|
effective data path, the matching `.encryption.key`, audit data and signing key,
|
|
environment files, external certificates, binaries and service/container
|
|
configuration together. Custom paths and organisation directories matter.
|
|
Copying a live database file alone can omit its sidecar files.
|
|
|
|
Keep that backup private and test recovery on an isolated destination before
|
|
retiring the source. Do not mix encrypted files and keys from different
|
|
installations or restore over a running Pulse. See [configuration
|
|
paths](CONFIGURATION.md) and [audit storage and recovery](AUDIT_LOGGING.md#storage).
|
|
The [updater's installation snapshot](AUTO_UPDATE.md#what-an-update-snapshot-contains)
|
|
is a third, limited backup; it is not a substitute for either procedure above.
|
|
|
|
## Confirm organisation and access
|
|
|
|
Before either transfer, confirm the **source and destination installation**.
|
|
For Enterprise/internal multi-organisation deployments, also confirm the
|
|
selected organisation in the **Org Switcher** and its ID in **Settings →
|
|
Organization → Overview**; similar display names are not enough. Keep that
|
|
selection unchanged until the operation finishes. A configuration export is
|
|
not an archive of every organisation on the server.
|
|
|
|
When authentication is configured, transfer requires:
|
|
|
|
| Access method | Export | Import |
|
|
| :--- | :--- | :--- |
|
|
| Signed-in browser session, default organisation | Instance administrator | Instance administrator |
|
|
| Signed-in browser session, selected non-default organisation | Organisation owner or admin | Organisation owner or admin |
|
|
| API token for the selected organisation | `settings:read` | `settings:write` |
|
|
|
|
A viewer or editor session is not sufficient. A trusted-proxy identity must
|
|
also have administrator authority. An explicitly supplied API token takes
|
|
precedence over a browser session: signing in as an administrator does not
|
|
enlarge that token's scopes or organisation binding. See the [transfer API
|
|
requirements](API.md#export-configuration).
|
|
|
|
**The archive passphrase is not a sign-in credential.** It decrypts the file;
|
|
it does not grant permission to export or replace settings. Export can contain
|
|
provider and SSO secrets, even though its API scope is `settings:read`. Keep it
|
|
private.
|
|
|
|
Import does not create organisations or transfer their members, invitations
|
|
or resource shares. Imported API-token records keep their organisation
|
|
bindings; import does not rebind them to a different destination organisation
|
|
ID. Plan the intended destination and authorised access separately using the
|
|
[organisation guide](MULTI_TENANT.md#organizations), and do not treat a successful
|
|
configuration import as proof of a complete multi-organisation migration.
|
|
|
|
## Transfer the included configuration
|
|
|
|
1. Complete the [organisation and access checks](#confirm-organisation-and-access).
|
|
On the old server, sign in and open **Settings → System → Recovery →
|
|
Create Backup**. Use a strong, unique passphrase of at least 12 characters
|
|
and enter it again in **Confirm backup passphrase**. Use a different
|
|
passphrase from your Pulse or SSO login password: this encrypts the file,
|
|
not a sign-in check. Store it separately from the downloaded file; Pulse
|
|
cannot recover a forgotten passphrase.
|
|
Keep the old instance and your separate full-state backup until validation
|
|
is complete.
|
|
2. Install Pulse at the destination using the [installation guide](INSTALL.md).
|
|
Configure destination-local administrator access before importing. Keep the
|
|
destination isolated from **monitored provider APIs, agents, notification
|
|
destinations and remote-action targets before its first start or import**.
|
|
Imported credentials can start collection immediately, including QEMU Guest
|
|
Agent requests through Proxmox. API-only is not a passive trial. Keep this
|
|
isolation for a full-state recovery trial too; give it separate restored
|
|
storage, never the source's live data volume.
|
|
3. If the destination already has useful settings, export them first. Open
|
|
**Settings → System → Recovery → Restore Backup**, select the file
|
|
and enter the original passphrase used for that file. Older backups still
|
|
accept the password or passphrase you chose when exporting, even if your
|
|
login password has since changed. Import replaces the included configuration and
|
|
API-token records; it does not merge them with the destination's records.
|
|
4. Check the result before changing DNS or agent addresses. A success message
|
|
establishes neither full recovery nor fresh monitoring. For a
|
|
reload/apply failure, timeout or duplicate-request warning, follow [the failure checks
|
|
below](#when-an-import-fails-or-times-out) before retrying or cutting over.
|
|
|
|
Keep the archive, passphrase, configuration files and credentials out of issue
|
|
threads. Use the authenticated settings form rather than a command containing
|
|
a password, API token or session cookie.
|
|
|
|
### When an import fails or times out
|
|
|
|
**A failed response is not a rollback.** Keep both installations and the
|
|
destination's pre-import backup. Distinguish these outcomes:
|
|
|
|
- **Archive rejected:** check the original file and passphrase against the
|
|
reported error. Do not delete destination data or regenerate encryption keys.
|
|
- **Saved, but not applied:** `Configuration saved, but live reload failed:`
|
|
means the imported settings are on disk, but the named live components did
|
|
not all reload. The list can name alert settings, webhook settings, email
|
|
settings or guest metadata; other components may already have applied.
|
|
Older messages `Configuration imported but failed to reload` and
|
|
`Configuration imported but failed to apply changes` also follow a saved
|
|
import. **Do not repeat the import.** It can overwrite legitimate changes
|
|
made since the first attempt; the error does not mean the old settings were
|
|
restored.
|
|
- **No final response, or HTTP 409:** a timeout, lost connection or recently
|
|
submitted/still-running warning does not establish whether the original
|
|
import saved or applied. Do not resubmit it to discover the outcome. The
|
|
duplicate-request guard is temporary and process-local, not a durable
|
|
rollback or permission to retry after waiting or restarting.
|
|
|
|
Keep the destination isolated from providers, agents, notifications and remote
|
|
actions while reconciling a migration trial. Preserve the redacted error and
|
|
check the **same destination and organisation**, using destination-local
|
|
administrator access. Review the saved settings and the reported component's
|
|
failure through normal maintenance before relying on it; a saved email or
|
|
webhook destination does not prove notification delivery. Do not restart Pulse,
|
|
send a test notification or repeat a backup just to clear the error. Resume the
|
|
[single-owner handover](#hand-over-monitoring-once) only after the failed apply
|
|
has been resolved; if its state remains uncertain, do not enable a second poller.
|
|
|
|
## Cut over and verify
|
|
|
|
### Hand over monitoring once
|
|
|
|
Validate destination-local sign-in and the imported settings while the trial
|
|
is isolated. **Fresh provider readings belong after the handover below**, not
|
|
while both servers can poll the same guests. Hiding rows, disabling alerts or
|
|
turning off backup polling does not stop guest-agent collection.
|
|
|
|
1. Plan an outage with independent monitoring and alert coverage. Do not cut
|
|
over during a backup, freeze/thaw or an unresponsive-guest incident; use
|
|
[Backup safety](VM_DISK_MONITORING.md#backup-safety) if those states are
|
|
uncertain. An OK backup alone does not establish guest recovery.
|
|
2. Using the deployment's supported controls, stop **every source Pulse server**
|
|
that monitors the transferred resources, not just its agents or browser.
|
|
First confirm retained storage as above, record prior service/replica and
|
|
automatic-update states, and prevent an updater or controller from restarting
|
|
it. Require a confirmed normal shutdown; a deleted pod, paused log display,
|
|
failed stop or unknown state is not a completed handover. Do not force-kill
|
|
or delete state to satisfy this check.
|
|
3. A stopped server does not cancel a guest-agent request already issued.
|
|
Confirm existing guest/backup operations have ended normally through
|
|
established platform/workload checks, not new guest-agent probes or an
|
|
arbitrary delay. If this is unknown, keep the destination isolated and
|
|
resolve it before enabling collection.
|
|
4. Only then allow the destination to reach the intended providers and retarget
|
|
agents. Keep the source stopped and its automation paused during the checks
|
|
below. For full-state recovery, reconcile retained pending notifications and
|
|
actions before allowing delivery or execution; a configuration-only import
|
|
does not contain those queues.
|
|
|
|
### Check the destination
|
|
|
|
- **Login and permissions:** verify destination-local administrator access and
|
|
any imported SSO provider, group mappings and callback address. Re-create
|
|
custom roles and supply external CA/certificate files if needed. Environment
|
|
overrides can take precedence over imported settings.
|
|
- **Connections and history:** check every expected platform, guest and backup
|
|
against a fresh observation, not a cached row. Re-create excluded TrueNAS,
|
|
vSphere and Machine Availability connections. Missing historical data after
|
|
configuration-only transfer is not proof that collection has failed.
|
|
- **Agents:** preserve each agent's existing identity and private credential.
|
|
With a changed server address, use the [agent retargeting
|
|
guide](UNIFIED_AGENT.md#moving-pulse-to-a-new-address) on the monitored host.
|
|
Do not create another token just for a server move or paste it into `--token`.
|
|
Confirm fresh reports and any enrolment/authorisation result; imported token
|
|
records alone do not prove that every agent is admitted. Re-create excluded
|
|
profiles and assignments before enabling remote actions.
|
|
- **Alerts and notifications:** avoid running both instances against the same
|
|
destinations. After cutover, check thresholds, schedules and one controlled
|
|
notification test with its actual delivery result. Importing destination
|
|
settings does not migrate pending notifications or incident history.
|
|
- **Licence and remaining settings:** re-activate Pro if required and verify
|
|
any excluded settings you rely on. Existing paired phones need their retained
|
|
configuration; configuration export alone is not a Mobile/Relay migration.
|
|
Relay is no longer sold; do not enable it as a new migration route.
|
|
|
|
Retire the old installation only after these checks succeed. Keep the private,
|
|
consistent pre-move backup for recovery. If validation fails, keep the source
|
|
intact and isolate the destination from providers, agents, notifications and
|
|
action targets. Confirm the destination is
|
|
stopped and cannot be automatically restarted before returning traffic or
|
|
restoring the source's recorded prior-active controls. If shutdown or in-flight
|
|
operations are uncertain, do not enable a second poller. Preserve the failed
|
|
destination for diagnosis; do not copy its changed data over the source or
|
|
re-import merely to retry. Check agent URLs and avoid two active writers.
|
|
There is no guaranteed five-minute recovery time.
|
|
|
|
## Troubleshooting
|
|
|
|
- **401 or 403 when exporting or importing:** check sign-in, the selected
|
|
organisation, management role and any API token's binding and required scope.
|
|
This is an access failure, not evidence of a wrong archive passphrase.
|
|
Do not disable authentication, change organisation headers to bypass a
|
|
denial, or repeat an import just to test permissions. If the target changed
|
|
unexpectedly or an import's result is uncertain, preserve both installations
|
|
and inspect the affected configuration before submitting it again.
|
|
- **Wrong passphrase or rejected file:** use the original export file and its
|
|
exact passphrase. Do not delete destination data or regenerate encryption
|
|
keys to make an import succeed.
|
|
- **A setting is missing:** compare it with the export scope above and the
|
|
exporting version. Use the old installation or full-state backup rather
|
|
than assuming import contained it.
|
|
- **Agents are absent:** check their primary URL, TLS trust and fresh admission
|
|
evidence using the linked guide. Do not uninstall, re-enrol or delete saved
|
|
identities just because the dashboard is empty.
|
|
- **Need help:** retain the source/destination versions, deployment types,
|
|
operation time and exact redacted error. Follow [safe
|
|
reporting](TROUBLESHOOTING.md#-getting-help); do not attach the recovery backup.
|