• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

apache / bookkeeper / 817 / 1
72%
master: 72%

Build:
DEFAULT BRANCH: master
Ran 18 May 2020 03:22PM UTC
Files 537
Run time 54s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 May 2020 03:22PM UTC coverage: 71.844% (+0.09%) from 71.758%
817.1

push

jenkins

GitHub
[BOOKIE-MTLS] add support of hostname verification

### Motivation

Right now, bookkeeper-client is not able to perform [hostname-verification](https://tersesystems.com/blog/2014/03/23/fixing-hostname-verification/) when it connects to broker over tls. Hostname-verification feature is already implemented in almost all [http-client](https://github.com/apache/httpcomponents-client/blob/master/httpclient5/src/main/java/org/apache/hc/client5/http/ssl/DefaultHostnameVerifier.java) but it's not supported by [netty](https://stackoverflow.com/questions/13315623/netty-ssl-hostname-verification-support) yet. therefore, client should be able to perform hostname-verification as per [RFC-2181](https://tools.ietf.org/html/rfc2818#section-3.1)

### Modifications

- added client configuration to enable hostname-verification (default disable)
- use [http-client](https://github.com/apache/httpcomponents-client/blob/master/httpclient5/src/main/java/org/apache/hc/client5/http/ssl/DefaultHostnameVerifier.java) but it's not supported by [netty](https://stackoverflow.com/questions/13315623/netty-ssl-hostname-verification-support) to perform hostname-validation rather adding custom logic.
- add httpclient-apache dependency into LICENSE and NOTICE files.

### Result

Bookkeeper client will be able to perform hostname verification while creating ssl session with bookie.

Reviewers: Enrico Olivelli <eolivelli@gmail.com>

This closes #2156 from rdhabalia/hostname

28298 of 39388 relevant lines covered (71.84%)

0.72 hits per line

Source Files on job 817.1
  • Tree
  • List 0
  • Changed 21
  • Source Changed 0
  • Coverage Changed 21
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 817
  • adf086d5 on github
  • Prev Job for on master (#816.1)
  • Next Job for on master (#818.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc