Skip to content

Conversation

@jshufro
Copy link
Contributor

@jshufro jshufro commented Oct 6, 2025

No description provided.

jshufro and others added 8 commits October 26, 2025 12:06
@jshufro jshufro mentioned this pull request Oct 26, 2025
certKeyURI string

lastReloadAttemptTime time.Time
currentCertMutext sync.RWMutex
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the final 't' a typo in currentCertMutext?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, that's a typo

if err != nil {
return nil, nil, nil, errors.Wrap(err, fmt.Sprintf("failed to obtain server certificate from %s", viper.GetString("certificates.server-cert")))
if viper.GetString("certificates.ca-cert") == "" {
return nil, nil
Copy link
Contributor

@AntiD2ta AntiD2ta Dec 2, 2025

Choose a reason for hiding this comment

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

Shouldn't we return error here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

custom CAs are optional, I believe

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.

3 participants