Compare commits

...
5 Commits
Author SHA1 Message Date
Ruben Hensen 96c13c63f7 authentik: serve auth.scoutingmbg.nl
A Gateway listener with its own certificate, the authentik route on both
hostnames, and an authentik brand for auth.scoutingmbg.nl that logs in
through Scouts Online and then sends people to the photos. The
authentik.rubenhensen.nl brand stays as it is.
2026-10-24 18:52:24 +02:00
Ruben Hensen 70151b0ef4 authentik: certificate for auth.scoutingmbg.nl
The login of the Scouting MBG photos moves to the group's own domain; the Gateway listener follows once the certificate is there.
2026-10-24 18:51:27 +02:00
Ruben Hensen f5e8b1e633 node001: tunnel auth.scoutingmbg.nl to the home cluster
The group's DNS points auth.scoutingmbg.nl at rubenhensen.nl too; it will carry the authentik login for immich.
2026-10-24 17:58:34 +02:00
Ruben Hensen ae2e5ad9fa docs: record the foto.scoutingmbg.nl DNS change 2026-10-24 17:48:35 +02:00
Ruben Hensen 8cf87483d6 node001: tunnel foto.scoutingmbg.nl to the home cluster
The group's DNS now points foto.scoutingmbg.nl at rubenhensen.nl, which is
this server, instead of mbg.hensen.io (the home IP). Resolvers that had
picked up the change got node001's own certificate and no immich. Add the
host to the SNI passthrough and the port 80 proxy like the other tunneled
hosts, so it works through either record.
2026-10-24 17:47:14 +02:00
6 changed files with 62 additions and 3 deletions

No files matched your search

+12 -1
View File
@@ -94,6 +94,16 @@ data:
target: !KeyOf immich-app
attrs:
group: !KeyOf mbg-leden
# auth.scoutingmbg.nl: straight to Scouts Online, then on to the
# photos. Other domains keep the default brand.
- model: authentik_brands.brand
state: present
identifiers:
domain: auth.scoutingmbg.nl
attrs:
branding_title: Scouting MBG
flow_authentication: !Find [authentik_flows.flow, [slug, scouts-online-login]]
default_application: !KeyOf immich-app
- model: authentik_policies.policybinding
state: present
identifiers:
@@ -220,7 +230,8 @@ data:
policy: !KeyOf sso-only
# SOL only lets in members of the organisations picked in its
# connection, and only sends roles within them. The callback URL is
# https://authentik.rubenhensen.nl/source/oauth/callback/scouts-online/
# https://auth.scoutingmbg.nl/source/oauth/callback/scouts-online/ (and
# authentik.rubenhensen.nl, from before auth.scoutingmbg.nl existed)
- model: authentik_sources_oauth.oauthsource
id: source
state: present
+17
View File
@@ -14,3 +14,20 @@ spec:
usages:
- digital signature
- key encipherment
---
# The login of the Scouting MBG photos (immich), see blueprint-scouting.yaml.
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: auth-scoutingmbg-tls
spec:
secretName: auth-scoutingmbg-tls
dnsNames:
- auth.scoutingmbg.nl
issuerRef:
group: cert-manager.io
kind: ClusterIssuer
name: prod-cluster-issuer
usages:
- digital signature
- key encipherment
+7
View File
@@ -7,8 +7,12 @@ spec:
- name: homelab
namespace: envoy-gateway-system
sectionName: https-authentik
- name: homelab
namespace: envoy-gateway-system
sectionName: https-auth-scoutingmbg
hostnames:
- authentik.rubenhensen.nl
- auth.scoutingmbg.nl
rules:
- backendRefs:
- name: authentik-server
@@ -32,3 +36,6 @@ spec:
- group: ""
kind: Secret
name: authentik-tls
- group: ""
kind: Secret
name: auth-scoutingmbg-tls
+9 -2
View File
@@ -108,8 +108,15 @@ C. Switch
## Open points
- `foto.scoutingmbg.nl` is a CNAME to `mbg.hensen.io`; hensen.io is about
to expire. Keep it until the group's DNS points foto at scoutingmbg.nl.
- DNS (2026-10-24): the group's DNS host (ns1/ns2.webhosted.nl) changed
foto.scoutingmbg.nl from a CNAME to `mbg.hensen.io` (the home IP) to a
CNAME to `rubenhensen.nl`, which is node001 on Hetzner. Only ns2 has it
(serial 2026102471); ns1 is stuck on serial 2026060640 from June and
still answers `mbg.hensen.io`. node001 now tunnels foto.scoutingmbg.nl to
the home cluster like its other hosts, so both answers work. Keep
hensen.io until ns1 has caught up; ask the DNS host to fix ns1, and
decide whether foto should stay behind node001 or point straight home
(CNAME `scoutingmbg.nl`)
- Public shared links become public for real once sol-auth is gone.
- Photos leiding back up from their phones stay private until they add
them to a shared album.
+14
View File
@@ -58,6 +58,20 @@ spec:
selector:
matchLabels:
kubernetes.io/metadata.name: authentik
- name: https-auth-scoutingmbg
protocol: HTTPS
port: 443
hostname: auth.scoutingmbg.nl
tls:
certificateRefs:
- name: auth-scoutingmbg-tls
namespace: authentik
allowedRoutes:
namespaces:
from: Selector
selector:
matchLabels:
kubernetes.io/metadata.name: authentik
- name: https-vic
protocol: HTTPS
port: 443
+3
View File
@@ -19,6 +19,9 @@ let
"serpbear.rubenhensen.nl"
"git.rubenhensen.nl"
"vic.rubenhensen.nl"
# The group's DNS points these at rubenhensen.nl, i.e. here
"foto.scoutingmbg.nl"
"auth.scoutingmbg.nl"
];
sniMapEntries =