mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-11-15 14:29:09 +01:00
docs: bring the authentik README up to date
This commit is contained in:
1 parent
d17e78130d
commit
3c4a8cc8db
2 files changed
+31
-6
No files matched your search
+26
-3
@@ -14,7 +14,11 @@ Authentik is deployed as the central identity provider, providing OIDC and LDAP
|
||||
- `blueprint-argocd-oidc.yaml` — OIDC provider for ArgoCD
|
||||
- `blueprint-freshrss-oidc.yaml` — OIDC provider for FreshRSS
|
||||
- `blueprint-actualbudget-proxy.yaml` — Proxy provider for Actual Budget
|
||||
- `blueprint-longhorn-oidc.yaml` — OIDC provider for Longhorn (Envoy Gateway SecurityPolicy)
|
||||
- `blueprint-scouting.yaml` — immich's login with Scouts Online, see docs/immich-scouts-online.md
|
||||
- `blueprint-session-duration.yaml` — Session lifetime of the default authentication flow
|
||||
- **NetworkPolicies** (`networkpolicy.yaml`) — the pods reach each other, DNS and the internet,
|
||||
not the LAN or other namespaces; the worker and the database also reach the API server
|
||||
|
||||
## Session lifetime
|
||||
|
||||
@@ -30,9 +34,23 @@ Apache mod_auth_openidc refreshes on every request.
|
||||
|
||||
## LDAP Outpost
|
||||
|
||||
The LDAP outpost exposes Authentik's user directory over LDAP. It is used by:
|
||||
- **SOGo-mail** (in-cluster) — connects via `ak-outpost-ldap-outpost.authentik.svc.cluster.local:3389`
|
||||
- **Stalwart** (NixOS, external) — connects via `ldap.rubenhensen.nl:389`
|
||||
The LDAP outpost exposes Authentik's user directory over LDAP. It is used by
|
||||
**Stalwart** (NixOS on node001), which connects via `ldap.rubenhensen.nl:389`.
|
||||
The outpost itself talks to the server through `https://authentik.rubenhensen.nl/`.
|
||||
|
||||
Authentik's worker deploys the outpost and keeps its version equal to the
|
||||
server's. After the upgrades to 2026.5 and 2026.8 it didn't follow on its
|
||||
own; this rolls it over:
|
||||
|
||||
```bash
|
||||
kubectl -n authentik exec deploy/authentik-worker -- ak shell -c '
|
||||
from authentik.outposts.models import Outpost
|
||||
from authentik.outposts.tasks import outpost_controller
|
||||
outpost_controller.send(Outpost.objects.get(name="LDAP outpost").pk)'
|
||||
```
|
||||
|
||||
Upgrades go one release at a time (2026.2 → 2026.5 → 2026.8); since 2026.8
|
||||
authentik refuses to skip one.
|
||||
|
||||
### NodePort Service
|
||||
|
||||
@@ -87,3 +105,8 @@ microk8s config > ~/.kube/config
|
||||
```
|
||||
|
||||
**Note:** This must be re-applied after MicroK8s upgrades or cert rotations, as MicroK8s may regenerate the CA without the extension. The fix needs to run on every node in the cluster.
|
||||
|
||||
Checked 2026-10-25: the CA from this fix (`CN=microk8s-ca`, 2026-03-21, valid
|
||||
until 2036) still has the extension after the refreshes to 1.34, 1.35 and
|
||||
1.36. Check with
|
||||
`openssl x509 -in /var/snap/microk8s/current/certs/ca.crt -noout -ext keyUsage`.
|
||||
+5
-3
@@ -344,9 +344,11 @@ step after that, if downtime starts to matter.
|
||||
- [ ] opti1, with sudo: `/root/backend-*` and `/root/dqlite-pre-*` (from
|
||||
before 1.33, 1.34 and the VACUUM; 1.34 migrated the schema, so none of
|
||||
them fits 1.36) and `~/containerd.bak` (root-owned, from 2025-02)
|
||||
- [ ] `~/cadir` on opti1 holds a CA key and certificate from 2026-03-21
|
||||
that are not microk8s's current CA. Find out whether anything still
|
||||
trusts it; if not, delete it
|
||||
- [ ] `rm -r ~/cadir` on opti1: a CA key and certificate made four minutes
|
||||
before the real keyUsage fix on 2026-03-21 (OpenSSL's default subject
|
||||
"Internet Widgits Pty Ltd", valid for a year) and never installed;
|
||||
microk8s's CA is the `CN=microk8s-ca` one from 19:16 that day, valid
|
||||
until 2036
|
||||
|
||||
## wishlist.txt (2026-01-25)
|
||||
|
||||
|
||||
Reference in new issue
Block a user