mirror of
https://github.com/vale981/ray
synced 2025-03-05 18:11:42 -05:00
Raise error if space in redis password (#5673)
This commit is contained in:
parent
0bf79cfbde
commit
ee5db5b67f
2 changed files with 5 additions and 0 deletions
|
@ -116,6 +116,9 @@ behind a firewall, this feature is useful for instances exposed to the internet
|
|||
where configuring a firewall is not possible. Because Redis is
|
||||
very fast at serving queries, the chosen password should be long.
|
||||
|
||||
|
||||
.. note:: The Redis passwords provided below may not contain spaces.
|
||||
|
||||
Redis authentication is only supported on the raylet code path.
|
||||
|
||||
To add authentication via the Python API, start Ray using:
|
||||
|
|
|
@ -772,6 +772,8 @@ def _start_redis_instance(executable,
|
|||
# Construct the command to start the Redis server.
|
||||
command = [executable]
|
||||
if password:
|
||||
if " " in password:
|
||||
raise ValueError("Spaces not permitted in redis password.")
|
||||
command += ["--requirepass", password]
|
||||
command += (
|
||||
["--port", str(port), "--loglevel", "warning"] + load_module_args)
|
||||
|
|
Loading…
Add table
Reference in a new issue