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 — [improve][broker] Add strictAuthMethod to require explicit authentication method by omarkj · Pull Request #25185 · apache/pulsar

Conversation

@omarkj

@omarkj omarkj commented Jan 26, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Add a new strictAuthMethod configuration option to enforce that clients must specify their authentication method. When enabled, authentication requests without an explicit method will immediately fail with "Authentication method missing" instead of attempting to authenticate with all configured providers.

This improves security by preventing unintended authentication fallback behaviour when operators want to require specific authentication methods for their deployment.

Main Issue: #25184

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Ómar K. Yasin
[improve][broker] Add strictAuthMethod to require explicit authentica…
bee97ea
…tion method

Add a new strictAuthMethod configuration option to enforce that clients
must specify their authentication method. When enabled, authentication
requests without an explicit method will immediately fail with
"Authentication method missing" instead of attempting to authenticate
with all configured providers.

This improves security by preventing unintended authentication fallback
behavior when operators want to require specific authentication methods
for their deployment.
@github-actions github-actions Bot added the doc-label-missing label Jan 26, 2026
@github-actions

github-actions Bot commented Jan 26, 2026

Copy link
Copy Markdown

@omarkj Please add the following content to your PR description and select a checkbox:

- [ ] `doc` <!-- Your PR contains doc changes -->
- [ ] `doc-required` <!-- Your PR changes impact docs and you will update later -->
- [ ] `doc-not-needed` <!-- Your PR changes do not impact docs -->
- [ ] `doc-complete` <!-- Docs have been already added -->
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added doc-not-needed Your PR changes do not impact docs and removed doc-label-missing labels Jan 26, 2026
nodece
nodece approved these changes Jan 27, 2026
View reviewed changes

@nodece nodece left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM. We just need a PIP for this one before we merge, because this is an important change.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

lhotari reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@lhotari

lhotari commented Jan 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Thanks for the contribution @omarkj. Yes, a PIP would be useful in documenting the change.

Some questions:

  1. does this require also a similar change for
  • the Pulsar binary protocol?
  • the Pulsar Proxy?
  1. Since the client can specify the authentication method, how does this improve security?
  • Just wondering if it be useful to limit authentication methods for a particular "advertised listener"?
    • Pulsar broker can bind to multiple addresses/ports and limiting the authentication method for an external port binding could be an useful addition
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@omarkj

omarkj commented Jan 27, 2026

Copy link
Copy Markdown
Contributor Author

I will get a PIP out if relevant.

@lhotari Regarding your questions:

  1. does this require also a similar change for
  • the Pulsar binary protocol?

I believe the Pulsar Protocol authentication only tries the specified authentication provider unlike the HTTP authentication which iterates through all available providers if none is specified.

  • the Pulsar Proxy?

This is a good point, if the proxy is authenticating HTTP requests then yes, might be useful there.

  1. Since the client can specify the authentication method, how does this improve security?

This should make it harder to probe the system for possibly misconfigured authentication providers.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lhotari

lhotari commented Feb 4, 2026

Copy link
Copy Markdown
Member

I will get a PIP out if relevant.

@lhotari Regarding your questions:

  1. does this require also a similar change for
  • the Pulsar binary protocol?

I believe the Pulsar Protocol authentication only tries the specified authentication provider unlike the HTTP authentication which iterates through all available providers if none is specified.

Oh yes, you are correct.

  • the Pulsar Proxy?

This is a good point, if the proxy is authenticating HTTP requests then yes, might be useful there.

  1. Since the client can specify the authentication method, how does this improve security?

This should make it harder to probe the system for possibly misconfigured authentication providers.

Makes sense

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

lhotari
lhotari approved these changes Feb 4, 2026
View reviewed changes

@lhotari lhotari left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM, thanks for the contribution!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
lhotari
lhotari reviewed Feb 4, 2026
View reviewed changes
Comment thread pulsar-broker-common/src/main/java/org/apache/pulsar/broker/ServiceConfiguration.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@lhotari lhotari added this to the 4.2.0 milestone Feb 4, 2026
@lhotari lhotari added release/4.0.9 release/4.1.3 labels Feb 4, 2026
lhotari
lhotari reviewed Feb 6, 2026
View reviewed changes
Comment thread pulsar-broker-common/src/main/java/org/apache/pulsar/broker/ServiceConfiguration.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@lhotari

lhotari commented Feb 6, 2026

Copy link
Copy Markdown
Member

/pulsarbot rerun-failure-checks

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lhotari
lhotari merged commit bae9173 into apache:master Feb 6, 2026
103 of 108 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@lhotari lhotari added the cherry-picked/branch-4.1 label Feb 6, 2026
lhotari pushed a commit that referenced this pull request Feb 6, 2026
@omarkj Ómar K. Yasin @lhotari
[improve][broker] Add strictAuthMethod to require explicit authentica…
27e34f6
…tion method (#25185)

Co-authored-by: Ómar K. Yasin <[email protected]>
(cherry picked from commit bae9173)
lhotari pushed a commit that referenced this pull request Feb 6, 2026
@omarkj Ómar K. Yasin @lhotari
[improve][broker] Add strictAuthMethod to require explicit authentica…
d5d3d70
…tion method (#25185)

Co-authored-by: Ómar K. Yasin <[email protected]>
(cherry picked from commit bae9173)
@lhotari lhotari added the cherry-picked/branch-4.0 label Feb 6, 2026
@Technoboy- Technoboy- assigned omarkj Feb 9, 2026
hshankar31 pushed a commit to datastax/pulsar that referenced this pull request Feb 11, 2026
@omarkj Ómar K. Yasin @hshankar31
[improve][broker] Add strictAuthMethod to require explicit authentica…
f2a7647
…tion method (apache#25185)

Co-authored-by: Ómar K. Yasin <[email protected]>
(cherry picked from commit bae9173)
(cherry picked from commit 27e34f6)
hshankar31 pushed a commit to datastax/pulsar that referenced this pull request Feb 16, 2026
@omarkj Ómar K. Yasin @hshankar31
[improve][broker] Add strictAuthMethod to require explicit authentica…
531eb91
…tion method (apache#25185)

Co-authored-by: Ómar K. Yasin <[email protected]>
(cherry picked from commit bae9173)
(cherry picked from commit 27e34f6)
hshankar31 added a commit to datastax/pulsar that referenced this pull request Feb 16, 2026
@hshankar31
Revert "[improve][broker] Add strictAuthMethod to require explicit au…
ff755c8
…thentication method (apache#25185)"

This reverts commit 531eb91.
priyanshu-ctds pushed a commit to datastax/pulsar that referenced this pull request Feb 18, 2026
@hshankar31 @Demogorgon314
@zymap @lhotari @dependabot @nodece @thetumbled fengwenzhi @BewareMyPower @zjxxzjwang @guptas6est @merlimat @oneby-wang @poorbarcode @sandeep-mst @0asys @omarkj Ómar K. Yasin @gulecroc @izumo27 hoguni @coderzc @Denovo1998 @Technoboy- @berg223 @zhanghaou 张浩 @zhaizhibo
[improve][misc]LS: 1408 cherry pick commit from pulsar branch 4 0 to …
a54cf70
…datastax 4 0 ds 16 feb (#589)

* [improve][broker] Ensure metadata session state visibility and improve Unstable observability for ServiceUnitStateChannelImpl (apache#25132)

(cherry picked from commit 2a29be0)
(cherry picked from commit 85dc758)

* [improve][broker] Upgrade bookkeeper to 4.17.3 (apache#25166)

(cherry picked from commit 45def39)
(cherry picked from commit 333110a)

* fix license and pom file

* [fix][ml] Fix NoSuchElementException in EntryCountEstimator caused by a race condition (apache#25177)

(cherry picked from commit 9b70ba3)
(cherry picked from commit 9261869)

* [fix][test] Bump org.assertj:assertj-core from 3.27.5 to 3.27.7 (apache#25186)

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit ce4ebea)
(cherry picked from commit 2c3402e)

* [improve][misc] Upgrade snappy version to 1.1.10.8 (apache#25182)

(cherry picked from commit b15f53b)
(cherry picked from commit 304fea1)

* [fix][proxy] Close client connection immediately when credentials expire and forwardAuthorizationCredentials is disabled (apache#25179)

(cherry picked from commit 3348470)
(cherry picked from commit c06f8ba)

* [fix][client] ControlledClusterFailover avoid unnecessary reconnection. (apache#25178)

Co-authored-by: fengwenzhi <[email protected]>
(cherry picked from commit f0ec07b)
(cherry picked from commit b41488d)

* [fix][sec] Bump org.apache.solr:solr-core from 9.8.0 to 9.10.1 in /pulsar-io/solr (apache#25175)

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit a2f888a)
(cherry picked from commit b532068)

* [improve][pip] PIP-453: Improve the metadata store threading model (apache#25173)

(cherry picked from commit c51346f)
(cherry picked from commit d81d6b3)

* [improve][client]Reduce unnecessary getPartitionedTopicMetadata requests when using retry and DLQ topics. (apache#25172)

(cherry picked from commit 52a4d5e)
(cherry picked from commit 71a3994)

* [fix][misc] Allow JWT tokens in OpenID auth without nbf claim (apache#25197)

(cherry picked from commit d630394)
(cherry picked from commit 2760ee9)

* [fix][sec] Exclude org.lz4:lz4-java and standardize on at.yawk.lz4-java to remediate CVE-2025-12183 and CVE-2025-66566 (apache#25198)

(cherry picked from commit c07f2ad)
(cherry picked from commit 2ac6d03)

* fix checkstyle failure and license issues

* [fix] [test] Upgrade docker-java to 3.7.0 (apache#25209)

(cherry picked from commit 4add84c)
(cherry picked from commit 92b5d55)

* [fix][client] Fix race condition between isDuplicate() and flushAsync() method in PersistentAcknowledgmentsGroupingTracker due to incorrect use Netty Recycler (apache#25208)

(cherry picked from commit 5aab2f0)
(cherry picked from commit 2206949)

* [improve][monitor] Upgrade OpenTelemetry to 1.56.0, Otel instrumentation to 2.21.0 and Otel semconv to 1.37.0 (apache#24994)

(cherry picked from commit 53162ff)
(cherry picked from commit a1d5b6c)

* [improve][proxy] Add regression tests for package upload with 'Expect: 100-continue' (apache#25211)

Co-authored-by: Copilot <[email protected]>
(cherry picked from commit e8fedb1)
(cherry picked from commit 0947639)

* fix license issues

* [fix][test]Fix flaky ExtensibleLoadManagerImplTest_testGetMetrics (apache#25216)

(cherry picked from commit 257d42f)
(cherry picked from commit a8eac91)

* [fix][broker] Fix ManagedCursorImpl.asyncDelete() method may lose previous async mark delete properties in race condition (apache#25165)

(cherry picked from commit bea6f8a)
(cherry picked from commit 4332a44)

* [fix][broker]Fix ledgerHandle failed to read by using new BK API (apache#25199)

(cherry picked from commit 6d51f88)
(cherry picked from commit 1631fed)

* [fix][client] Fix producer synchronous retry handling in failPendingMessages method (apache#25207)

(cherry picked from commit 611efe4)
(cherry picked from commit 30ae8fb)

* [fix][broker] Prevent missed topic changes in topic watchers and schedule periodic refresh with patternAutoDiscoveryPeriod interval (apache#25188)

(cherry picked from commit 2e06cc0)
(cherry picked from commit ba2a230)

* fix for complilation error

* [feat][io] implement pip-297 for jdbc sinks (apache#25195)

(cherry picked from commit 6f4ac21)
(cherry picked from commit 998a4b1)

* [fix][broker] Fix httpProxyTimeout config (apache#25223)

Co-authored-by: Copilot <[email protected]>
(cherry picked from commit 2d6ef6f)
(cherry picked from commit 3b39c7b)

* [improve][broker] Add strictAuthMethod to require explicit authentication method (apache#25185)

Co-authored-by: Ómar K. Yasin <[email protected]>
(cherry picked from commit bae9173)
(cherry picked from commit 27e34f6)

* [feat][client] oauth2 trustcerts file and timeouts (apache#24944)

(cherry picked from commit b789d82)
(cherry picked from commit f8827bd)

* [improve][client] Make authorization server metadata path configurable in AuthenticationOAuth2 (apache#25052)

Co-authored-by: hoguni <[email protected]>
(cherry picked from commit 3cb7a7b)
(cherry picked from commit 705a99d)

* Revert "[improve][broker] Add strictAuthMethod to require explicit authentication method (apache#25185)"

This reverts commit 531eb91.

* [improve][broker] Add idle timeout support for http (apache#25224)

(cherry picked from commit 63220ea)
(cherry picked from commit 144e064)

* [fix][broker] Fix incomplete futures in topic property update/delete methods (apache#25228)

(cherry picked from commit c2ae180)
(cherry picked from commit ab05ca2)

* [fix][test] Fix Mockito stubbing race in TopicListServiceTest (apache#25227)

(cherry picked from commit c93dd7a)
(cherry picked from commit 38a126b)

* [improve][broker] Give the detail error msg when authenticate failed with AuthenticationException (apache#25221)

(cherry picked from commit 0a0ce6d)
(cherry picked from commit 2a46c70)

* [fix][client] Send all chunkMessageIds to broker for redelivery (apache#25229)

(cherry picked from commit 0a0ce6d)
(cherry picked from commit f49c7b2)

* [fix][broker] Fix transactionMetadataFuture completeExceptionally with null value (apache#25231)

Co-authored-by: 张浩 <[email protected]>
(cherry picked from commit 0e5d424)
(cherry picked from commit 42283f4)

* uncomment distribution management in pom

* Reapply "[improve][meta] PIP-453: Improve the metadata store threading model (apache#25187)"

This reverts commit a6aab86.

(cherry picked from commit 4f9b2ca)

* [improve] Upgrade Netty to 4.1.131.Final (apache#25232)

(cherry picked from commit db91b93)
(cherry picked from commit a6c602a)

* [fix][test] fix testBatchMetadataStoreMetrics. (apache#25241)

(cherry picked from commit 9db31cc)
(cherry picked from commit abbd478)

* [fix][test] Fix ResourceQuotaCalculatorImplTest#testNeedToReportLocalUsage (apache#25247)

(cherry picked from commit 48774de)
(cherry picked from commit 9343837)

* [fix][meta] Metadata cache refresh might not take effect (apache#25246)

(cherry picked from commit 24eba10)
(cherry picked from commit 6d81292)

* fix pulsar-proxy unit test case failure

* fix safe delete URLRegexLookupProxyHandler which is not used

* Revert "fix safe delete URLRegexLookupProxyHandler which is not used"

This reverts commit 158fc14.

* Revert "fix pulsar-proxy unit test case failure"

This reverts commit 4efcf70.

* updated hardcoded newLookupProxyHandler in ProxyService for failing URLRegexLookupProxyHandlerTest

* Revert "[improve][monitor] Upgrade OpenTelemetry to 1.56.0, Otel instrumentation to 2.21.0 and Otel semconv to 1.37.0 (apache#24994)"

This reverts commit 5e5328e

* reverted lincense for opentelemetry upgrade changes

* Revert "updated hardcoded newLookupProxyHandler in ProxyService for failing URLRegexLookupProxyHandlerTest"

This reverts commit a4f07dc.

* reverted mismatch commits changes in ProxyConnection.java

* fix code-style issue

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Kai Wang <[email protected]>
Co-authored-by: Yong Zhang <[email protected]>
Co-authored-by: Lari Hotari <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Zixuan Liu <[email protected]>
Co-authored-by: Wenzhi Feng <[email protected]>
Co-authored-by: fengwenzhi <[email protected]>
Co-authored-by: Yunze Xu <[email protected]>
Co-authored-by: zhenJiangWang <[email protected]>
Co-authored-by: guptas6est <[email protected]>
Co-authored-by: Matteo Merli <[email protected]>
Co-authored-by: Oneby Wang <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: fengyubiao <[email protected]>
Co-authored-by: Malla Sandeep <[email protected]>
Co-authored-by: Bäm <[email protected]>
Co-authored-by: Omar Yasin <[email protected]>
Co-authored-by: Ómar K. Yasin <[email protected]>
Co-authored-by: gulecroc <[email protected]>
Co-authored-by: Hideaki Oguni <[email protected]>
Co-authored-by: hoguni <[email protected]>
Co-authored-by: Cong Zhao <[email protected]>
Co-authored-by: sinan liu <[email protected]>
Co-authored-by: Jiwei Guo <[email protected]>
Co-authored-by: cai minjian <[email protected]>
Co-authored-by: Hao Zhang <[email protected]>
Co-authored-by: 张浩 <[email protected]>
Co-authored-by: Lari Hotari <[email protected]>
Co-authored-by: zzb <[email protected]>
priyanshu-ctds pushed a commit to datastax/pulsar that referenced this pull request Feb 23, 2026
@omarkj Ómar K. Yasin @priyanshu-ctds
[improve][broker] Add strictAuthMethod to require explicit authentica…
5d05083
…tion method (apache#25185)

Co-authored-by: Ómar K. Yasin <[email protected]>
(cherry picked from commit bae9173)
(cherry picked from commit 27e34f6)
priyanshu-ctds pushed a commit to datastax/pulsar that referenced this pull request Feb 23, 2026
@hshankar31 @priyanshu-ctds
Revert "[improve][broker] Add strictAuthMethod to require explicit au…
e4d6eca
…thentication method (apache#25185)"

This reverts commit 531eb91.
@merlimat merlimat mentioned this pull request Oct 23, 2026
Add configuration option to require explicit authentication method specification #25184
Closed
2 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@lhotari lhotari lhotari approved these changes
@nodece nodece nodece approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@omarkj omarkj

Labels

cherry-picked/branch-4.0 cherry-picked/branch-4.1 doc-not-needed Your PR changes do not impact docs release/4.0.9 release/4.1.3

Projects

None yet

Milestone

4.2.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@omarkj @lhotari @nodece
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.