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

[Question] Kubevious UI with SSO URL #86

Open
vumdao opened this issue Oct 22, 2023 · 2 comments
Open

[Question] Kubevious UI with SSO URL #86

vumdao opened this issue Oct 22, 2023 · 2 comments

Comments

@vumdao
Copy link

vumdao commented Oct 22, 2023

Is your feature request related to a problem? Please describe.

I use nginx to redirect request from SSO URL eg. sso.simflexcloud.com/kubevious to the Kubernetes service

   location /kubevious {
      proxy_pass http://kubevious-ui-clusterip.kubevious.svc.cluster.local:80;
      proxy_set_header X-Vouch-User $auth_resp_x_vouch_user;
      proxy_set_header Host $http_host;
      proxy_pass_request_body off;
      proxy_set_header Content-Length "";
      auth_request_set $auth_resp_x_vouch_user $upstream_http_x_vouch_user;
   }

But kubevious-ui seems to remove the original header which caused too many redirects
image

Describe the solution you'd like

Support SSO URL with Kubevious

@rubenhak
Copy link
Collaborator

rubenhak commented Oct 23, 2023

@vumdao, are you looking for the "X-Vouch-User" header?

We are using caddy to serve the UI. Could you check the Caddyfile config and the Dockerfile:
https://github.com/kubevious/ui/blob/main/docker/Caddyfile
https://github.com/kubevious/ui/blob/main/Dockerfile

@vumdao
Copy link
Author

vumdao commented Dec 16, 2023

@rubenhak thanks for your support. I'm not familiar with Caddy so how can I update the nginx to work with Caddy config ?

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

2 participants