Module org.elasticsearch.security
Class SecuritySystemIndices
java.lang.Object
org.elasticsearch.xpack.security.support.SecuritySystemIndices
Responsible for handling system indices for the Security plugin
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEvery change to the mapping of .security index must be versioned. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSecurity managed index mappings used to be updated based on the product version.static final intstatic final Stringstatic final Stringstatic final NodeFeaturestatic final Stringstatic final NodeFeaturestatic final NodeFeaturestatic final NodeFeaturestatic final Stringstatic final Version -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(Client client, FeatureService featureService, ClusterService clusterService)
-
Field Details
-
INTERNAL_MAIN_INDEX_FORMAT
public static final int INTERNAL_MAIN_INDEX_FORMAT- See Also:
-
SECURITY_MAIN_ALIAS
- See Also:
-
SECURITY_TOKENS_ALIAS
- See Also:
-
INTERNAL_SECURITY_PROFILE_INDEX_8
- See Also:
-
SECURITY_PROFILE_ALIAS
- See Also:
-
VERSION_SECURITY_PROFILE_ORIGIN
-
SECURITY_PROFILE_ORIGIN_FEATURE
-
SECURITY_MIGRATION_FRAMEWORK
-
SECURITY_ROLES_METADATA_FLATTENED
-
SECURITY_ROLE_MAPPING_CLEANUP
-
BWC_MAPPINGS_VERSION
Security managed index mappings used to be updated based on the product version. They are now updated based on per-index mappings versions. However, older nodes will still look for a product version in the mappings metadata, so we have to put something in that field that will allow the older node to realise that the mappings are ahead of what it knows about. The easiest solution is to hardcode 8.14.0 in this field, because any node from 8.14.0 onwards should be using per-index mappings versions to determine whether mappings are up-to-date.- See Also:
-
-
Constructor Details
-
SecuritySystemIndices
-
-
Method Details
-
getSystemIndexDescriptors
-
init
-
getMainIndexManager
-
getTokenIndexManager
-
getProfileIndexManager
-