Skip to content

Add automatic TLS certificate reloading for EPP#1765

Merged
k8s-ci-robot merged 3 commits intokubernetes-sigs:mainfrom
pierDipi:cert-reload
Dec 3, 2025
Merged

Add automatic TLS certificate reloading for EPP#1765
k8s-ci-robot merged 3 commits intokubernetes-sigs:mainfrom
pierDipi:cert-reload

Conversation

@pierDipi
Copy link
Copy Markdown
Contributor

What type of PR is this?

/kind feature

What this PR does / why we need it:

Enables the server to reload certificates without restart when they are rotated, which is particularly useful in Kubernetes environments where certificate rotation is automated.

Adds --enable-cert-reload flag (default: false) to control this behavior. Uses file watching with debouncing to handle rapid file system events during certificate updates.

Does this PR introduce a user-facing change?:

Add automatic TLS certificate reloading for EPP.

@k8s-ci-robot k8s-ci-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Oct 23, 2025
@netlify
Copy link
Copy Markdown

netlify Bot commented Oct 23, 2025

Deploy Preview for gateway-api-inference-extension ready!

Name Link
🔨 Latest commit ffc1ba5
🔍 Latest deploy log https://app.netlify.com/projects/gateway-api-inference-extension/deploys/69161ae693b3cc0008b193c8
😎 Deploy Preview https://deploy-preview-1765--gateway-api-inference-extension.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 23, 2025
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

Hi @pierDipi. Thanks for your PR.

I'm waiting for a github.com member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

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.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Oct 23, 2025
@pierDipi pierDipi changed the title Add automatic TLS certificate reloading for EPP [WIP] Add automatic TLS certificate reloading for EPP Oct 24, 2025
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 24, 2025
@pierDipi pierDipi changed the title [WIP] Add automatic TLS certificate reloading for EPP Add automatic TLS certificate reloading for EPP Oct 24, 2025
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 24, 2025
Comment thread pkg/common/certs.go Outdated
@pierDipi
Copy link
Copy Markdown
Contributor Author

/cc @nirrozenbaum @kfswain @danehans

@k8s-ci-robot k8s-ci-robot requested a review from kfswain October 30, 2025 16:08
@kfswain
Copy link
Copy Markdown
Collaborator

kfswain commented Nov 5, 2025

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Nov 5, 2025
Enables the server to reload certificates without restart when they are
rotated, which is particularly useful in Kubernetes environments where
certificate rotation is automated.

Adds --enable-cert-refresh flag (default: false) to control this behavior.
Uses file watching with debouncing to handle rapid file system events
during certificate updates.

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
avoid the case where defer of the goroutine is called before w.Add

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 13, 2025
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@pierDipi
Copy link
Copy Markdown
Contributor Author

@nirrozenbaum @kfswain @danehans please take a look

Comment thread pkg/common/certs.go
limitations under the License.
*/

package common
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit/question (not a blocker):
is certs under common cause you consider using it also in bbr (in the future)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes, BBR and routing sidecar on the llm-d side

@nirrozenbaum
Copy link
Copy Markdown
Contributor

sorry for the long delays with the review!

/lgtm
/approve

Thanks!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 3, 2025
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nirrozenbaum, pierDipi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 3, 2025
@k8s-ci-robot k8s-ci-robot merged commit 7aa9c35 into kubernetes-sigs:main Dec 3, 2025
11 checks passed
@pierDipi pierDipi deleted the cert-reload branch February 10, 2026 10:45
elevran pushed a commit to llm-d/llm-d-inference-scheduler that referenced this pull request Apr 23, 2026
…way-api-inference-extension#1765)

* Add automatic TLS certificate reloading for EPP

Enables the server to reload certificates without restart when they are
rotated, which is particularly useful in Kubernetes environments where
certificate rotation is automated.

Adds --enable-cert-refresh flag (default: false) to control this behavior.
Uses file watching with debouncing to handle rapid file system events
during certificate updates.

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>

* Add path to watch before before creating background gorouting

avoid the case where defer of the goroutine is called before w.Add

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>

* Debug level logging returns error

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>

---------

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
nirrozenbaum pushed a commit to llm-d/llm-d-inference-payload-processor that referenced this pull request Apr 28, 2026
…way-api-inference-extension#1765)

* Add automatic TLS certificate reloading for EPP

Enables the server to reload certificates without restart when they are
rotated, which is particularly useful in Kubernetes environments where
certificate rotation is automated.

Adds --enable-cert-refresh flag (default: false) to control this behavior.
Uses file watching with debouncing to handle rapid file system events
during certificate updates.

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>

* Add path to watch before before creating background gorouting

avoid the case where defer of the goroutine is called before w.Add

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>

* Debug level logging returns error

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>

---------

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
elevran pushed a commit to llm-d/llm-d-inference-scheduler that referenced this pull request May 3, 2026
…way-api-inference-extension#1765)

* Add automatic TLS certificate reloading for EPP

Enables the server to reload certificates without restart when they are
rotated, which is particularly useful in Kubernetes environments where
certificate rotation is automated.

Adds --enable-cert-refresh flag (default: false) to control this behavior.
Uses file watching with debouncing to handle rapid file system events
during certificate updates.

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>

* Add path to watch before before creating background gorouting

avoid the case where defer of the goroutine is called before w.Add

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>

* Debug level logging returns error

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>

---------

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants