Skip to content

[8.x] Enable queryable built-in roles feature by default (#120323)#120886

Merged
elasticsearchmachine merged 6 commits intoelastic:8.xfrom
slobodanadamovic:backport/8.x/pr-120323
Jan 27, 2025
Merged

[8.x] Enable queryable built-in roles feature by default (#120323)#120886
elasticsearchmachine merged 6 commits intoelastic:8.xfrom
slobodanadamovic:backport/8.x/pr-120323

Conversation

@slobodanadamovic
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

Making the `es.queryable_built_in_roles_enabled` feature flag enabled by default.
This feature makes the built-in roles automatically indexed in `.security` index and available
for querying via Query Role API. The consequence of this is that `.security` index is now
created eagerly (if it's not existing) on cluster formation.

In order to keep the scope of this PR small, the feature is disabled for some of the tests,
because they are either non-trivial to adjust or the gain is not worthy the effort to do it now.
The tests will be adjusted in a follow-up PR and later the flag will be removed completely.

Relates to elastic#117581

(cherry picked from commit 52e0f21)

# Conflicts:
#	modules/dot-prefix-validation/build.gradle
#	test/framework/src/main/java/org/elasticsearch/test/InternalTestCluster.java
#	x-pack/plugin/security/src/internalClusterTest/java/org/elasticsearch/xpack/security/authc/esnative/ReservedRealmElasticAutoconfigIntegTests.java
@slobodanadamovic slobodanadamovic added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Jan 27, 2025
@elasticsearchmachine elasticsearchmachine merged commit 7245c05 into elastic:8.x Jan 27, 2025
@slobodanadamovic slobodanadamovic deleted the backport/8.x/pr-120323 branch January 27, 2025 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport v8.18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants