From 8eb09c3f502604dc1eac9f1ded75e0785fe91812 Mon Sep 17 00:00:00 2001 From: Vegard Hagen Date: Thu, 13 Oct 2022 19:28:44 +0200 Subject: [PATCH] feat(config): Using configMaps instead of env-variables for traefik-forward-auth --- .../configs/traefik-forward-auth.ini | 13 +++++-------- .../traefik-forward-auth/deployment.yaml | 15 --------------- 2 files changed, 5 insertions(+), 23 deletions(-) diff --git a/apps/traefik-forward-auth/traefik-forward-auth/configs/traefik-forward-auth.ini b/apps/traefik-forward-auth/traefik-forward-auth/configs/traefik-forward-auth.ini index 31ef03f..3582bfd 100644 --- a/apps/traefik-forward-auth/traefik-forward-auth/configs/traefik-forward-auth.ini +++ b/apps/traefik-forward-auth/traefik-forward-auth/configs/traefik-forward-auth.ini @@ -1,8 +1,5 @@ -rule.example_public.action=allow -rule.example_public.rule=Host("stats.stonegarden.dev") && PathPrefix("/api/public") - -rule.example_api.action=allow -rule.example_api.rule=Host("api.stonegarden.dev") && Headers("X-API-Authorization", "a-long-api-key") - -rule.example_api_query.action=allow -rule.example_api_query.rule=Host("api.stonegarden.dev") && && Query("api_key=a-long-api-key") \ No newline at end of file +cookie-name="_whoami_auth" +log-level="error" +cookie-domain="stonegarden.dev" +auth-host="auth.stonegarden.dev" +whitelist="veghag@gmail.com" \ No newline at end of file diff --git a/apps/traefik-forward-auth/traefik-forward-auth/deployment.yaml b/apps/traefik-forward-auth/traefik-forward-auth/deployment.yaml index 0845f72..5f8e92c 100644 --- a/apps/traefik-forward-auth/traefik-forward-auth/deployment.yaml +++ b/apps/traefik-forward-auth/traefik-forward-auth/deployment.yaml @@ -16,7 +16,6 @@ spec: labels: app: traefik-forward-auth spec: - #serviceAccountName: traefik-ingress-controller terminationGracePeriodSeconds: 60 containers: - image: thomseddon/traefik-forward-auth:2 @@ -27,20 +26,6 @@ spec: env: - name: CONFIG value: "/config" - #- name: DOMAIN - # value: "gmail.com" - # INSECURE_COOKIE is required if not using a https entrypoint - #- name: INSECURE_COOKIE - # value: "true" - # Remove COOKIE_DOMAIN if not using auth host mode - - name: COOKIE_DOMAIN - value: "stonegarden.dev" - - name: AUTH_HOST - value: "auth.stonegarden.dev" - - name: LOG_LEVEL - value: "trace" - - name: WHITELIST - value: veghag@gmail.com - name: PROVIDERS_GOOGLE_CLIENT_ID valueFrom: secretKeyRef: