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

(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:
ALI YESILKAYA 2026-07-07 16:31:44 +02:00 committed by GitHub
parent cd0dacbc9a
commit c51fa2dfb4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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 - name: WEBAPP_CONTEXT
value: "ROOT" value: "ROOT"
# --- SSO OIDC → Authentik (app « guacamole » dans l'UI Authentik) --- # --- SSO OIDC → Authentik (app « guacamole » dans l'UI Authentik) ---
# Endpoints navigateur : URL publique kaya.freeboxos.fr (une seule URL # URL canonique = domaine HTTPS (auth./portail.funklab.online), LAN inclus
# canonique, LAN inclus — hairpin NAT Freebox) ; JWKS : appel # (split-horizon dnsmasq). JWKS : appel serveur→serveur via le Service interne.
# serveur→serveur via le Service interne
- name: OPENID_AUTHORIZATION_ENDPOINT - 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 - name: OPENID_JWKS_ENDPOINT
value: "http://authentik.auth.svc.cluster.local:9000/application/o/guacamole/jwks/" value: "http://authentik.auth.svc.cluster.local:9000/application/o/guacamole/jwks/"
- name: OPENID_ISSUER - name: OPENID_ISSUER
value: "http://kaya.freeboxos.fr:9081/application/o/guacamole/" value: "https://auth.funklab.online/application/o/guacamole/"
- name: OPENID_CLIENT_ID - name: OPENID_CLIENT_ID
value: "guacamole" value: "guacamole"
- name: OPENID_REDIRECT_URI - name: OPENID_REDIRECT_URI
value: "http://kaya.freeboxos.fr:9080/" value: "https://portail.funklab.online/"
- name: OPENID_USERNAME_CLAIM_TYPE - name: OPENID_USERNAME_CLAIM_TYPE
value: "preferred_username" value: "preferred_username"
- name: OPENID_SCOPE - 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