Skip to content

Update authc failure headers on license change (#61734) #62442

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

BigPandaToo
Copy link
Contributor

Backport of #61734

DefaultAuthenticationFailureHandler determines the set of response headers based on the active realms at startup.
However, the Realms list may be empty if the node thinks it has a TRIAL or BASIC license at startup (because we default security off in those cases).
The handler is never updated if the license state changes.

The fix is to add a call-back for license change to update the AuthenticationFailureHandler's Headers to reflect the new license property.
Resolves: elastic#56318
@BigPandaToo BigPandaToo merged commit 167172a into elastic:7.x Sep 16, 2020
@BigPandaToo BigPandaToo deleted the DefaultAuthenticatioFailureHandler_backport branch April 19, 2021 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant