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

Refactor the cluster listener #6232

Merged
merged 8 commits into from
Feb 15, 2019
Merged

Refactor the cluster listener #6232

merged 8 commits into from
Feb 15, 2019

Conversation

briankassouf
Copy link
Contributor

No description provided.

@briankassouf briankassouf requested review from jefferai and a team February 13, 2019 23:29
Copy link
Contributor

@michelvocks michelvocks left a 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 👍

vault/cluster_test.go Outdated Show resolved Hide resolved
vault/cluster_test.go Outdated Show resolved Hide resolved
vault/cluster_test.go Outdated Show resolved Hide resolved
vault/cluster_test.go Outdated Show resolved Hide resolved
vault/request_forwarding.go Show resolved Hide resolved
// 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)
Copy link
Contributor

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)
Copy link
Contributor

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?

@briankassouf briankassouf merged commit 9fc2d79 into 1.1-beta Feb 15, 2019
@briankassouf briankassouf deleted the cluster-refactor-oss branch February 15, 2019 02:15
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