Skip to content

Conversation

@chrisseto
Copy link
Contributor

Prior to this commit the chart had a variety of bugs around mTLS. The majority of them were incorrect path construction and handling of .clientSecretRef. The primary issue, though, is that the chart incorrectly mints a single client certificate regardless of how many trust chains are in use.

This commit moves all name and path references into helper methods onto the TLSCert itself and generates client certs per unique trust chain with client auth enabled.

K8S-719

@chrisseto
Copy link
Contributor Author

Lesson learned: PRs need to be rebased before deleting the branch they're targeting. #1100

Prior to this commit the chart had a variety of bugs around mTLS. The majority
of them were incorrect path construction and handling of `.clientSecretRef`.
The primary issue, though, is that the chart incorrectly mints a single client
certificate regardless of how many trust chains are in use.

This commit moves all name and path references into helper methods onto the
`TLSCert` itself and generates client certs per unique trust chain with client
auth enabled.

K8S-719
@chrisseto chrisseto force-pushed the chris/p/redpanda-mtls-fix branch from 2def69f to cde7c52 Compare September 24, 2025 19:01
return err

case <-ctx.Done():
_ = cmd.Process.Signal(os.Interrupt)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Found an edge case in CI and locally that's pretty hard to reproduce. It's possible for Process to be nil here. It's unlikely to recur but I went ahead and fix it by using Cancel and WaitDelay instead.

It seems the only way this can be triggered is if ctx is cancelled ahead of cmd.Run actually executing. Using .Cancel performs the appropriate checks and would otherwise require reimplementing parts of .Run.

@chrisseto chrisseto merged commit 6c63e57 into main Sep 25, 2025
10 checks passed
@chrisseto chrisseto deleted the chris/p/redpanda-mtls-fix branch September 25, 2025 13:31
@github-actions
Copy link

💚 All backports created successfully

Status Branch Result
release/v2.4.x
release/v25.1.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants