mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 13:08:29 +00:00
jaymode
1e6a924e74
security: add support for disabling users
This change adds support for disabling users. Users can be disabled by setting the enabled property to false and the AuthenticationService will check to make sure that the user is enabled. If the user is not enabled, this will be audited as an authentication failure. Also as part of this work, the AnonymousUser was cleaned up to remove having a static instance that caused issues with tests. Finally, the poller of users was removed to simplify the code in the NativeUsersStore. In our other realms we rely on the clear cache APIs and the timeout of the user cache. We should have the same semantics for the native realm. Closes elastic/elasticsearch#2172 Original commit: elastic/x-pack-elasticsearch@0820e40183
= Elasticsearch X Plugins A set of Elastic's commercial plugins: - License - Security - Watcher - Monitoring = Setup You must checkout x-plugins and elasticsearch in the same directory as siblings. This elasticsearch checkout will be used when building x-plugins. = Build - Run unit tests: + [source, txt] ----- gradle clean test ----- - Run all tests: + [source, txt] ----- gradle clean check ----- - Run integration tests: + [source, txt] ----- gradle clean integTest ----- - Package X-Pack (wihtout running tests) + [source, txt] ----- gradle clean assemble ----- - Install X-Pack (wihtout running tests) + [source, txt] ----- gradle clean install ----- - If you don't work on the UI side of x-plugins, you can force gradle to skip building kibana by adding `xpack.kibana.build=false` to your `~/.gradle/gradle.properties`. Alternatively you add `-Pxpack.kibana.build=false` on the command line if you only want to do this on individual builds (or `-Pxpack.kibana.build=true` if you need to override having added this to your `gradle.properties`).
Description
Languages
Java
99.5%
Groovy
0.4%