feat(auth): hub sur le domaine HTTPS — routes publiques + SSO Guacamole

(Commits restés orphelins après le squash-merge de #88, poussés trop tard.)
- IngressRoutes websecure+TLS : auth./portail.funklab.online
- Guacamole : endpoints OIDC basculés sur https://auth./portail.funklab.online
  (les ports 9080/9081 restent un chemin réseau valide)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
alkatrazz 2026-07-07 16:25:10 +02:00
parent cd0dacbc9a
commit db408aa118
3 changed files with 41 additions and 6 deletions

View file

@ -0,0 +1,18 @@
# Accès public HTTPS — auth.funklab.online (cert Let's Encrypt auto).
# S'ajoute à la route interne auth.lab.local (non destructif).
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: authentik-public
namespace: auth
spec:
entryPoints:
- websecure
routes:
- match: Host(`auth.funklab.online`)
kind: Rule
services:
- name: authentik
port: 9000
tls:
certResolver: letsencrypt

View file

@ -43,19 +43,18 @@ spec:
- name: WEBAPP_CONTEXT
value: "ROOT"
# --- SSO OIDC → Authentik (app « guacamole » dans l'UI Authentik) ---
# Endpoints navigateur : URL publique kaya.freeboxos.fr (une seule URL
# canonique, LAN inclus — hairpin NAT Freebox) ; JWKS : appel
# serveur→serveur via le Service interne
# URL canonique = domaine HTTPS (auth./portail.funklab.online), LAN inclus
# (split-horizon dnsmasq). JWKS : appel serveur→serveur via le Service interne.
- name: OPENID_AUTHORIZATION_ENDPOINT
value: "http://kaya.freeboxos.fr:9081/application/o/authorize/"
value: "https://auth.funklab.online/application/o/authorize/"
- name: OPENID_JWKS_ENDPOINT
value: "http://authentik.auth.svc.cluster.local:9000/application/o/guacamole/jwks/"
- name: OPENID_ISSUER
value: "http://kaya.freeboxos.fr:9081/application/o/guacamole/"
value: "https://auth.funklab.online/application/o/guacamole/"
- name: OPENID_CLIENT_ID
value: "guacamole"
- name: OPENID_REDIRECT_URI
value: "http://kaya.freeboxos.fr:9080/"
value: "https://portail.funklab.online/"
- name: OPENID_USERNAME_CLAIM_TYPE
value: "preferred_username"
- name: OPENID_SCOPE

View file

@ -0,0 +1,18 @@
# Accès public HTTPS — portail.funklab.online (cert Let's Encrypt auto).
# S'ajoute à la route interne portail.lab.local (non destructif).
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: guacamole-public
namespace: auth
spec:
entryPoints:
- websecure
routes:
- match: Host(`portail.funklab.online`)
kind: Rule
services:
- name: guacamole
port: 8080
tls:
certResolver: letsencrypt