8000 fix(helm): Allow setting caBundle with caPEM and keyPEM by Kakadus · Pull Request #14109 · linkerd/linkerd2 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(helm): Allow setting caBundle with caPEM and keyPEM #14109

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

Merged
merged 2 commits into from
Jun 19, 2025

Conversation

Kakadus
Copy link
Contributor
@Kakadus Kakadus commented Jun 6, 2025

Setting caPEM and keyPEM does not work as intended, as caBundle is set to the helm-generated self-signed CA. Setting caBundle does not work as externalSecret would need to be set, which counteracts caPEM and keyPEM.

This allows setting caBundle without externalSecret: true, so that all three values (caPEM, keyPEM, caBundle) may be set in conjunction.

Setting this for e.g. linkerd-viz tap:

step certificate create tap.linkerd-viz.svc tap.crt tap.key \
  --profile root-ca --no-password --insecure --san tap.linkerd-viz.svc

linkerd viz install \
  --set-file tap.keyPEM=ca.key \
  --set-file tap.crtPEM=ca.crt \
  --set-file tap.caBundle=ca.crt \
  | kubectl apply -f -

found while investigating #14059 #13723

Setting caPEM and keyPEM does not work as intended, as caBundle is set
to the helm-generated self-signed CA. Setting caBundle does not work as
externalSecret would need to be set, which counteracts caPEM and keyPEM.

This allows setting caBundle without `externalSecret: true`, so that all
three values (caPEM, keyPEM, caBundle) may be set in conjunction.

Setting this for e.g. linkerd-viz tap:

```sh
step certificate create tap.linkerd-viz.svc tap.crt tap.key \
  --profile root-ca --no-password --insecure --san tap.linkerd-viz.svc

linkerd viz install \
  --set-file tap.keyPEM=ca.key \
  --set-file tap.crtPEM=ca.crt \
  --set-file tap.caBundle=ca.crt \
  | kubectl apply -f -
```

found while investigating linkerd#14059 linkerd#13723

Signed-off-by: Jonas Dittrich <kakadus2303@gmail.com>
Copy link
Member
@adleong adleong left a comment

Choose a reason for hiding this comment

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

Nice find, @Kakadus, and thanks for your patience while we got to reviewing this!

@adleong adleong changed the title Allow setting caBundle with caPEM and keyPEM fix(helm): Allow setting caBundle with caPEM and keyPEM Jun 19, 2025
@adleong adleong merged commit f179d4c into linkerd:main Jun 19, 2025
64 of 67 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0