Skip to content

Add support to retrieve certificate and key from windows cert store - #12230

Merged
dmcgowan merged 2 commits into
containerd:mainfrom
apurv15:main
Sep 22, 2025
Merged

dmcgowan merged 2 commits into
containerd:mainfrom
apurv15:main

Conversation

@apurv15

@apurv15 apurv15 commented Aug 25, 2025

Copy link
Copy Markdown
Contributor

On Windows, the Windows certificate store is a secure location where certificates and keys can be stored. This patch enhances containerd to take certificate subject (common name) in the config toml file. Then fetch the certificate and key from the key store and use it for TLS. This patch makes use of a library google/certtostore which implements private key crypto signer and decrypter interfaces. This is necessary as the key is not accessible from the cert store directly as a file.
These changes address: #11905

Signed-off-by: Apurv Barve [email protected]

@k8s-ci-robot

Copy link
Copy Markdown

Hi @apurv15. Thanks for your PR.

I'm waiting for a containerd 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.

@apurv15
apurv15 force-pushed the main branch 2 times, most recently from e36280d to b20f833 Compare August 25, 2025 05:17
@apurv15
apurv15 marked this pull request as ready for review August 25, 2025 09:09
@dosubot dosubot Bot added the platform/windows Windows label Aug 25, 2025
@estesp

estesp commented Aug 25, 2025

Copy link
Copy Markdown
Member

There are 4 commits from another PR in here (the gc backreferences PR); I wasn't sure if there was a purpose in stacking on those commits or if that was a mistake.

@apurv15

apurv15 commented Aug 25, 2025

Copy link
Copy Markdown
Contributor Author

There are 4 commits from another PR in here (the gc backreferences PR); I wasn't sure if there was a purpose in stacking on those commits or if that was a mistake.

Thanks for pointing this. I have rebased my diff. Let me know your comments on the PR.

@kiashok

kiashok commented Aug 25, 2025

Copy link
Copy Markdown
Contributor

@estesp @dmcgowan do you have any thoughts on this PR?

@kiashok kiashok left a comment

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.

lgtm on green! Thanks for working on this @apurv15

@dmcgowan dmcgowan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A few suggested updates

Comment thread pkg/wintls/wintls_windows.go Resolved
Comment thread cmd/containerd/server/server.go Resolved
Comment thread cmd/containerd/server/server.go Resolved
@github-project-automation github-project-automation Bot moved this from Needs Triage to Needs Update in Pull Request Review Aug 27, 2025
Comment thread go.mod Resolved
@mxpv mxpv added the status/needs-update Awaiting contributor update label Sep 4, 2025
@apurv15

apurv15 commented Sep 9, 2025

Copy link
Copy Markdown
Contributor Author

Maintainers: I have resolved the issues and updated the PR. Please review the latest change. If acceptable, kindly remove status/needs-update and trigger ok-to-test.

@apurv15

apurv15 commented Sep 15, 2025

Copy link
Copy Markdown
Contributor Author

@mxpv, @dmcgowan : I have updated the PR based on your suggestion. Let me know if it is possible to check-in?

@github-project-automation github-project-automation Bot moved this from Needs Update to Review In Progress in Pull Request Review Sep 22, 2025
@dmcgowan
dmcgowan added this pull request to the merge queue Sep 22, 2025
Merged via the queue into containerd:main with commit 148be7d Sep 22, 2025
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants