-
Notifications
You must be signed in to change notification settings - Fork 880
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
I can't authenticate and get a session #2542
Comments
Would you mind debugging it a bit? Because for me 1.8 is working so far. |
Please tell me how to debug this? |
Update to Kubeflow 1.8rc2 or the 1.8 branch first. Then check the logs of oidc-authservice and Dex. |
|
You can try to get something similar to a session in the following way...
Response:
But this is absolutely not what is described in the documentation. Can someone follow the path that is written in the documentation?
Response:
|
I solved the problem. Here are the correct commands (semicolons and
|
No, the problem still remains. The solution above was for version 1.5. |
My current solution is to use the proper m2m authentication and not abusing human sessions. We will also switch to oauth2 soon. Feel free to help out in #2544 |
Thank you very much! |
in kubeflow 1,9, in the
use this cookies,still cant request get |
I haven't upgraded to version 1.9 yet, in part because of possible problems like this. |
In general do not abuse sessions with usernames and passwords for programmatic access. Do not. We won't support it and won't help. Oauth2-proxy and serviceaccountokens is the way to go. You can read the documentation here in our repository for aouth2-proxy. The instructions are in
Afterwards all insecure/dangerous username+password based programatic access documentation on the website should be removed. These are anyway only hacky workarounds that try to emulate a webbrowser instead of providing a proper solution. Kserve inference services external access is a separate topic. Please check the other issues in this repository for Kserve. |
Please reopen a new issue if needed. |
See #2811 |
I'm trying to get a session as per the following instructions:
https://github.com/kserve/kserve/tree/master/docs/samples/istio-dex
However, the responses are somewhat different.
CLUSTER_IP=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.clusterIP}')
curl -v http://${CLUSTER_IP}
Response:
>> <a href="/dex/auth?client_id=kubeflow-oidc-authservice&redirect_uri=%2Fauthservice%2Foidc%2Fcallback&response_type=code&scope=openid+profile+email+groups&state=MTY5NDc4ODI5N3xOd3dBTkVGRlRESTJSMGxhV1UwMU1qSkxSRWRDVEZWQ1RrUkNRa2xIUVVWRFZWUlFWVGRUUVVWS1NWVlNNek5EVlV4YVMwNVhXbEU9fGcVV1W5Jwh1NgnAzm1p02a5_n7gGeUS2sg2w3jN0gkY">Found</a>.
STATE=STATE_VALUE
curl -v "http://192.168.21.45:31368/dex/auth/local?client_id=kubeflow-oidc-authservice&redirect_uri=%2Fauthservice%2Foidc%2Fcallback&response_type=code&scope=profile+email+groups+openid&state=MTY5NDc4ODI5N3xOd3dBTkVGRlRESTJSMGxhV1UwMU1qSkxSRWRDVEZWQ1RrUkNRa2xIUVVWRFZWUlFWVGRUUVVWS1NWVlNNek5EVlV4YVMwNVhXbEU9fGcVV1W5Jwh1NgnAzm1p02a5_n7gGeUS2sg2w3jN0gkY"
Response:
>><a href="/dex/auth/local/login?back=&state=ijw5ccyzf4ujzcmaqjxsaurgl">Found</a>.
But the response should be as follows:
>> <a href="/dex/auth/local?req=REQ_VALUE">Found</a>
Please note that the link in the answer also does not correspond to the instructions:
redirect_uri=%2Fauthservice%2Foidc%2Fcallback instead redirect_uri=%2Flogin%2Foidc
What did you expect to happen:
I expected to receive a session according to the instructions.
Environment:
The text was updated successfully, but these errors were encountered: