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

[pulsar-broker] add broker-bookie mTLS support #5042

Merged
merged 2 commits into from
Aug 27, 2019

Conversation

rdhabalia
Copy link
Contributor

Motivation

This PR will help to enable mTLS between broker and bookie. Broker can configure tls configuration to connect with bookie.

@rdhabalia rdhabalia added this to the 2.5.0 milestone Aug 26, 2019
@rdhabalia rdhabalia self-assigned this Aug 26, 2019
conf/broker.conf Outdated
@@ -457,6 +457,34 @@ bookkeeperClientMinAvailableBookiesInIsolationGroups=
# Disable Sticy Read until {@link https://github.com/apache/bookkeeper/issues/1970} is fixed
bookkeeperEnableStickyReads=false

# Set the client security provider factory class name.
# Default: org.apache.bookkeeper.tls.TLSContextFactory
bookkeeperTLSProviderFactoryClass=
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we set this to its default value?

conf/broker.conf Outdated
bookkeeperTLSProviderFactoryClass=

# Enable tls authentication with bookie
bookkeeperTLSClientAuthentication=
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
bookkeeperTLSClientAuthentication=
bookkeeperTLSClientAuthentication=false

bookkeeperTLSProviderFactoryClass=

# Enable tls authentication with bookie
bookkeeperTLSClientAuthentication=
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
bookkeeperTLSClientAuthentication=
bookkeeperTLSClientAuthentication=false

@@ -280,6 +280,35 @@ bookkeeperClientSecondaryIsolationGroups=
# else broker will include bookkeeperClientSecondaryIsolationGroups bookies in isolated list.
bookkeeperClientMinAvailableBookiesInIsolationGroups=

# Set the client security provider factory class name.
# Default: org.apache.bookkeeper.tls.TLSContextFactory
bookkeeperTLSProviderFactoryClass=
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
bookkeeperTLSProviderFactoryClass=
bookkeeperTLSProviderFactoryClass=org.apache.bookkeeper.tls.TLSContextFactory

conf/broker.conf Outdated Show resolved Hide resolved
@rdhabalia
Copy link
Contributor Author

rerun java8 tests

@merlimat merlimat merged commit 4ba8b6d into apache:master Aug 27, 2019
@rdhabalia rdhabalia deleted the bk_mtls branch October 17, 2019 18:01
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.

None yet

2 participants