Commit Graph

2820 Commits

Author SHA1 Message Date
jaymode 0a7b4257f5 add type parameters to fix compilation
Original commit: elastic/x-pack-elasticsearch@0a8a16f9a0
2016-03-29 15:00:53 -04:00
jaymode c34598a3cd test: wait until threads are ready in MonitoringBulkTests#testConcurrentRequests
This commit synchronizes the start of the threads that are executing monitoring bulk requests concurrently
to ensure all threads are ready before starting. Without this some threads will execute requests while
other threads are still being constructed.

Original commit: elastic/x-pack-elasticsearch@e777fb5c28
2016-03-29 07:18:47 -04:00
jaymode 5ab407b2e0 test: handle update-by-query to update_by_query rename
Original commit: elastic/x-pack-elasticsearch@72ba860f3f
2016-03-29 06:34:04 -04:00
Tanguy Leroux 911f039e98 Merge pull request elastic/elasticsearch#1829 from tlrx/fix-build
Rename bin/xpack/esusers to /bin/xpack/users

Original commit: elastic/x-pack-elasticsearch@4150ae696a
2016-03-29 10:43:13 +02:00
Tanguy Leroux b8e8d7d246 Rename bin/xpack/esusers to /bin/xpack/users
Original commit: elastic/x-pack-elasticsearch@388eda9f24
2016-03-29 10:36:38 +02:00
Boaz Leskes 231f83febf Merge pull request elastic/elasticsearch#1826 from dakrone/allocation-explain
Add API endpoints for the cluster allocation explain API
Relates to elastic/elasticsearchelastic/elasticsearch#17305

Original commit: elastic/x-pack-elasticsearch@0bea108462
2016-03-29 08:44:46 +02:00
Lee Hinman c62ba37759 Add API endpoints for the cluster allocation explain API
Relates to https://github.com/elastic/elasticsearch/pull/17305

Original commit: elastic/x-pack-elasticsearch@839d8dc53c
2016-03-28 17:29:01 -06:00
Tim Sullivan a577402f5d Merge pull request elastic/elasticsearch#1825 from jbudz/monitoring-ui-version
monitoring ui: bump version

Original commit: elastic/x-pack-elasticsearch@c545dd35de
2016-03-28 12:46:19 -07:00
jaymode 2550548a44 shield: handle merging granted and non-granted indices acls
This commit changes the handling in the merge method of the IndexAccessControl class to
properly handle merging IndexAccessControl objects with differing values for the granted
flag. Prior to this commit, in a scenario where the flag differed, one IndexAccessControl granted
no access to an index, and the other granted access with DLS/FLS resulted in full access
being granted to the index.

Closes elastic/elasticsearch#1821

Original commit: elastic/x-pack-elasticsearch@e403e43689
2016-03-28 12:27:50 -04:00
jaymode 77e6622179 shield: remove the ability to specify username in request body
This commit removes the parsing of the username in the request body of a put user
request. Additionally, we use the name passed into the put role request builder rather
than the name from the parsed role descriptor.

Original commit: elastic/x-pack-elasticsearch@0a085d5844
2016-03-28 12:08:27 -04:00
jaymode 0d1f3da353 security: rename ESUsersRealm to FileRealm
This commit is the forward port of renaming the type for esusers to file. There is no
backwards compatibility maintained here. Additionally, a few other renames and
cleanups have been made:

* `esusers` commands is now `users`
* org.elasticsearch.shield.authc.esusers -> org.elasticsearch.shield.authc.file
* Validation.ESUsers -> Validation.Users
* ESUsersTool -> UsersTool
* ESUsersToolTests -> UsersToolTests
* ESNativeUsersStore -> NativeUsersStore
* ESNativeRolesStore -> NativeRolesStore.
* org.elasticsearch.shield.authz.esnative collapsed to org.elasticsearch.shield.authz.store
*  ESNativeTests -> NativeRealmIntegTests

Closes elastic/elasticsearch#1793

Original commit: elastic/x-pack-elasticsearch@d2a0c136f3
2016-03-28 06:18:57 -04:00
Chris Earle 7d481aab94 Making Watcher disabled by default for Monitoring Integration tests
Some tests [reasonably] fail due to unexpected indices appearing in the cluster due to Watcher.

- Also had to reset shieldEnabled as a static field, which makes no sense, but tests were failing unpredictably without it
    - Now they're passing unpredictably with it... will investigate

Original commit: elastic/x-pack-elasticsearch@9b6ce681d8
2016-03-25 18:45:24 -04:00
Chris Earle 5d3a608786 Fix checkstyle overrun
Original commit: elastic/x-pack-elasticsearch@c965dde2e1
2016-03-25 16:54:00 -04:00
Chris Earle 2cc197ef76 Merge pull request elastic/elasticsearch#1813 from pickypg/bugfix/monitoring-tests-should-randomly-run-watcher
Randomly Enable Watcher while running Monitoring Tests

Original commit: elastic/x-pack-elasticsearch@f3151ba61a
2016-03-25 16:35:02 -04:00
Chris Earle aacbeb2a81 Randomly Enable Watcher while running Monitoring Tests
This is required to make sure that the integration for monitoring the Watcher Threadpool is actually working.

- Also added the full property name when the assertContains check fails
- Made shieldEnabled an instance level field rather than a static one
- Added watcherEnabled field in the same fashion (including enableWatcher method that by default randomly enables it)
- Added method to locally filter the expected field names based on watcher being enabled for the failing test

Original commit: elastic/x-pack-elasticsearch@2c56e2f26f
2016-03-25 16:17:02 -04:00
Lukas Olson 0a10c26495 Merge pull request elastic/elasticsearch#1804 from lukasolson/feature/rename-shield
Security UI: Rename from "shield" to "security"

Original commit: elastic/x-pack-elasticsearch@a88ccd68f8
2016-03-25 12:47:16 -07:00
Lukas Olson 9b0f8b6835 Merge branch 'master' into feature/rename-shield
Original commit: elastic/x-pack-elasticsearch@95d5de18e9
2016-03-25 12:43:37 -07:00
Lukas Olson 51717029c4 Merge pull request elastic/elasticsearch#1738 from lukasolson/feature/login-redesign
Security UI: Redesign login page

Original commit: elastic/x-pack-elasticsearch@38ca9f800a
2016-03-25 12:37:51 -07:00
Lukas Olson d52add9f29 Merge remote-tracking branch 'upstream/master' into feature/rename-shield
Original commit: elastic/x-pack-elasticsearch@cdef13a255
2016-03-25 10:26:50 -07:00
Tanguy Leroux ea2be5d4d9 Merge pull request elastic/elasticsearch#1807 from tlrx/add-more-threadpool-stats
Monitoring: Add more thread pool stats

Original commit: elastic/x-pack-elasticsearch@b9e533b25d
2016-03-25 16:43:05 +01:00
Tanguy Leroux 2397158d20 Fix ClusterStateTests
Original commit: elastic/x-pack-elasticsearch@7bca8abe67
2016-03-25 16:40:38 +01:00
jaymode 1bf3a93e4f test: fix IndexPrivilegeTests after removal of predefined privileges
Original commit: elastic/x-pack-elasticsearch@6b913449b3
2016-03-25 10:43:30 -04:00
Tanguy Leroux a3807b078d Monitoring: Add more thread pool stats
This commit adds stats for generic/get/management/watcher thread pools.

Related to elastic/elasticsearch#1750

Original commit: elastic/x-pack-elasticsearch@8b001b50c6
2016-03-25 15:40:06 +01:00
jaymode 6fab4680a2 security: roles store poller should only update existing entries
Original commit: elastic/x-pack-elasticsearch@6573f4d689
2016-03-25 07:24:26 -04:00
Joe Fleming 7fbd30c801 Merge pull request elastic/elasticsearch#1741 from w33ble/reporting-license-check
Reporting license check

Original commit: elastic/x-pack-elasticsearch@a474374458
2016-03-24 16:11:21 -07:00
Lukas Olson 97ae1564aa Merge pull request elastic/elasticsearch#1802 from lukasolson/fix/skip-ssl-warning
Security UI: Show warning message if skipSslCheck is used

Original commit: elastic/x-pack-elasticsearch@f377071362
2016-03-24 15:59:40 -07:00
Lukas Olson b2d72a4fb3 Merge branch 'master' into fix/skip-ssl-warning
Original commit: elastic/x-pack-elasticsearch@2a8dd47b6b
2016-03-24 14:46:12 -07:00
Joe Fleming b223a36503 Merge pull request elastic/elasticsearch#1761 from w33ble/packager-dotfiles
More Packager Fixes

Original commit: elastic/x-pack-elasticsearch@a849be1320
2016-03-24 14:42:12 -07:00
Joe Fleming 312e1832b7 Merge pull request elastic/elasticsearch#1722 from w33ble/config-prefix
Use 'xpack' config prefix

Original commit: elastic/x-pack-elasticsearch@cbdcb26485
2016-03-24 14:34:01 -07:00
jaymode 929e179150 shield: put user should validate password length
This changes the put user request builder to validate password length when a
password is provided. The validation is the same as what we use in the file
based realm.

Closes elastic/elasticsearch#1800

Original commit: elastic/x-pack-elasticsearch@fde1d6c685
2016-03-24 15:25:22 -04:00
Lukas Olson 4a8c944f24 Merge pull request elastic/elasticsearch#1776 from lukasolson/fix/graph-ui-unauthorized
Graph UI: Fix error where authorization headers weren't sent with the request

Original commit: elastic/x-pack-elasticsearch@0ca1d76f62
2016-03-24 11:12:01 -07:00
Joe Fleming dd6c2b2aa7 Merge pull request elastic/elasticsearch#1792 from skearns64/fix_graph_icon
Invert graph icon, so it appears properly in Kibana v5

Original commit: elastic/x-pack-elasticsearch@f9c4396dfc
2016-03-24 11:06:28 -07:00
Alexander Reelsen cf6cadf19f Build: Move xpack to plugin group
This is needed in order to make `bin/elasticsearch-plugin install xpack`
work, as it expects the plugin in a certain path.

Original commit: elastic/x-pack-elasticsearch@252c55e5a8
2016-03-24 18:38:58 +01:00
jaymode ca9ebf5351 security: refresh before searching in pollers
This commit is the forward port of fixes made in 2.3 for the roles and users
pollers. The pollers now refresh since not all operations are guaranteed to
refresh.

The clear roles tests are also made more evil since the poller runs at different
intervals on each node and can sometimes run almost continuously. The
modification requests now randomize if they refresh or not as well.

Original commit: elastic/x-pack-elasticsearch@f61159c40a
2016-03-24 12:55:35 -04:00
Chris Earle ac6b5b7c25 Modifying based on review comments
Original commit: elastic/x-pack-elasticsearch@8e3b5f4c17
2016-03-24 11:47:49 -04:00
Chris Earle 87c3730244 Removing unnecessary JavaDoc
Original commit: elastic/x-pack-elasticsearch@083f5529ac
2016-03-24 11:47:49 -04:00
Chris Earle 43de1ff8da Modify the CleanerService to use a minimum
Users running the `CleanerService` should not be able to disable it (via a `-1` as the time setting) because they'll just shoot themselves in the foot. This PR changes the behavior to allow extensive amounts via the setting (e.g., they could set it to 2 years). By doing this via the `Setting`, we can avoid a lot of boilerplate code for verification as well. If we decide to allow it to be disabled, then the setting should be explicit. I've found that users tend to not understand setting times to `-1`.

With the internal `IndicesCleaner` runnable, I have also moved the rescheduling code to `onAfter` so that it always happens, even if the license makes it temporarily invalid.

I also think that we should allow the user to dynamically set the setting regardless of it being allowed -- and warn on it. This way they can set it when it's expired or during the trial, but it will take effect when they apply the paid license. I think that this will provide a better user experience so that they do not have to remember to re-set it later.

This also removes the `LocalExporter`-specific setting that allowed it to override the global retention. If we ever add another listener, then we should add exporter-specific settings to support this kind of functionality.

Adds some tests for the settings as well as for the service, while also removing now unneeded ones.

Original commit: elastic/x-pack-elasticsearch@3abd41807e
2016-03-24 11:47:49 -04:00
Nik Everett 8e3e19d8c6 Handle method rename in core
Original commit: elastic/x-pack-elasticsearch@43b5edbff0
2016-03-24 10:42:41 -04:00
Alexander Reelsen 2f267530a6 Set version 5.0.0-alpha1
Helping commit for changes in the core

Original commit: elastic/x-pack-elasticsearch@73c8e19a29
2016-03-24 08:36:43 +01:00
Areek Zillur 84d27b52be fix for removing suggest transport action in core elasticsearchelastic/elasticsearch#17198
Original commit: elastic/x-pack-elasticsearch@c8a742c9e4
2016-03-23 16:19:36 -04:00
Tim Sullivan d137932a9b Merge pull request elastic/elasticsearch#1779 from tsullivan/monitoring-ui-fix-nodestatsloadaverage
monitoring ui: node stats load_average changed to object

Original commit: elastic/x-pack-elasticsearch@b91ddcd7c8
2016-03-23 09:37:34 -07:00
Adrien Grand 71542594e6 ShieldIndexSearcherWrapper should create the scorer only once. elastic/elasticsearch#1725
Currently it first creates a scorer, then checks if the role bits are sparse,
and falls back to the bulk scorer if they are dense. The issue is that creating
scorers and bulk scorers is very expensive on some queries such as ranges,
prefix and terms queries. So it should rather check whether bits are sparse
first in order to decide whether to use the scorer or bulk scorer.

Original commit: elastic/x-pack-elasticsearch@067d630099
2016-03-23 11:38:30 +01:00
Adrien Grand 52a91d7c6f Fix compilation.
Original commit: elastic/x-pack-elasticsearch@83e6882b10
2016-03-23 11:10:45 +01:00
Tanguy Leroux fe97d2ba51 Monitoring: Add REST endpoint to allow external systems to index monitoring data
Original commit: elastic/x-pack-elasticsearch@04aa96a228
2016-03-23 10:12:00 +01:00
Tanguy Leroux 40dc747968 Monitoring: Add MonitoringClientProxy
Similar to WatcherClientProxy, the elasticsearch client used in exporters must be proxied to avoid circular dependencies at Guice's injection time. This commit add a MonitoringClientProxy as well as a MonitoringClient to be used later in monitoring's transport actions.
(cherry picked from commit b70c095)

Original commit: elastic/x-pack-elasticsearch@17327cffe5
2016-03-23 09:21:33 +01:00
Tim Sullivan 8b2d101c82 Merge pull request elastic/elasticsearch#1773 from tsullivan/monitoring-ui-no-run-build-testfiles
monitoring ui: don't run test files living in the build directory

Original commit: elastic/x-pack-elasticsearch@4c98d88554
2016-03-22 15:07:07 -07:00
Jim Ferenczi a56a5dd193 Merge pull request elastic/elasticsearch#1766 from jimferenczi/xpack_isolation
xpack plugin can be isolated now that we have xpack extension support

Original commit: elastic/x-pack-elasticsearch@933f4acf23
2016-03-22 15:58:17 +01:00
Jim Ferenczi 1fa22c921a xpack plugin can be isolated now that we have xpack extension support
Original commit: elastic/x-pack-elasticsearch@9f742c754f
2016-03-22 15:27:30 +01:00
Jim Ferenczi d09bdc341b Merge pull request elastic/elasticsearch#1765 from jimferenczi/remove_sigar
Remove sigar from the x-pack windows script classpath

Original commit: elastic/x-pack-elasticsearch@7810ebfe65
2016-03-22 15:17:33 +01:00
Jim Ferenczi cc152a867a Remove sigar from the x-pack windows script classpath
Original commit: elastic/x-pack-elasticsearch@247e945ff5
2016-03-22 15:07:03 +01:00