18 Commits

Author SHA1 Message Date
renovate[bot] d019095ed3 chore(deps): update helm chart cloudnative-pg to v0.29.0 2026-09-10 16:49:18 +00:00
Ruben Hensen 20cf119dbd Extend authentik + FreshRSS session lifetimes
Authentik's default-authentication-login stage ships with
session_duration: seconds=0, so the SSO session died with the browser.
New blueprint raises it to 30 days for every app on that flow.

FreshRSS runs OIDC through Apache mod_auth_openidc, whose defaults are a
5 minute inactivity timeout and a ~7.5 hour max duration in a non-persistent
cookie. Bumped to a 30 day sliding inactivity window (refreshed on every
request) with a 90 day hard cap, and made the cookie persistent so it
survives a browser restart.
2026-09-03 15:21:07 +02:00
Ruben Hensen ec5405fc29 bolletjestrui: deploy main-10268f1 (routes, voting, push, ride uploads)
Adds the VAPID keypair for web push and raises the ingress body limit to 25m to
match the app's BODY_SIZE_LIMIT, since a bulk route import posts every GPX in one
request.

The VAPID env refs are optional:true on purpose — a missing key in a secretKeyRef
puts the pod in CreateContainerConfigError, and the app already handles absent
keys by sending no notifications.
2026-08-15 17:55:37 +02:00
Ruben Hensen b50f8dc5b6 bolletjestrui: deploy main-8f17b5d (editable etappe titles) 2026-07-24 11:36:21 +02:00
Ruben Hensen 06dd19e5de bolletjestrui: deploy main-878b462 (select chevron fix) 2026-07-24 11:13:54 +02:00
Ruben Hensen 29847b1f12 bolletjestrui: deploy main-cca932c (global scoring setting) 2026-07-24 10:55:50 +02:00
Ruben Hensen 52b58835c0 bolletjestrui: deploy main-b3bfe55 + BODY_SIZE_LIMIT 25M (20MB profile photos) 2026-07-23 23:20:57 +02:00
Ruben Hensen 1d7d625d53 bolletjestrui: deploy main-7e1236d (mobile hamburger menu) 2026-07-23 22:27:43 +02:00
Ruben Hensen a3dadcd50f bolletjestrui: deploy main-923b40f (climb-matching CSV streams fix) 2026-07-23 21:09:47 +02:00
Ruben Hensen 095d82af02 bolletjestrui: bump image to main-60c604c 2026-07-22 12:08:41 +02:00
Ruben Hensen aabe5ad349 bolletjestrui: bump image to main-1a46d10 2026-07-22 11:55:40 +02:00
Ruben Hensen 851f9e4a20 bolletjestrui: bump image to main-041b4e0 2026-07-22 11:40:52 +02:00
Ruben Hensen 0b5eb69f84 bolletjestrui: bump image to main-1e286f5 2026-07-22 11:31:41 +02:00
Ruben Hensen 15d7916e81 bolletjestrui: bump image to main-d21edde 2026-07-22 11:03:46 +02:00
Ruben Hensen d2f5d5eac6 bolletjestrui: bump image to main-86048a8
Even more generous detection; NC climbs now score a point.
2026-07-21 16:53:18 +02:00
Ruben Hensen c0b4a7183b bolletjestrui: bump image to main-b5baf1f
Generous climb detection (min length/grade/score lowered, Cat 4 floor)
and the climb category editor fix.
2026-07-21 16:36:59 +02:00
Ruben Hensen 8e60f6796a node001: tunnel vic.rubenhensen.nl to the home cluster
Add vic.rubenhensen.nl to tunneledHosts so the edge box does SNI
passthrough on :443 and the :80 ACME/redirect vhost for it, matching
the DNS record. Without this, vic falls through to Stalwart on :8443
and cert-manager's HTTP-01 challenge can't be reached.
2026-07-21 15:29:49 +02:00
Ruben Hensen f13417bc8f Add bolletjestrui app + vic.rubenhensen.nl
Deploys ghcr.io/rubenhensen/bolletjestrui at vic.rubenhensen.nl:
- bolletjestrui/ folder: deployment (SQLite on a PVC, migrate-on-start,
  ORIGIN + raised BODY_SIZE_LIMIT for GPX uploads), service, nginx
  ingress with prod-cluster-issuer TLS, PVC, and a Vault ExternalSecret
  (kv/bolletjestrui: site_password, admin_password, key_secret).
- apps/templates/bolletjestrui-folder.yaml: ArgoCD Application.
- dns: vic A record -> 46.224.26.65 (ingress LB).
- renovate: watch bolletjestrui/ for image tag bumps.

