add joplin notes

This commit is contained in:
John Gatward committed 2026-10-29 15:28:47 +00:00
1 parent b17e750121
commit 5df77ace2a
5 files changed
+50 -13

No files matched your search

+26 -2
View File
@@ -6,6 +6,8 @@ scope: [jupiter, authentik, oidc, forward-auth, per-user-access, secrets]
sensitivity: private-infrastructure
last_reviewed: "2026-10-27"
sources:
- kind: live-inspection
reference: "PostgreSQL moved to /home/jay/data/authentik/postgres on SSD 2026-10-27; server/worker restored with unchanged image and credentials"
- kind: owner-report
reference: "Authentik deployed/Authelia retired 2026-10-16; Homarr login 2026-10-18; per-user policy and account linking still unconfirmed 2026-10-26"
- kind: repository
@@ -28,7 +30,7 @@ unknowns: [deployed-per-user-bindings-and-jay-superuser-membership, per-applicat
## Per-user application access
- All 15 applications bind existing user `jay` at order `0`; `policy_engine_mode: any`.
- All 16 applications bind existing user `jay` at order `0`; `policy_engine_mode: any`.
- Add others under **Policy / Group / User Bindings**: enabled, non-negated **User** binding, order `10+`. Unassigned users are denied; manual higher-order bindings survive reapplication.
- Blueprint replaces custom `admins`, `development`, `clients` groups; does not create users or change passwords/MFA/app-native roles.
- **Keep Jay in the built-in superuser group** (`authentik Admins`); application admission is not administration.
@@ -77,6 +79,28 @@ unknowns: [deployed-per-user-bindings-and-jay-superuser-membership, per-applicat
- Credential fallback bypasses Authentik MFA/access policy for password logins.
- Internal `docker-api` proxy: only proxy mounts socket; no published API/Traefik attachment; inventory/logs allowed, `POST=0`, lifecycle controls disabled. Redeploy the whole stack.
## Native SAML: Joplin
- Repository configuration: `https://notes.umbra.mom`, Authentik application
`joplin`, shared MFA authorization flow and per-user admission.
- Signed assertions and responses; required attributes `email` and `displayName`.
- ACS: `https://notes.umbra.mom/api/saml`; entity ID/audience:
`https://notes.umbra.mom`.
- Joplin reads `/data/joplin/saml/{sp.xml,idp.xml}` through a read-only bind.
Copy the SP file from `stacks/joplin/saml/sp.xml`; download IdP metadata from
`https://auth.umbra.mom/application/saml/joplin/metadata/` after applying the
blueprint. Refresh the metadata after signing-certificate rotation.
- Clients use **Joplin Server (SAML)**, not the password-based sync target.
No forward-auth on the API. Local password login is disabled by default.
- First SAML login creates a non-admin Joplin account. Existing password accounts
with the same email are not automatically linked; preserve their data and
plan migration before switching.
- Temporary `JOPLIN_LOCAL_AUTH_ENABLED=true` permits recovery-admin login but
bypasses Authentik; remove it and redeploy after administration.
- Session cleanup is disabled to avoid repeated interactive sync logins.
Removing an Authentik binding alone does not revoke Joplin sessions; disable
the Joplin user and revoke their sessions too.
## Forward-auth
- Protected apps: Backrest (`backups`), Notes, Prowlarr, Radarr, Sonarr, qBittorrent.
@@ -100,7 +124,7 @@ X-authentik-meta-app, X-authentik-meta-version
| Host path | Container use |
| --- | --- |
| `/data/authentik/postgres` | PostgreSQL `/var/lib/postgresql/data` |
| `/home/jay/data/authentik/postgres` | PostgreSQL `/var/lib/postgresql/data`; SSD since 2026-10-27 |
| `/data/authentik/data` | Server + worker `/data` |
| `/data/authentik/blueprints` | Worker `/blueprints/custom:ro` |