-
Notifications
You must be signed in to change notification settings - Fork 28
Add certmanager service, configurable ssl certificate reload threshold and interval #83
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
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: Chris Berry <[email protected]>
Co-authored-by: Chris Berry <[email protected]>
Co-authored-by: Chris Berry <[email protected]>
Co-authored-by: Chris Berry <[email protected]>
Co-authored-by: Chris Berry <[email protected]>
Co-authored-by: Chris Berry <[email protected]>
Co-authored-by: Chris Berry <[email protected]>
Co-authored-by: Chris Berry <[email protected]>
| certKeyURI string | ||
|
|
||
| lastReloadAttemptTime time.Time | ||
| currentCertMutext sync.RWMutex |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
No description provided.