Skip to content
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

add tls to kserve-router and add certs to ig service and always mount… #502

Merged

Conversation

VedantMahabaleshwarkar
Copy link

@VedantMahabaleshwarkar VedantMahabaleshwarkar commented Feb 18, 2025

… serving cert secret to raw deployment

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes : RHOAIENG-18978

  • create server in router with TLS using certs mounted by adding annotation service.beta.openshift.io/serving-cert-secret-name=graph_name to the graph service
  • always mount service cert secret to deployments so that router can reliably find tls.crt and tls.key files

Type of changes
Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Feature/Issue validation/testing:

  • create raw ig and isvcs
  • all isvcs + ig deployment should have the serving secret volume mounted
  • In the graph deployment, verify the graph deployment starts correctly and test the graph

Special notes for your reviewer:

  1. Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Checklist:

  • Have you added unit/e2e tests that prove your fix is effective or that this feature works?
  • Has code been commented, particularly in hard-to-understand areas?
  • Have you made corresponding changes to the documentation?

Release note:


Re-running failed tests

  • /rerun-all - rerun all failed workflows.
  • /rerun-workflow <workflow name> - rerun a specific failed workflow. Only one workflow name can be specified. Multiple /rerun-workflow commands are allowed per comment.

Copy link

openshift-ci bot commented Feb 18, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@Jooho
Copy link

Jooho commented Feb 20, 2025

General question: Is the TLS for communicating Isvc pod to Isvc pod, or is the client to router endpoint for internal access?

@VedantMahabaleshwarkar
Copy link
Author

General question: Is the TLS for communicating Isvc pod to Isvc pod, or is the client to router endpoint for internal access?

It is for pod to pod

Copy link

@Jooho Jooho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: you missed some places to replace string.
I think it would be better to apply it equally everywhere.

@Jooho
Copy link

Jooho commented Feb 20, 2025

I am not sure how this pr was verified but I have some questions about tls connections between router pod and isvc pod.

If router pod is client in this scenario, I wonder how it can create SSL connection between them. Could you please elaborate this part?

Copy link

openshift-ci bot commented Feb 20, 2025

@VedantMahabaleshwarkar: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-raw 1618bc8 link true /test e2e-raw
ci/prow/e2e-graph 1618bc8 link true /test e2e-graph

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Copy link

@israel-hdez israel-hdez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May you rebase the PR?

@VedantMahabaleshwarkar
Copy link
Author

I am not sure how this pr was verified but I have some questions about tls connections between router pod and isvc pod.

@Jooho clarified this with Edgar, this JIRA is not for tls from router to isvc, it is only from client to the router. So this PR only includes the tls changes for listening in the router

@Jooho
Copy link

Jooho commented Mar 14, 2025

ok then it makes more sense. please fix th ci

… serving cert secret to raw deployment

Signed-off-by: Vedant Mahabaleshwarkar <[email protected]>

pr feedback

Signed-off-by: Vedant Mahabaleshwarkar <[email protected]>

modify callService to use TLS

Signed-off-by: Vedant Mahabaleshwarkar <[email protected]>

Revert "modify callService to use TLS"

This reverts commit 1618bc8.

edgar feedback

Signed-off-by: Vedant Mahabaleshwarkar <[email protected]>

fix lint errors

Signed-off-by: Vedant Mahabaleshwarkar <[email protected]>

bug fix

Signed-off-by: Vedant Mahabaleshwarkar <[email protected]>
Copy link

@israel-hdez israel-hdez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Mar 14, 2025
Copy link

openshift-ci bot commented Mar 14, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: israel-hdez, VedantMahabaleshwarkar

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:
  • OWNERS [VedantMahabaleshwarkar,israel-hdez]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit b6cf5bb into opendatahub-io:master Mar 14, 2025
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants