Skip to content
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

[ADDED] Setting TLS config with callbacks in Connect #1413

Merged
merged 1 commit into from
Feb 16, 2024
Merged

Conversation

piotrpio
Copy link
Collaborator

This PR adds ability to load TLS config with custom callbacks. Previously it was only possible to either set the whole TLSConfig in nats.Secure() (which is not reloaded on reconnect) or pass files to nats.ClientCert() and nats.RootCAs() options.
Adding this function increases flexibility and is consistent with what we do for credentials in nats.UserJWT() option.

@evanofslack
Copy link
Contributor

Hey @piotrpio is there any progress on this? This addition would be useful. Happy to help if there is anything.

Copy link
Member

@Jarema Jarema left a comment

Choose a reason for hiding this comment

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

Just one thing to discuss before merging.

nats.go Show resolved Hide resolved
Copy link
Member

@Jarema Jarema left a comment

Choose a reason for hiding this comment

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

LGTM!

@piotrpio piotrpio merged commit 74f400b into main Feb 16, 2024
1 of 2 checks passed
@piotrpio piotrpio deleted the client-cert-cb branch February 16, 2024 13:25
@gehhilfe
Copy link

Love this :)

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.

4 participants