Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using custom Ingress causing 404 error on authenticate service #333

Open
pavankumar-go opened this issue Oct 13, 2022 · 2 comments
Open
Assignees

Comments

@pavankumar-go
Copy link

pavankumar-go commented Oct 13, 2022

    Using custom Ingress causing 404 error on authenticate service
"size":0,"response-code":404,"response-code-details":"route_not_found","time":"2022-10-13T06:58:16Z","message":"http-request"}

Ingress.yaml

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: custom-pomerium-ingress
  namespace: pomerium
spec:
  ingressClassName: nginx
  rules:
    - host: authenticate.dev.X.X
      http:
        paths:
          - backend:
              service:
                name: pomerium-authenticate
                port:
                  number: 80
            pathType: ImplementationSpecific
    - host: int-grafana.dev.X.X
      http:
        paths:
          - backend:
              service:
                name: pomerium-proxy
                port:
                  number: 80
            pathType: ImplementationSpecific

workaround: remove or set AUTHENTICATE_INTERNAL_SERVICE_URL to ""

  # we manage ingress on behalf of pomerium.
  # remove AUTHENTICATE_INTERNAL_SERVICE_URL from pomerium-authenticate.
  set {
    name  = "ingress.enabled"
    value = false
  }

  # workaround to fix 404 error in authenticate service
  set {
    name  = "extraEnv.AUTHENTICATE_INTERNAL_SERVICE_URL"
    value = ""
  }

Originally posted by @pavankumar-go in #277 (comment)

@abh
Copy link

abh commented Feb 11, 2023

I don't use a custom ingress, so I have

ingress:
  enabled: false

which makes AUTHENTICATE_INTERNAL_SERVICE_URL be set to the value (and causes the 404s, best I can tell).

@abh
Copy link

abh commented Feb 13, 2023

eh, I mean I use the ingressController so ingress is disabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants