Repository navigation
[Runtime Env] Add bearer token support for remote URI downloads - #60050
Conversation
There was a problem hiding this comment.
Code Review
This pull request adds support for bearer token authentication for HTTPS downloads in runtime environments, which is a useful feature for accessing private resources. The implementation is straightforward. However, I've identified a potential security vulnerability related to CRLF injection, as the bearer token from the environment variable is used directly in an HTTP header without validation. I've provided a suggestion to mitigate this. Additionally, this change lacks corresponding tests. It's crucial to add tests to verify that the Authorization header is correctly handled, ensuring both successful authentication with valid tokens and failures with invalid or missing tokens.
d43ec7a to
17d7c8e
Compare
Signed-off-by: Denis Khachyan <[email protected]>
17d7c8e to
bb284fb
Compare
edoakes
left a comment
There was a problem hiding this comment.
LGTM. As a follow up, could you add a note about this to the runtime_env documentation page?
…project#60050) Add support for authenticating HTTPS downloads in runtime environments using bearer tokens via the RAY_RUNTIME_ENV_BEARER_TOKEN environment variable. Fixes [ray-project#46833](ray-project#46833) Signed-off-by: Denis Khachyan <[email protected]> Signed-off-by: jasonwrwang <[email protected]>
Sure |
…project#60050) Add support for authenticating HTTPS downloads in runtime environments using bearer tokens via the RAY_RUNTIME_ENV_BEARER_TOKEN environment variable. Fixes [ray-project#46833](ray-project#46833) Signed-off-by: Denis Khachyan <[email protected]>
## Description Added documentation about using RAY_RUNTIME_ENV_BEARER_TOKEN_ENV_VAR for authenticating remote URIs in runtime_env ## Related issues [#46833](#46833) ## Related PRs [#60050](#60050) Signed-off-by: Denis Khachyan <[email protected]>
Description
Add support for authenticating HTTPS downloads in runtime environments using
bearer tokens via the RAY_RUNTIME_ENV_BEARER_TOKEN environment variable.
Related issues
Fixes #46833