OpenSearch/plugin
Ali Beyad a68fb27a23 Upgrade security index to use only one (the default) index type (elastic/x-pack-elasticsearch#1780)
The .security index used several different types to differentiate the
documents added to the index (users, reserved-users, roles, etc).  Since
types are deprecated in 6.x, this commit changes the .security index
access layer to only use a single type and have all documents in the
index be of that single type.  To differentiate documents that may have
the same id (e.g. the same user name and role name), the appropriate
type of the document is prepended to the id.  For example, a user named
"jdoe" will now have the document id "user-jdoe".  

This commit also ensures that any native realm security index operations
that lead to auto creation of the security index first go through the process
of creating the internal security index (.security-v6) and creating the alias
.security to point to the internal index. 

Lastly, anytime the security index is accessed without having been
upgraded, an exception is thrown notifying the user to use the
upgrade API to upgrade the security index.

Original commit: elastic/x-pack-elasticsearch@cc0a474aed
2017-06-27 17:53:58 -04:00
..
bin/x-pack Remove path.conf setting 2017-06-26 15:18:49 -04:00
bwc Remove assemble from build task when assemble removed 2017-06-16 17:19:47 -04:00
config/x-pack Rename core plugin and transport dirs 2017-02-10 11:02:42 -08:00
keys Rename core plugin and transport dirs 2017-02-10 11:02:42 -08:00
licenses Update Netty to 4.1.11.Final 2017-05-12 15:54:05 -04:00
ml-cpp-snapshot Build: Switch ml snapshot dependency to a local project (elastic/x-pack-elasticsearch#1559) 2017-05-26 01:15:12 -07:00
src Upgrade security index to use only one (the default) index type (elastic/x-pack-elasticsearch#1780) 2017-06-27 17:53:58 -04:00
build.gradle Add analysis-common as test dependency to xpack plugin module. 2017-06-15 20:50:31 +02:00