Skip to content

Conversation

ankit--sethi
Copy link
Contributor

@ankit--sethi ankit--sethi commented Aug 19, 2025

Introduce the notion of PluggableAuthenticatorChain that allows a series of custom authenticators to be plugged in, each extending the CustomAuthenticator interface. Consequently we no longer need PluggableApiKeyAuthenticator.

@elasticsearchmachine elasticsearchmachine added needs:triage Requires assignment of a team area label v9.2.0 labels Aug 19, 2025
@ankit--sethi ankit--sethi added :Security/Security Security issues without another label >non-issue and removed needs:triage Requires assignment of a team area label labels Aug 19, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Security Meta label for security team label Aug 19, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-security (Team:Security)

@elasticsearchmachine elasticsearchmachine added the serverless-linked Added by automation, don't add manually label Aug 19, 2025
@ankit--sethi ankit--sethi requested review from n1v0lg, slobodanadamovic and a team August 19, 2025 04:34

public class PluggableAuthenticatorChain implements Authenticator {

public static final PluggableAuthenticatorChain EMPTY = new PluggableAuthenticatorChain(List.of());
Copy link
Contributor

Choose a reason for hiding this comment

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

This is only used in test classes. Initially I had different idea, but went with other logic and checking if there are any custom authenticators in the chain. We can remove it.

Copy link
Contributor

@slobodanadamovic slobodanadamovic left a comment

Choose a reason for hiding this comment

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

LGTM 👍

The PR description needs updating to reflect the current changes.

@ankit--sethi ankit--sethi merged commit 85094f2 into elastic:main Sep 3, 2025
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>non-issue :Security/Security Security issues without another label serverless-linked Added by automation, don't add manually Team:Security Meta label for security team v9.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants