-
Notifications
You must be signed in to change notification settings - Fork 59
Updating tls encryption for ray dashboard route #457
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
Updating tls encryption for ray dashboard route #457
Conversation
b3300dd to
938684b
Compare
ec07209 to
0eb3877
Compare
5668803 to
263808b
Compare
263808b to
feec765
Compare
tedhtchang
left a comment
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.
Good Job /lgtm Tested both cases on ODH2.7 with 0_basic_ray.ipynb notebook and
cluster = Cluster(ClusterConfiguration(
name='raytest',
namespace='default',
num_workers=1,
min_cpus=1,
max_cpus=1,
min_memory=2,
max_memory=2,
num_gpus=0,
image="quay.io/project-codeflare/ray:latest-py39-cu118",
instascale=False,
openshift_oauth=True, # and False
head_cpus=1,
head_memory=2
))
feec765 to
5e3aeee
Compare
Bobbins228
left a comment
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.
/approve
Tested basic and Oauth routes working as expected Nice work Fiona!
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Bobbins228 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Issue link
Resolves RHOAIENG-66
Resolves RHOAIENG-12
By default the dashboard route tls termination will be set to edge. The route is secured (https) with the Let’s Encrypt cert. The dashboard works as expected.

From what I can see, it is not possible to use reencrypt here with the dashboard route as Ray is not using a cert on the dashboard port. I think edge is a good option here.
When openshift_oauth = true, we will set the tls termination to reencrypt. This means that the oauth self signed cert will not be exposed.
What changes have been made
When openshift_oauth = false the dashboard route will use edge tls termination.
When openshift_oauth = true the dashboard route will use reencrypt tls termination.
Verification steps
Choose a demo notebook
1 - In the ClusterConfiguration set
openshift_oauth=Falsecluster.up()2 - In the ClusterConfiguration set
openshift_oauth=Truecluster.up()Checks