-
Notifications
You must be signed in to change notification settings - Fork 7k
[Core] Support X-Ray-Authorization fallback header for accepting auth token in dashboard
#58819
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
Conversation
Signed-off-by: sampan <sampan@anyscale.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces support for a new X-Ray-Auth header to accept authentication tokens, primarily for use by KubeRay when proxying requests to the Ray dashboard. The changes are well-implemented, ensuring that the standard Authorization header takes precedence over the new X-Ray-Auth header. Comprehensive tests have been added to validate both the functionality of the new header and its precedence logic. The code is clear, follows existing patterns, and correctly addresses the stated problem. No critical, high, or medium severity issues were found.
|
Please note in PR description that this is only for the dashboard/API server |
X-Ray-Auth header for acception auth tokenX-Ray-Auth fallback header for accepting auth token in dashbaord
X-Ray-Auth fallback header for accepting auth token in dashbaordX-Ray-Auth fallback header for accepting auth token in dashboard
Signed-off-by: sampan <sampan@anyscale.com>
Signed-off-by: sampan <sampan@anyscale.com>
X-Ray-Auth fallback header for accepting auth token in dashboardX-Ray-Authorization fallback header for accepting auth token in dashboard
python/ray/_private/authentication/http_token_authentication.py
Outdated
Show resolved
Hide resolved
…th token in dashboard (ray-project#58819) support `X-Ray-Authorization` header for accepting auth token. this is used by kuberay to pass auth token when it is making requests to ray dashboard through Kubernetes API via proxy. this only affects api's using the middleware (dashboard head and runtime env agent server) --------- Signed-off-by: sampan <sampan@anyscale.com> Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com> Co-authored-by: sampan <sampan@anyscale.com> Co-authored-by: Edward Oakes <ed.nmi.oakes@gmail.com> Signed-off-by: Aydin Abiar <aydin@anyscale.com>
…th token in dashboard (ray-project#58819) support `X-Ray-Authorization` header for accepting auth token. this is used by kuberay to pass auth token when it is making requests to ray dashboard through Kubernetes API via proxy. this only affects api's using the middleware (dashboard head and runtime env agent server) --------- Signed-off-by: sampan <sampan@anyscale.com> Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com> Co-authored-by: sampan <sampan@anyscale.com> Co-authored-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Cherry pick: #58819 Signed-off-by: sampan <sampan@anyscale.com> Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com> Co-authored-by: Sampan S Nayak <sampansnayak2@gmail.com> Co-authored-by: sampan <sampan@anyscale.com>
…th token in dashboard (ray-project#58819) support `X-Ray-Authorization` header for accepting auth token. this is used by kuberay to pass auth token when it is making requests to ray dashboard through Kubernetes API via proxy. this only affects api's using the middleware (dashboard head and runtime env agent server) --------- Signed-off-by: sampan <sampan@anyscale.com> Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com> Co-authored-by: sampan <sampan@anyscale.com> Co-authored-by: Edward Oakes <ed.nmi.oakes@gmail.com>
…th token in dashboard (ray-project#58819) support `X-Ray-Authorization` header for accepting auth token. this is used by kuberay to pass auth token when it is making requests to ray dashboard through Kubernetes API via proxy. this only affects api's using the middleware (dashboard head and runtime env agent server) --------- Signed-off-by: sampan <sampan@anyscale.com> Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com> Co-authored-by: sampan <sampan@anyscale.com> Co-authored-by: Edward Oakes <ed.nmi.oakes@gmail.com> Signed-off-by: YK <1811651+ykdojo@users.noreply.github.com>
Description
support
X-Ray-Authorizationheader for accepting auth token. this is used by kuberay to pass auth token when it is making requests to ray dashboard through Kubernetes API via proxy.this only affects api's using the middleware (dashboard head and runtime env agent server)