Skip to content
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

[Backport 1.3] [Backport 1.x] Fix lost privileges during auto initializing of the index #2643

Merged
merged 1 commit into from
Apr 4, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 73ac738 from #2641

* Lost privileges fix

During default initialization of the plugin configuration
(plugins.security.allow_default_init_securityindex is set to true)
it is possible that plugin could lose its privileges
due to the thread context switching for the cluster with more than 3 nodes.

* Wait for cluster managed node

Added a new check that waits while cluster is in the global lock state and
do not initialize index util cluster will finish leader election.

Signed-off-by: Andrey Pleskach <[email protected]>
(cherry picked from commit 73ac738)
@peternied peternied merged commit 913a781 into 1.3 Apr 4, 2023
@peternied peternied deleted the backport/backport-2641-to-1.3 branch April 4, 2023 14:55
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