GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [fix][cli] PIP-478: client.conf tlsEnableHostnameVerification is silently ignored by pulsar-admin · Issue #26385 · apache/pulsar

[fix][cli] PIP-478: client.conf tlsEnableHostnameVerification is silently ignored by pulsar-admin #26385

New issue
Copy link
New issue
Copy link
Open
Open
[fix][cli] PIP-478: client.conf tlsEnableHostnameVerification is silently ignored by pulsar-admin#26385
Copy link
Assignees
lhotari
Labels
bug-verifiedBug confirmed still present on current mastertype/bugThe PR fixed a bug or issue reported a bug

Description

@lhotari
lhotari
opened on Aug 20, 2026
Issue body actions

Motivation

conf/client.conf is read by both bin/pulsar-client and bin/pulsar-admin. It ships the key

# Whether the server hostname is verified ... Enabled by default since Pulsar 5.0 (PIP-478).
tlsEnableHostnameVerification=true

bin/pulsar-client honours it — PulsarClientTool.applyTlsPolicy reads
properties.getProperty("tlsEnableHostnameVerification") by that literal name.

bin/pulsar-admin does not. The backing field is named differently:

// ClientConfigurationData
private boolean tlsHostnameVerificationEnable = true;

The @Schema(name = "tlsHostnameVerificationEnable") on it is Swagger metadata, not a Jackson alias —
there is no @JsonAlias/@JsonProperty in the class. PulsarAdminTool.createAdminBuilderFromProperties
copies every client.conf property into a map and calls PulsarAdmin.builder().loadConf(conf), and
ClientConfigurationData carries @JsonIgnoreProperties(ignoreUnknown = true) — so the key is dropped
without a word.

The CLI flag cannot rescue it from the conf file either: PulsarAdminTool's
--tls-enable-hostname-verification option has no descriptionKey, so picocli's
PropertiesDefaultProvider looks up tls-enable-hostname-verification, not the conf key, and
PulsarAdminSupplier only applies the flag when it was actually passed.

What makes this new

Before PIP-478 the shipped conf/client.conf had tlsEnableHostnameVerification=false and the field
default was also false, so the name mismatch was a no-op. PIP-478 flipped both to true
(secure-by-default). The key is now the documented escape hatch for that flip — and it works on only one
of the two CLIs that read the file.

Impact

An operator upgrading to 5.0 whose broker certificate has no matching SAN sees pulsar-admin start
failing the handshake, reads the shipped client.conf, sets tlsEnableHostnameVerification=false, and
pulsar-admin keeps failing while pulsar-client starts working — with no diagnostic pointing at the
ignored key.

Suggested fix

Either give PulsarAdminTool's option descriptionKey = "tlsEnableHostnameVerification", or add
@JsonAlias("tlsEnableHostnameVerification") to ClientConfigurationData.tlsHostnameVerificationEnable.
Add a test that loads the shipped conf/client.conf through PulsarAdminTool and asserts the resulting
ClientConfigurationData.


Found in a final-state review of the PIP-478 series (#26321). Not a blocker for the stack — filed
separately so it can be fixed on its own.

Activity

  1. lhotari
    self-assigned this
    on Aug 21, 2026
  2. lhotari
    added this to Scalable Topics / Pulsar 5.0on Aug 21, 2026
  3. github-project-automation
    moved this to Backlog in Scalable Topics / Pulsar 5.0on Aug 21, 2026
  4. merlimat
    added
    type/bugThe PR fixed a bug or issue reported a bug
    bug-verifiedBug confirmed still present on current master
    on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @lhotari
    lhotari

Labels

bug-verifiedBug confirmed still present on current mastertype/bugThe PR fixed a bug or issue reported a bug

Type

No type

Projects

  • Scalable Topics / Pulsar 5.0
    Status
    Backlog
    Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.