-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Refactor the cluster listener #6232
Conversation
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.
Just a few questions and some minor suggestions. Overall LGTM 👍
// startClusterListener starts cluster request listeners during postunseal. It | ||
// ClusterClient is used to lookup a client certificate. | ||
type ClusterClient interface { | ||
ClientLookup(context.Context, *tls.CertificateRequestInfo) (*tls.Certificate, error) |
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.
Should this be CertificateLookup instead of ClientLookup?
// ClusterHandler exposes functions for looking up TLS configuration and handing | ||
// off a connection for a cluster listener application. | ||
type ClusterHandler interface { | ||
ServerLookup(context.Context, *tls.ClientHelloInfo) (*tls.Certificate, error) |
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.
Same here. Should this be CertificateLookup instead of ServerLookup?
No description provided.