Skip to content

[ENHANCEMENT] add custom ca flag - #381

Merged
jgbernalp merged 2 commits into
mainfrom
add-custom-ca-flag
Nov 10, 2026
Merged

jgbernalp merged 2 commits into
mainfrom
add-custom-ca-flag

Conversation

@jgbernalp

Copy link
Copy Markdown
Contributor

Fixes: #278

Signed-off-by: Gabriel Bernal <gbernal@redhat.com>
@jgbernalp
jgbernalp requested a review from Nexucis November 10, 2026 10:48

@Nexucis Nexucis 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.

Thanks @jgbernalp, the generic fileReloader is a nice refactoring, and the mTLS setup looks correct to me.

Two things I'd like to see addressed (see the inline comments):

  • the comment saying that the resumed sessions are verified again with the new CA is right, but it is a security property that no test covers;
  • ClientCAs should also be set on the base config, so it fails closed instead of falling back to the system CAs.

The other comments are nits.

FWIW, go test -race ./echo/... and golangci-lint v2.15.0 pass locally, and rotating the CA under 16 concurrent mTLS clients with -race showed no race and no failed request.

Comment thread echo/server.go Resolved
Comment thread echo/server.go Resolved
Comment thread echo/server.go Resolved
Comment thread echo/server.go Resolved
Comment thread echo/server_test.go Resolved
Comment thread echo/tls.go Resolved
Comment thread echo/tls.go Resolved
Comment thread echo/tls_test.go Resolved
Comment thread echo/tls_test.go Resolved
Signed-off-by: Gabriel Bernal <gbernal@redhat.com>
@jgbernalp

Copy link
Copy Markdown
Contributor Author

@Nexucis comments addressed, please check again.

@Nexucis Nexucis 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.

Thanks @jgbernalp, all the comments are addressed, LGTM!

@jgbernalp
jgbernalp merged commit c4d1d0f into main Nov 10, 2026
6 checks passed
@jgbernalp
jgbernalp deleted the add-custom-ca-flag branch November 10, 2026 11:59
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.

Allow to pass a custom CA

2 participants