[main]: document authentik

This commit is contained in:
John Gatward committed 2026-10-16 13:05:11 +01:00
1 parent 4f85b781ea
commit 97f6dc28ae
8 files changed
+382 -76

No files matched your search

+39 -9
View File
@@ -4,7 +4,7 @@ id: home-server.backups
type: reference
scope: [jupiter, backrest, restic, google-drive, recovery]
sensitivity: private-infrastructure
last_reviewed: "2026-10-06"
last_reviewed: "2026-10-16"
sources:
- kind: owner-report
reference: "Backrest plan JSON, destination, key custody and no restore test, 2026-10-06"
@@ -12,14 +12,18 @@ sources:
reference: "Updated four-service Backrest plan and deployed Portainer bind mount/container name, 2026-10-06"
- kind: owner-report
reference: "Only restic key has independent custody; no independent credential recovery or backup/restore evidence, 2026-10-06"
- kind: owner-report
reference: "Updated six-directory Backrest plan including Authentik and Wardrowbe, deployed Authentik hook container names confirmed; independent recovery custody unchanged, 2026-10-16"
- kind: repository
repository: jupiter-stacks
revision: 610e325ef6a98850511ce7a089b0b9a77bfecf15
revision: d09df456ad331b8beb9a40615114ea8aae2dced5
paths:
- stacks/backrest/docker-compose.yml
- stacks/gitea/docker-compose.yml
- stacks/paperless-ngx/docker-compose.yml
- stacks/vaultwarden/docker-compose.yml
- stacks/authentik/docker-compose.yml
- stacks/wardrowbe/docker-compose.yml
related: [home-server.reference, home-server.storage, home-server.portainer, home-server.authentication, home-server.operations]
update_triggers: [backup-plan-change, destination-change, hook-change, credential-change, restore-test]
unknowns:
@@ -47,19 +51,24 @@ Backrest bind-mounts host `/data` at container `/userdata:ro`.
| Host source | Plan path |
| --- | --- |
| `/data/authentik` | `/userdata/authentik` |
| `/data/gitea` | `/userdata/gitea` |
| `/data/paperless-ngx` | `/userdata/paperless-ngx` |
| `/data/portainer` | `/userdata/portainer` |
| `/data/vaultwarden` | `/userdata/vaultwarden` |
| `/data/wardrowbe` | `/userdata/wardrowbe` |
Case-insensitive exclusion: `/userdata/gitea/gitea/packages`.
Case-insensitive exclusions: `/userdata/gitea/gitea/packages`,
`/userdata/wardrowbe/redis`.
`excludes: []`; CLI `--skip-if-unchanged` supplied despite
plan `skipIfUnchanged: false`. Unchanged runs may create no snapshot.
## Consistency hooks
Stop timeout `120s`; chains use `&&`. Errors: `ON_ERROR_FATAL`,
except Portainer restart (`ON_ERROR_IGNORE`).
except Portainer, Wardrowbe and Authentik restart hooks (`ON_ERROR_IGNORE`).
Rows below group the supplied hooks by service; the plan lists Wardrowbe's
hooks before Authentik's.
| Event | Ordered commands / containers |
| --- | --- |
@@ -71,11 +80,29 @@ except Portainer restart (`ON_ERROR_IGNORE`).
| `SNAPSHOT_END`, `SNAPSHOT_ERROR` | Start `gitea_db` -> `gitea` -> `gitea_runner` |
| `SNAPSHOT_END`, `ANY_ERROR` | Start `vaultwarden` |
| `SNAPSHOT_END`, `SNAPSHOT_ERROR` | Start `portainer`; ignore hook failure |
| `SNAPSHOT_START` | Stop `wardrowbe-frontend`, `wardrowbe-backend`, `wardrowbe-worker`, `wardrowbe-image-worker` in one command -> stop `wardrowbe-postgres`, `wardrowbe-redis` |
| `SNAPSHOT_END`, `SNAPSHOT_ERROR` | Start `wardrowbe-postgres`, `wardrowbe-redis` -> wait for PostgreSQL and Redis -> start backend, worker, image-worker, frontend; ignore hook failure |
| `SNAPSHOT_START` | Stop `authentik-server`, `authentik-worker` in one command -> stop `authentik-postgresql` |
| `SNAPSHOT_END`, `SNAPSHOT_ERROR` | Start `authentik-postgresql` -> wait for PostgreSQL -> start `authentik-server`, `authentik-worker`; ignore hook failure |
Cold filesystem copies of applications/databases; no database dumps supplied.
Broker stays running. `docker start` does not wait for database readiness.
Hook failure can leave services stopped; recovery is not demonstrated.
Portainer restart failure does not fail the backup operation.
Paperless broker stays running. Paperless/Gitea restart chains use `docker start`
without waiting for database readiness.
Wardrowbe waits inside the containers using `pg_isready -U wardrowbe -d wardrowbe`
then `redis-cli ping`; Authentik uses `pg_isready -U authentik -d authentik`.
These are `until` loops with two-second sleeps and no explicit deadline in the
commands. Starting multiple application containers in one command does not
establish application readiness or dependency ordering.
The owner confirms the three Authentik hook names match deployed containers.
Repository Compose explicitly names only `authentik-server`; worker/database
names must be preserved or the hooks updated when recreating the stack.
Hook failure can leave services stopped; Portainer, Wardrowbe and Authentik
restart failures do not fail the backup operation. Authentik downtime also
interrupts new OIDC logins and proxy-protected access, including the Backrest UI.
Application readiness and recovery are not demonstrated by the plan.
## Backrest state
@@ -90,8 +117,11 @@ Portainer restart failure does not fail the backup operation.
## Recovery limits
Only the four listed directories are covered. No supplied coverage for Authelia,
Traefik, Backrest configuration, Docker named volumes, OS, or Mercury.
Only the six listed directories are covered, subject to the exclusions above.
Authentik identity/MFA state and Wardrowbe PostgreSQL/uploads are included;
Wardrowbe Redis is excluded. SSD-backed Wardrowbe model/cache paths are outside
the plan. No supplied coverage for Traefik, Backrest configuration, Docker named
volumes, OS, or Mercury. Authelia is retired; old data retention is unconfirmed.
Full-host recovery requires independently retrievable repository credentials,
configuration and restic key. Key custody alone does not establish recoverability.