Repository navigation
[Docs][KubeRay] Update token auth docs for Ray 2.61 - #67897
Draft
machichima wants to merge 1 commit into
Draft
machichima wants to merge 1 commit into
machichima wants to merge 1 commit into
Conversation
machichima
commented
Nov 6, 2026
| * Automatically mount a projected service account token to the Ray containers, for intra-cluster Ray process authentication. | ||
|
|
||
| If you are using a KubeRay version older than v1.7.0, you can enable RBAC authentication by setting the `RAY_AUTH_MODE` and `RAY_ENABLE_K8S_TOKEN_AUTH` environment variables and manually mounting the projected service account token to the Ray containers. See the following example: | ||
| If you are using a KubeRay version older than v1.6.0, you can enable RBAC authentication by setting the `RAY_AUTH_MODE` and `RAY_ENABLE_K8S_TOKEN_AUTH` environment variables and manually mounting the projected service account token to the Ray containers. `RAY_ENABLE_K8S_TOKEN_AUTH` requires `RAY_AUTH_MODE=token`. Ray refuses to start if both `RAY_AUTH_MODE=disabled` and `RAY_ENABLE_K8S_TOKEN_AUTH` are set. See the following example: |
Contributor
Author
There was a problem hiding this comment.
This should be 1.6.0, we mention v1.6.0 on line 42
| * Automatically set the `RAY_AUTH_TOKEN` and `RAY_AUTH_MODE` environment variables on all Ray containers. | ||
|
|
||
| If you are using a KubeRay version older than v1.7.0, you can enable token authentication by creating a Kubernetes Secret containing your token and configuring the `RAY_AUTH_MODE` and `RAY_AUTH_TOKEN` environment variables. | ||
| If you are using a KubeRay version older than v1.6.0, you can enable token authentication by creating a Kubernetes Secret containing your token and configuring the `RAY_AUTH_MODE` and `RAY_AUTH_TOKEN` environment variables. |
Contributor
Author
There was a problem hiding this comment.
Should be 1.6.0, we mentioned v1.6.0 on line 46
4 of 6 tasks
Signed-off-by: machichima <[email protected]>
machichima
force-pushed
the
kuberay-token-auth-doc
branch
from
November 6, 2026 09:15
08382ec to
31bf804
Compare
|
This pull request has been automatically marked as stale because it has not had You can always ask for help on our discussion forum or Ray's public slack channel. If you'd like to keep this open, just leave any comment, and the stale label will be removed. |
rueian
pushed a commit
to kuberay-project/kuberay
that referenced
this pull request
Nov 24, 2026
## Why are these changes needed? Ray token auth is enabled by default in Ray 2.61 (ray-project/ray#67523). KubeRay assumed token auth is disabled by default, so no `RAY_AUTH_MODE` is added when `authOptions` is not set. Users get an auth error when they use Ray 2.61 with the current KubeRay version. This PR makes the following changes: 1. Always set `RAY_AUTH_MODE` on every Ray container. Set to `token` when `authOptions.mode` is `token`, otherwise `disabled`. A user-provided `RAY_AUTH_MODE` is never overridden. 2. Add comments in `config/prometheus/podMonitor.yaml` on how to configure Prometheus for a RayCluster with token auth enabled, since Ray 2.61 also requires the token on the metrics endpoints (ray-project/ray#67119). ## Related issue number Related to ray-project/ray#67057 ## Labels <!-- Please add the appropriate labels to this PR. --> - [x] If this PR has user-facing changes that require documentation updates at release time, I have added the `doc-updates-required` label. - doc PR: ray-project/ray#67897 - [ ] If this PR contains breaking changes, I have added the `breaking-change` label. ## AI assistance Yes, AI assisted coding and test, reviewed by me and all manual tests run by me manually ## Checks - [x] I've made sure the tests are passing. - Testing Strategy - [x] Unit tests - [x] Manual tests - [ ] This PR is not tested :( <!-- If you selected "Manual tests" above, please fill in the section below. Otherwise you can remove it. --> ### Manual test instructions Test results: #5496 (comment) Signed-off-by: machichima <[email protected]>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Ray 2.61 enables token authentication by default (#67523), and KubeRay PR (kuberay-project/kuberay#5496) sets
RAY_AUTH_MODE=disabledby default. Update the KubeRay docs accordingly.Changes:
auth.md: mention KubeRay v1.8.0+ setsRAY_AUTH_MODE=disabledby default, and clients with auth disabled must set it too.auth-rbac.md: mentionRAY_ENABLE_K8S_TOKEN_AUTHrequiresRAY_AUTH_MODE=tokenprometheus-grafana.md: mention PodMonitor needs anauthorizationblock orRAY_AUTH_SKIP_METRICS=1starting from Ray 2.61Related issues
Related to #67057
Additional information
Wait until kuberay-project/kuberay#5496 is merged