Skip to content

Comments

KAFKA-3665: Enable TLS hostname verification by default (KIP-294)#4956

Merged
ijuma merged 2 commits intoapache:trunkfrom
rajinisivaram:KAFKA-3665-ssl-https
Jun 5, 2018
Merged

KAFKA-3665: Enable TLS hostname verification by default (KIP-294)#4956
ijuma merged 2 commits intoapache:trunkfrom
rajinisivaram:KAFKA-3665-ssl-https

Conversation

@rajinisivaram
Copy link
Contributor

@rajinisivaram rajinisivaram commented May 2, 2018

Make HTTPS the default ssl.endpoint.identification.algorithm

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@rajinisivaram
Copy link
Contributor Author

Successful system test run here: https://jenkins.confluent.io/job/system-test-kafka-branch-builder/1744/

Will submit a KIP for this change since it impacts compatibility.

@rajinisivaram rajinisivaram force-pushed the KAFKA-3665-ssl-https branch 2 times, most recently from 10efae5 to 5e850ca Compare May 14, 2018 13:58
@rajinisivaram rajinisivaram requested a review from ijuma May 14, 2018 13:59
@ijuma ijuma added this to the 2.0.0 milestone May 21, 2018
Copy link
Member

@ijuma ijuma left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, just a few minor comments. Looks good otherwise.

Copy link
Member

Choose a reason for hiding this comment

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

Why do we need this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That was a typo in the code, SASL_PLAINTEXT is tested a few lines above this.

Copy link
Member

Choose a reason for hiding this comment

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

What happens if the value is set to null instead of empty string?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Empty string and null are handled in the same way, updated test to verify that as well.

Copy link
Member

Choose a reason for hiding this comment

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

Can we add a comment explaining why the -1 is needed here?

@ijuma ijuma self-assigned this May 21, 2018
@ijuma
Copy link
Member

ijuma commented Jun 4, 2018

@rajinisivaram Let's try to merge this by tomorrow since it's so close. Needs a rebase and minor updates only.

@rajinisivaram rajinisivaram force-pushed the KAFKA-3665-ssl-https branch from 5e850ca to 6f31d21 Compare June 5, 2018 08:53
@rajinisivaram
Copy link
Contributor Author

@ijuma Thanks for the review. I have made the updates and rebased.

Copy link
Member

@ijuma ijuma left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

@ijuma
Copy link
Member

ijuma commented Jun 5, 2018

Will merge once the build passes (if you don't beat me to it).

@ijuma ijuma changed the title KAFKA-3665: Make HTTPS the default ssl.endpoint.identification.algorithm KAFKA-3665: Enable TLS hostname verification by default (KIP-294) Jun 5, 2018
@ijuma ijuma merged commit 9df3872 into apache:trunk Jun 5, 2018
ijuma added a commit to edoardocomar/kafka that referenced this pull request Jun 6, 2018
…grained-acl-create-topics

* apache-github/trunk:
  KAFKA-5588: Remove deprecated --new-consumer tools option (apache#5097)
  MINOR: Fix for the location of the trogdor.sh executable file in the documentation. (apache#5040)
  KAFKA-6997: Exclude test-sources.jar when $INCLUDE_TEST_JARS is FALSE
  MINOR: docs should point to latest version (apache#5132)
  KAFKA-6981: Move the error handling configuration properties into the ConnectorConfig and SinkConnectorConfig classes (KIP-298)
  [KAFKA-6730] Simplify State Store Recovery (apache#5013)
  MINOR: Rename package `internal` to `internals` for consistency (apache#5137)
  KAFKA-6704: InvalidStateStoreException from IQ when StreamThread closes store (apache#4801)
  MINOR: Add missing configs for resilience settings
  MINOR: Add regression tests for KTable mapValues and filter (apache#5134)
  KAFKA-6750: Add listener name to authentication context (KIP-282) (apache#4829)
  KAFKA-3665: Enable TLS hostname verification by default (KIP-294) (apache#4956)
  KAFKA-6938: Add documentation for accessing Headers on Kafka Streams Processor API (apache#5128)
  KAFKA-6813: return to double-counting for count topology names (apache#5075)
  KAFKA-5919; Adding checks on "version" field for tools using it
  MINOR: Remove deprecated KafkaStreams constructors in docs (apache#5118)
ijuma added a commit to big-andy-coates/kafka that referenced this pull request Jun 6, 2018
…refix

* apache-github/trunk:
  KAFKA-6726: Fine Grained ACL for CreateTopics (KIP-277) (apache#4795)
  KAFKA-5588: Remove deprecated --new-consumer tools option (apache#5097)
  MINOR: Fix for the location of the trogdor.sh executable file in the documentation. (apache#5040)
  KAFKA-6997: Exclude test-sources.jar when $INCLUDE_TEST_JARS is FALSE
  MINOR: docs should point to latest version (apache#5132)
  KAFKA-6981: Move the error handling configuration properties into the ConnectorConfig and SinkConnectorConfig classes (KIP-298)
  [KAFKA-6730] Simplify State Store Recovery (apache#5013)
  MINOR: Rename package `internal` to `internals` for consistency (apache#5137)
  KAFKA-6704: InvalidStateStoreException from IQ when StreamThread closes store (apache#4801)
  MINOR: Add missing configs for resilience settings
  MINOR: Add regression tests for KTable mapValues and filter (apache#5134)
  KAFKA-6750: Add listener name to authentication context (KIP-282) (apache#4829)
  KAFKA-3665: Enable TLS hostname verification by default (KIP-294) (apache#4956)
  KAFKA-6938: Add documentation for accessing Headers on Kafka Streams Processor API (apache#5128)
  KAFKA-6813: return to double-counting for count topology names (apache#5075)
  KAFKA-5919; Adding checks on "version" field for tools using it
  MINOR: Remove deprecated KafkaStreams constructors in docs (apache#5118)
ying-zheng pushed a commit to ying-zheng/kafka that referenced this pull request Jul 6, 2018
…ache#4956)

Make HTTPS the default ssl.endpoint.identification.algorithm.

Reviewers: Ismael Juma <ismael@juma.me.uk>
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.

2 participants