etcd icon indicating copy to clipboard operation
etcd copied to clipboard

embedetcd: Allow passing in a *tls.Config object for the embedded ETCD Server

Open RaphSku opened this issue 2 years ago • 23 comments

The idea is that not only paths to certificate file paths should be possible to define in *embed.Config.ClientTLSInfo and *embed.Config.PeerTLSInfo but also *tls.Config where the certificates could be generated programmatically.

For more details, see the issue: https://github.com/etcd-io/etcd/issues/16339

RaphSku avatar Dec 16 '23 17:12 RaphSku

Hi @RaphSku. Thanks for your PR.

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

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/test-infra repository.

k8s-ci-robot avatar Dec 16 '23 17:12 k8s-ci-robot

Has there been any movement on this? I'd very much like to see this be merged

NHAS avatar Feb 18 '24 00:02 NHAS

Has there been any movement on this? I'd very much like to see this be merged

I'm on it, just had not much time at hand during new year transition but I'm picking up again, hope I will submit a valid PR in approx. 2 weeks.

RaphSku avatar Feb 18 '24 09:02 RaphSku

Oh that's totally fine! Thank you so much for your work, it's geniuely very helpful.

NHAS avatar Feb 18 '24 09:02 NHAS

Hey everyone, I needed to refactor and restructure a lot of the code in the embed code. Its passing the tests but I will probably still need to add a few tests, at least another integration test but I wanted to get feedback from you all whether this is going into the right direction or if I am over-engineering it. Thank you all a lot!

RaphSku avatar Apr 07 '24 15:04 RaphSku

I unfortunately dont have the ability to test this right at this second. But I am pinging this thread as I very much want this to be part of the etcd project as it will remove a lot of projects using the antipattern of generating 10 year long certs and enables integration with acme.

JSmith-Aura avatar Apr 19 '24 01:04 JSmith-Aura

cc @awadmhamad

siyuanfoundation avatar Apr 25 '24 18:04 siyuanfoundation

Discussed during sig-etcd triage meeting, @RaphSku do you have capacity to continue this work? If so can you please rebase this pr. Thanks

jmhbnz avatar Jun 06 '24 18:06 jmhbnz

@jmhbnz I have rebased the PR. Thank you for asking. Yes, I have capacity to work on it. - I still have to fix a few errors that I have introduced by rebasing

RaphSku avatar Jun 07 '24 08:06 RaphSku

@jmhbnz I have fixed the rebase changes. The tests are green again. But as I said, would be good if someone could take a look and point me to the right direction.

RaphSku avatar Jun 07 '24 15:06 RaphSku

/ok-to-test

jmhbnz avatar Jun 08 '24 05:06 jmhbnz

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: RaphSku Once this PR has been reviewed and has the lgtm label, please assign wenjiaswe for approval. For more information see the Kubernetes Code Review Process.

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

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 avatar Jul 27 '24 13:07 k8s-ci-robot

/retest

RaphSku avatar Jul 27 '24 17:07 RaphSku

/retest

RaphSku avatar Jul 27 '24 19:07 RaphSku

@jmhbnz All checks have passed, is there someone available that would have time to review this PR?

RaphSku avatar Jul 27 '24 19:07 RaphSku

PR needs rebase.

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 avatar Aug 08 '24 00:08 k8s-ci-robot