From 5a0821da0dde129c76df3211cc2fc8ebfcbdba34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Thu, 29 Jun 2023 14:48:52 +0300 Subject: [PATCH] Migrate whoami to new OIDC gateway --- traefik/whoami.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/traefik/whoami.yml b/traefik/whoami.yml index 31bc552..4d6a23d 100644 --- a/traefik/whoami.yml +++ b/traefik/whoami.yml @@ -45,7 +45,7 @@ metadata: kubernetes.io/ingress.class: traefik traefik.ingress.kubernetes.io/router.entrypoints: websecure traefik.ingress.kubernetes.io/router.tls: "true" - traefik.ingress.kubernetes.io/router.middlewares: traefik-sso@kubernetescrd + traefik.ingress.kubernetes.io/router.middlewares: traefik-whoami@kubernetescrd spec: tls: - hosts: @@ -61,3 +61,16 @@ spec: name: whoami port: number: 80 +--- +apiVersion: codemowers.io/v1alpha1 +kind: OIDCGWMiddlewareClient +metadata: + name: whoami +spec: + displayName: Who-Am-I + uri: 'https://whoami.k-space.ee' + headerMapping: + email: Remote-Email + groups: Remote-Groups + name: Remote-Name + user: Remote-Username