Skip to content

Enabling x-forwarded-* headers #4097

Answered by stecullum
gid-fieldcode asked this question in Q&A
Discussion options

You must be logged in to vote

We are using Keycloak like this..and it works as expected

( https )NLB ---> (http) Envoy ---> Keycloak

apiVersion: gateway.networking.k8s.io/v1beta1
kind: HTTPRoute
metadata:
  name: keycloak
  namespace: keycloak
spec:
  parentRefs:
    - name: eg-external
      namespace: envoy-gateway-system
      kind: Gateway
  hostnames:
    - "auth.example.com"
  rules:
    - backendRefs:
        - group: ""
          kind: Service
          name: keycloak-service
          namespace: keycloak
          port: 8080
          weight: 1
      matches:
        - path:
            type: PathPrefix
            value: /
      filters:
      - type: RequestHeaderModifier
        requestHeaderModifier:
    …

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
6 replies
@gid-fieldcode
Comment options

@arkodg
Comment options

@gid-fieldcode
Comment options

@stecullum
Comment options

@gid-fieldcode
Comment options

Answer selected by gid-fieldcode
Comment options

You must be logged in to vote
3 replies
@larivierec
Comment options

@arkodg
Comment options

@larivierec
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants