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 — PIP-478: SAN-only hostname verification does not hold on a Conscrypt-pinned deployment while SecurityUtility is loaded · Issue #26278 · apache/pulsar

PIP-478: SAN-only hostname verification does not hold on a Conscrypt-pinned deployment while SecurityUtility is loaded #26278

New issue
Copy link
New issue
Copy link
Closed
Closed
PIP-478: SAN-only hostname verification does not hold on a Conscrypt-pinned deployment while SecurityUtility is loaded#26278
Copy link
Assignees
lhotari
Labels
type/enhancementThe enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages

Description

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

PIP: PIP-478 · Tracking constraint for the TLS migration PRs

Background

PIP-478 removes the deprecated CN-based hostname matching in Pulsar 5.0: certificates must carry the
hostname in the SubjectAltName extension, and hostname verification is delegated to the JDK/provider
standard endpoint identification (RFC 2818, SAN-based).

The new JcaProviders (added in #26271) deliberately installs no custom hostname verifier, so
Conscrypt keeps its built-in default — standard SAN-based verification. Its
processConscryptTrustManagers then propagates Conscrypt's default verifier onto each
TrustManager, working around conscrypt#1015,
where a Conscrypt TrustManagerImpl obtained through the standard JSSE TrustManagerFactory does not
otherwise pick the default verifier up.

The problem

Conscrypt.setDefaultHostnameVerifier is process-global, and the still-wired PIP-337 path sets it
to the CN-tolerant verifier: SecurityUtility's static initializer installs
TlsHostnameVerifier, which by design continues to accept a hostname in the certificate's CN.

So whenever SecurityUtility has been class-loaded anywhere in the JVM — which it is, for as long as
the PIP-337 stack remains the wired implementation — the "default" propagated onto the new stack's
trust managers is that relaxed verifier, not Conscrypt's own. On a Conscrypt-pinned deployment the
SAN-only guarantee then silently does not hold: a certificate carrying the hostname only in the CN
would be accepted where the design says it must be rejected.

Impact today

None. Nothing routes through the new TLS stack yet — #26271 is additive and the PIP-337 path is
still the implementation in use. This is a constraint on a PR that has not been written, which is why
it is tracked here rather than only as a code comment (the comment lives in JcaProviders, in a file
the constrained PR may never touch).

What needs to happen

The PR that turns SAN-only hostname verification on by default, and wires the new TLS stack, must
either:

  • neutralize SecurityUtility's global Conscrypt.setDefaultHostnameVerifier call before or
    atomically with wiring the new path, or
  • land together with SecurityUtility's removal (the final PR of the PIP-478 series), so the global
    is gone by the time anything depends on the SAN-only behaviour.

Verifying it needs a Conscrypt-pinned deployment presenting a CN-only certificate, asserting the
handshake is rejected.

Origin

Raised in review of #26271 (#26271 (comment)).

Activity

  1. lhotari
    added
    type/enhancementThe enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
    on Aug 5, 2026
  2. lhotari
    self-assigned this
    on Aug 5, 2026
  3. lhotari
    added this to Scalable Topics / Pulsar 5.0on Aug 5, 2026
  4. github-project-automation
    moved this to Backlog in Scalable Topics / Pulsar 5.0on Aug 5, 2026
  5. merlimat commented on Oct 24, 2026

    @merlimat
    merlimat
    on Oct 24, 2026
    Contributor
    More actions

    Thanks @lhotari for tracking this. The constraint is met: #26322 removed SecurityUtility together with the PIP-337 stack, so nothing installs the CN-tolerant TlsHostnameVerifier as Conscrypt's process-wide default any more. A Conscrypt-pinned client now applies Conscrypt's own SAN-only verification (see the note in JcaProviders). Closing as completed.

  6. merlimat
    closed this as completedon Oct 24, 2026
  7. github-project-automation
    moved this from Backlog to Done in Scalable Topics / Pulsar 5.0on 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

type/enhancementThe enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages

Type

No type

Projects

  • Scalable Topics / Pulsar 5.0
    Status
    Done
    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.