Skip to content

feat(canopy): run hooks after a restore - #831

Merged
dannash100 merged 2 commits into
feat/blob-store-backupsfrom
feat/podman-secret-backups
Aug 19, 2026
Merged

feat(canopy): run hooks after a restore#831
dannash100 merged 2 commits into
feat/blob-store-backupsfrom
feat/podman-secret-backups

Conversation

@dannash100

Copy link
Copy Markdown
Contributor

Stacked on #810. Paired restore lays a follower's data back down, but nothing can act on it afterwards: pre/post hooks only run on backup.

That is enough for postgres, whose method does its own stop/swap/start, and not enough for anything a service reads only at start. The case in hand is Tamanu's config key: it lives in podman's secret store, podman materialises a secret into a container when the container starts, so a restored store is inert until the units restart.

  • [[post_restore]] hooks, run after the def's own restore, fail-fast.
  • Both restore paths (repository and held capture) go through one place.
  • Per-def, so in a restored cycle a follower's hooks run after the follower's data lands.

@passcod

passcod commented Aug 18, 2026

Copy link
Copy Markdown
Member

might as well support pre restore too?

@dannash100
dannash100 merged commit 92146df into feat/blob-store-backups Aug 19, 2026
12 checks passed
@dannash100
dannash100 deleted the feat/podman-secret-backups branch August 19, 2026 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants