Infisical / infisical

♾ Infisical is the open-source secret management platform: Sync secrets across your team/infrastructure, prevent secret leaks, and manage internal PKI
https://infisical.com
Other
15.2k stars 879 forks source link

signup with email returns 404 #913

Open valkmit opened 1 year ago

valkmit commented 1 year ago

Describe the bug

I am self-hosting Infisical with Kubernetes and have the following configuration settings

frontend:
  replicaCount: 1
backend:
  replicaCount: 1
ingress:
  enabled: false
backendEnvironmentVariables:
  INVITE_ONLY_SIGNUP: true

Visiting the frontend works fine with no errors. However, when I attempt to register the 1st account on my fresh installation, the API request that hits signup is 404'd.

image

Below is the chart and release version

$ helm list     
NAME            NAMESPACE       REVISION        UPDATED                                 STATUS          CHART                   APP VERSION
secops          default         1               2023-08-29 23:05:59.676102714 -0700 PDT deployed        infisical-0.3.2         1.17.0

Thanks in advance!

akhilmhdh commented 1 year ago

@dangtony98 anything related to sso changes recently

maidul98 commented 1 year ago

Do you have ingress controller configured? Infisical needs ingress to properly route traffic

CypriotUnknown commented 1 year ago

same here

valkmit commented 1 year ago

Do you have ingress controller configured? Infisical needs ingress to properly route traffic

No, I have that disabled as per the config as I am using cloudflared to connect my cluster to the internet.

I have it forwarding all http requests from a subdomain to the frontend service. Is there any way to get it to work without an ingress controller?

maidul98 commented 1 year ago

The current setup requires Ingress to route traffic from frontend to backend services. The issue you have right now is the frontend is not able to route traffic to the backend services and therefore you get 404.

If you want to route traffic between the backend and frontend using cloudflared, you'll need to configure the equivalent routing with it as here https://github.com/Infisical/infisical/blob/main/helm-charts/infisical/templates/ingress.yaml