linkerd / linkerd2

Ultralight, security-first service mesh for Kubernetes. Main repo for Linkerd 2.x.
https://linkerd.io
Apache License 2.0
10.48k stars 1.27k forks source link

duplicated copies of trust anchor certificate #12721

Open duxing opened 2 weeks ago

duxing commented 2 weeks ago

What problem are you trying to solve?

I followed this guide to set up automatic control plane tls cert rotations and it's working as expected. however, after linkerd-control-plane is installed, I noticed that the trust anchor certificate has multiple copies on k8s:

How should the problem be solved?

Would it be possible to include a feature in the helm chart to allow reading trust anchor cert from an existing TLS-typed secret on k8s? or even generalize that to support "external trust anchor", fetching from a few different options, where existing k8s secret is one of them.

identityTrustAnchorsPEM will continue to be supported, I just want to ask more options to set it up.

Any alternatives you've considered?

going through the latest helm chart values, I don't see any options to specify an alternative way to pass in trust anchor other than using identityTrustAnchorsPEM.

pardon my limited knowledge on linkerd: I'm not 100% sure if this doable with the current version of linked chart, please correct me if I'm wrong.

How would users interact with this feature?

No response

Would you like to work on this feature?

None

duxing commented 2 weeks ago

@kflynn ty for the amazing guides! do you mind sharing your opinion on this?