Committed locally, not pushed: needs the Vault secret created and the
ghcr package made public first.
2026-07-21 14:33:31 +02:00
14 changed files with 284 additions and 2 deletions
+12
View File
@@ -106,6 +106,9 @@ spec:
- name: blueprint-actualbudget
configMap:
name: authentik-blueprint-actualbudget
- name: blueprint-session
configMap:
name: authentik-blueprint-session
volumeMounts:
- name: blueprint-vault
mountPath: /blueprints/custom/vault-oidc.yaml
@@ -125,6 +128,9 @@ spec:
- name: blueprint-actualbudget
mountPath: /blueprints/custom/actualbudget-proxy.yaml
subPath: actualbudget-proxy.yaml
- name: blueprint-session
mountPath: /blueprints/custom/session-duration.yaml
subPath: session-duration.yaml
ingress:
enabled: true
ingressClassName: nginx
@@ -156,6 +162,9 @@ spec:
- name: blueprint-actualbudget
configMap:
name: authentik-blueprint-actualbudget
- name: blueprint-session
configMap:
name: authentik-blueprint-session
volumeMounts:
- name: blueprint-vault
mountPath: /blueprints/custom/vault-oidc.yaml
@@ -175,6 +184,9 @@ spec:
- name: blueprint-actualbudget
mountPath: /blueprints/custom/actualbudget-proxy.yaml
subPath: actualbudget-proxy.yaml
- name: blueprint-session
mountPath: /blueprints/custom/session-duration.yaml
subPath: session-duration.yaml
postgresql:
enabled: false
redis:
+21
View File
@@ -0,0 +1,21 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: bolletjestrui
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
repoURL: https://github.com/rubenhensen/k8scd.git
targetRevision: HEAD
path: bolletjestrui
destination:
server: https://kubernetes.default.svc
namespace: bolletjestrui
syncPolicy:
syncOptions:
- CreateNamespace=true
automated:
selfHeal: true
+1 -1
View File
@@ -10,7 +10,7 @@ spec:
source:
chart: cloudnative-pg
repoURL: https://cloudnative-pg.github.io/charts
targetRevision: 0.23.2
targetRevision: 0.29.0
helm:
values: |
# Default values are fine
+16
View File
@@ -11,6 +11,22 @@ Authentik is deployed as the central identity provider, providing OIDC and LDAP
- `blueprint-ldap.yaml` — LDAP provider (base DN: `DC=ldap,DC=goauthentik,DC=io`)
- `blueprint-mail-oidc.yaml` — OAuth2/OIDC provider for Stalwart mail
- `blueprint-vault-oidc.yaml` — OIDC provider for Vault
- `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-session-duration.yaml` — Session lifetime of the default authentication flow
## Session lifetime
Authentik ships the login stage of `default-authentication-flow` with
`session_duration: seconds=0`, i.e. the SSO session dies when the browser closes.
`blueprint-session-duration.yaml` raises this to 30 days for every app that uses
that flow (FreshRSS, ArgoCD, Vault, Actual Budget, mail).
The expiry is **absolute** — Authentik does not extend a session on activity. A
sliding window has to come from the application itself; FreshRSS does this via
`OIDC_SESSION_INACTIVITY_TIMEOUT` (see `freshrss/freshrss-deployment.yaml`), which
Apache mod_auth_openidc refreshes on every request.
## LDAP Outpost
+27
View File
@@ -0,0 +1,27 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: authentik-blueprint-session
data:
session-duration.yaml: |
version: 1
metadata:
name: Session duration
entries:
# Overrides the login stage of the built-in `default-authentication-flow`,
# which every OIDC/proxy provider in this cluster authenticates against.
# authentik ships this stage with `session_duration: seconds=0`, which means
# "until the browser is closed" — that is why re-logins were so frequent.
#
# Note: authentik's session expiry is absolute (counted from login), it does
# not slide on activity. The sliding window lives in the applications, e.g.
# OIDC_SESSION_INACTIVITY_TIMEOUT in freshrss/freshrss-deployment.yaml.
- model: authentik_stages_user_login.userloginstage
state: present
identifiers:
name: default-authentication-login
attrs:
session_duration: days=30
# Uncomment to show a "Remember me on this device" checkbox that adds
# this offset on top of session_duration when ticked (0 = hidden).
# remember_me_offset: days=60
@@ -0,0 +1,98 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: bolletjestrui
name: bolletjestrui
spec:
replicas: 1
selector:
matchLabels:
app: bolletjestrui
strategy:
type: Recreate
template:
metadata:
labels:
app: bolletjestrui
spec:
containers:
- image: ghcr.io/rubenhensen/bolletjestrui:main-10268f1
name: bolletjestrui
ports:
- containerPort: 3000
protocol: TCP
env:
- name: DATABASE_URL
value: /app/data/bolletjestrui.db
- name: ORIGIN
value: https://vic.rubenhensen.nl
- name: PROTOCOL_HEADER
value: x-forwarded-proto
- name: HOST_HEADER
value: x-forwarded-host
# GPX routes and profile photos (up to 20 MB); raise adapter-node's 512K default
- name: BODY_SIZE_LIMIT
value: "25M"
- name: TZ
value: Europe/Amsterdam
- name: SITE_PASSWORD
valueFrom:
secretKeyRef:
name: bolletjestrui-secrets
key: site_password
- name: ADMIN_PASSWORD
valueFrom:
secretKeyRef:
name: bolletjestrui-secrets
key: admin_password
- name: KEY_SECRET
valueFrom:
secretKeyRef:
name: bolletjestrui-secrets
key: key_secret
# Push notifications. optional:true is load-bearing: without it a missing
# key leaves the pod in CreateContainerConfigError and the site is down,
# which would make deploying this depend on the Vault entries landing
# first. The app already treats absent VAPID keys as "send nothing".
- name: VAPID_PUBLIC_KEY
valueFrom:
secretKeyRef:
name: bolletjestrui-secrets
key: vapid_public_key
optional: true
- name: VAPID_PRIVATE_KEY
valueFrom:
secretKeyRef:
name: bolletjestrui-secrets
key: vapid_private_key
optional: true
- name: VAPID_SUBJECT
value: mailto:ruben.hensen@protonmail.com
resources:
requests:
memory: "128Mi"
cpu: "50m"
limits:
memory: "512Mi"
cpu: "500m"
readinessProbe:
httpGet:
path: /login
port: 3000
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /login
port: 3000
initialDelaySeconds: 15
periodSeconds: 20
volumeMounts:
- mountPath: /app/data
name: data
restartPolicy: Always
volumes:
- name: data
persistentVolumeClaim:
claimName: bolletjestrui-data
+13
View File
@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: bolletjestrui
name: bolletjestrui
spec:
ports:
- name: "3000"
port: 3000
targetPort: 3000
selector:
app: bolletjestrui
@@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
app: bolletjestrui
name: bolletjestrui-data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi
+36
View File
@@ -0,0 +1,36 @@
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: bolletjestrui-secrets
spec:
secretStoreRef:
name: vault-backend
kind: ClusterSecretStore
refreshInterval: 15m
target:
name: bolletjestrui-secrets
creationPolicy: Owner
data:
- secretKey: site_password
remoteRef:
key: kv/bolletjestrui
property: site_password
- secretKey: admin_password
remoteRef:
key: kv/bolletjestrui
property: admin_password
- secretKey: key_secret
remoteRef:
key: kv/bolletjestrui
property: key_secret
# web-push keypair for the "de route is gekozen" notification.
# Generate once with `npx web-push generate-vapid-keys` and never rotate it:
# a new key invalidates every subscription on everyone's phone.
- secretKey: vapid_public_key
remoteRef:
key: kv/bolletjestrui
property: vapid_public_key
- secretKey: vapid_private_key
remoteRef:
key: kv/bolletjestrui
property: vapid_private_key
+27
View File
@@ -0,0 +1,27 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: bolletjestrui-ingress
annotations:
cert-manager.io/cluster-issuer: prod-cluster-issuer
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
nginx.ingress.kubernetes.io/ssl-passthrough: "false"
# matches the app's BODY_SIZE_LIMIT: a bulk route import posts every GPX at once
nginx.ingress.kubernetes.io/proxy-body-size: "25m"
spec:
ingressClassName: nginx
rules:
- host: vic.rubenhensen.nl
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: bolletjestrui
port:
number: 3000
tls:
- secretName: letsencrypt-prod
hosts:
- vic.rubenhensen.nl
+4
View File
@@ -59,6 +59,10 @@ records:
expire: 300
type: A
content: "46.224.26.65"
- name: "vic"
expire: 300
type: A
content: "46.224.26.65"
- name: "@"
expire: 300
type: MX
+14
View File
@@ -56,6 +56,20 @@ spec:
value: "openid email profile"
- name: OIDC_X_FORWARDED_HEADERS
value: X-Forwarded-Port X-Forwarded-Proto X-Forwarded-Host
# Session handling for the Apache mod_auth_openidc layer that guards /i/.
# Defaults are 5 min inactivity / ~7.5 h max, which is what caused the
# constant bounces back to authentik.
# Sliding window: refreshed on every request, so any visit within the
# period extends it by another 30 days.
- name: OIDC_SESSION_INACTIVITY_TIMEOUT
value: "2592000" # 30 days
# Hard cap, counted from login and never extended.
- name: OIDC_SESSION_MAX_DURATION
value: "7776000" # 90 days
# ":persistent" makes the session cookie survive a browser restart
# (its expiry tracks OIDC_SESSION_INACTIVITY_TIMEOUT).
- name: OIDC_SESSION_TYPE
value: "server-cache:persistent"
- name: TZ
value: Europe/Amsterdam
image: freshrss/freshrss:latest
+1
View File
@@ -20,6 +20,7 @@ let
"blog.rubenhensen.nl"
"serpbear.rubenhensen.nl"
"git.rubenhensen.nl"
"vic.rubenhensen.nl"
];
sniMapEntries =
+2 -1
View File
@@ -16,7 +16,8 @@
"kubernetes": {
"managerFilePatterns": [
"/apps/templates/.+\\.yaml$/",
"/serpbear/.+\\.yaml$/"
"/serpbear/.+\\.yaml$/",
"/bolletjestrui/.+\\.yaml$/"
]
},
"customManagers": [