mirror of
https://github.com/Alkatrazz24/Funk-lab.git
synced 2026-07-08 05:34:43 +02:00
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:
parent
cd0dacbc9a
commit
c51fa2dfb4
3 changed files with 41 additions and 6 deletions
18
k8s/apps/authentik/ingress-public.yaml
Normal file
18
k8s/apps/authentik/ingress-public.yaml
Normal 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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
18
k8s/apps/guacamole/ingress-public.yaml
Normal file
18
k8s/apps/guacamole/ingress-public.yaml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue