Skip to content

[reactor-optional] Deprecate reactive credentials provider - #3830

Open
a-TODO-rov wants to merge 1 commit into
mainfrom
worktree-credentials-deprecation
Open

[reactor-optional] Deprecate reactive credentials provider#3830
a-TODO-rov wants to merge 1 commit into
mainfrom
worktree-credentials-deprecation

Conversation

@a-TODO-rov

@a-TODO-rov a-TODO-rov commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Part of #3614 and #3829


Note

Low Risk
Additive API with default bridges; runtime auth paths are unchanged except deprecation annotations and new tests.

Overview
Introduces forward-compatible, non-Reactor APIs on RedisCredentialsProvider ahead of Lettuce 8.0 making reactor-core optional.

resolveCredentials() (Mono) and credentials() (Flux) are deprecated since 7.7 with removal planned in 8.0. New defaults add resolveCredentialsAsync() (CompletionStage, bridged from resolveCredentials()) and subscribeToCredentials(onNext, onError), which returns a new Subscription handle (closeable, distinct from Reactive Streams / Pub/Sub).

RedisAuthenticationHandler.subscribe() is unchanged in behavior but annotated to suppress deprecation warnings while it still uses credentials(). Unit tests cover the async bridge and that closing Subscription stops credential delivery.

Reviewed by Cursor Bugbot for commit 9b78a7a. Bugbot is set up for automated code reviews on this repo. Configure here.

@a-TODO-rov
a-TODO-rov requested a review from atakavci July 9, 2026 11:04

@atakavci atakavci left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

}

@Test
void subscribeToCredentialsDeliversAndCloseStops() {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit: addding another test case to see multiples succeed

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