Commit Graph

3665 Commits

Author SHA1 Message Date
Lee Hinman 88d0d4ddf5 Merge remote-tracking branch 'dakrone/fix-too-strict-validation'
Original commit: elastic/x-pack-elasticsearch@efb2d5ece6
2016-06-24 12:18:38 -06:00
Lee Hinman 4990296a5c Remove too-strict validation of role names
When parsing the privileges, we now no longer throw an exception if
there haven't been any names parsed out. This is not an issue though,
because we validate that the `names` array is not empty when we parse
it, and that it's not `null` before returning from the function.

Adds a rest test that sends things out of order to test this still
works.

Resolves elastic/elasticsearch#2606

Original commit: elastic/x-pack-elasticsearch@62a38bea8f
2016-06-24 12:00:24 -06:00
Robert Muir 8dce698219 Merge pull request elastic/elasticsearch#2571 from rmuir/restore_order
improve painless slack example

Original commit: elastic/x-pack-elasticsearch@3add93c1f4
2016-06-24 12:27:53 -04:00
Alexander Reelsen f78f848681 Watcher: Fix acknowledgement REST API endpoints
Add new REST API endpoint to acknoweldging actions. The old endpoints
have not been removed as part of this PR, but can be in the next major
version.

Update the documentation to remove the parameter based example, and
mention that the old endpoints are going to be removed in the future.

Closes elastic/elasticsearch#2517

Original commit: elastic/x-pack-elasticsearch@e2558e9e1f
2016-06-24 16:50:35 +02:00
Tanguy Leroux 6ed9f50457 Fix SearchInputIT.testSearchInlineTemplate
The search type is overridden from default to query_and_fetch by the search action if the number of shards to request is equal to 1

Original commit: elastic/x-pack-elasticsearch@a9552c697c
2016-06-24 09:19:59 +02:00
Joe Fleming d52418d92e Merge pull request elastic/elasticsearch#2565 from w33ble/fix/reporting-phantom-path
Fix Phantom unpacking on Distro packages

Original commit: elastic/x-pack-elasticsearch@4a59fbff64
2016-06-23 12:49:55 -04:00
Joe Fleming 742a807907 Merge branch 'master' into fix/reporting-phantom-path
Original commit: elastic/x-pack-elasticsearch@badcc6f883
2016-06-23 11:18:54 -05:00
Yannick Welsch 74efdd4a94 Disable failing test NodeStatsTests.testNodeStats
Original commit: elastic/x-pack-elasticsearch@954badc4a4
2016-06-23 13:36:06 +02:00
Tanguy Leroux a20fb42b70 Fix SearchInputIT.testSearchIndexedTemplate
Original commit: elastic/x-pack-elasticsearch@4011a7bc9b
2016-06-23 12:33:49 +02:00
Tanguy Leroux 77a641b0fc Mute SecurityCachePermissionIT as it was before
Original commit: elastic/x-pack-elasticsearch@89c40f7bc0
2016-06-23 10:26:45 +02:00
Yannick Welsch b3ba1be659 Fix checkstyle line length limit
Original commit: elastic/x-pack-elasticsearch@717ab001d1
2016-06-23 10:01:02 +02:00
Tanguy Leroux 99ade96091 Watcher: Remove usage of SearchRequest's template support
Template support is going to be removed from the Search API to its own Search Template API in the lang-mustache module (see elastic/elasticsearch#17906, elastic/elasticsearch#18765). This commit changes Watcher's SearchInput and SearchTransform classes so that it now uses a WatcherSearchTemplateRequest that contains both the search request and the template. Search request and template are rendered using WatcherSearchTemplateRequestService before being executed.

Original commit: elastic/x-pack-elasticsearch@bfa16ab80f
2016-06-23 09:31:47 +02:00
Alexander Reelsen f6abf979ce Fixed compilation issue
Relates elastic/elasticsearchelastic/elasticsearch#18914

Original commit: elastic/x-pack-elasticsearch@35b6960b9e
2016-06-23 09:06:02 +02:00
Lukas Olson 14896b174e Merge pull request elastic/elasticsearch#2573 from lukasolson/fix/all-fields
[security-ui] Default new roles to have access to all fields

Original commit: elastic/x-pack-elasticsearch@535a0287e8
2016-06-22 11:30:42 -07:00
Tim Sullivan 56798c59b7 Merge pull request elastic/elasticsearch#2564 from tsullivan/monitoring-ui-overview-welcome-msg
monitoring ui: provide welcome message on new overview

Original commit: elastic/x-pack-elasticsearch@dcd92d2ea0
2016-06-22 10:33:56 -07:00
Tim Sullivan 14c49b4af9 Merge pull request elastic/elasticsearch#2578 from tsullivan/monitoring-ui-alpha4-rc-fix-kibanainstanceslink
Monitoring UI: Fix link in header of Kibana panel

Original commit: elastic/x-pack-elasticsearch@e59b678b0b
2016-06-22 10:32:02 -07:00
Nik Everett 9aecf6330a Handle core removing addField
It is addStoredField now.

Original commit: elastic/x-pack-elasticsearch@265d716b31
2016-06-22 12:45:25 -04:00
javanna ffae647b8b [TEST] remove start and stop watcher from XPackRestTestCase
We were ignoring the response code which is always 401 because the license is not good to start watcher. Plus all tests run fine without these methods.

Original commit: elastic/x-pack-elasticsearch@f93e1c2777
2016-06-22 15:51:53 +02:00
Alexander Reelsen 5883efc976 Watcher: Remove support for _timestamp field in index action (elastic/elasticsearch#2575)
The watch index action was using the _timestamp field by default.
This functionality now needs to be configured explicitely for a special
field that is part of that document which is going to be indexed.

Relates elastic/elasticsearchelastic/elasticsearch#18980

Original commit: elastic/x-pack-elasticsearch@dfa4cf2296
2016-06-22 14:31:27 +02:00
Luca Cavanna 694a91cd2f Merge pull request elastic/elasticsearch#2433 from javanna/feature/http_client
Low level RestClient

Original commit: elastic/x-pack-elasticsearch@7a0c0eb9e6
2016-06-22 09:59:57 +02:00
javanna 1ea3397956 Merge branch 'master' into feature/http_client
Original commit: elastic/x-pack-elasticsearch@cb39e935d5
2016-06-22 09:50:28 +02:00
Alexander Reelsen 4f55896af8 Tests: Fix ManualPublicSmtpServersTester to make it work again
Original commit: elastic/x-pack-elasticsearch@8cf12ed485
2016-06-22 08:40:25 +02:00
Lukas Olson f62ed15929 Merge pull request elastic/elasticsearch#2540 from epixa/2045-401redirect
security: Auth redirects determined by kbn-version header

Original commit: elastic/x-pack-elasticsearch@ad5777d52c
2016-06-21 10:23:36 -07:00
Joe Fleming 37cef8f978 Merge branch 'master' into reporting-controls
Original commit: elastic/x-pack-elasticsearch@c5639eeb17
2016-06-21 10:48:07 -04:00
javanna a030239c9e Merge branch 'master' into feature/http_client
Original commit: elastic/x-pack-elasticsearch@6437c6572d
2016-06-21 16:22:25 +02:00
Joe Fleming 493b437673 Merge branch 'master' into fix/reporting-phantom-path
Original commit: elastic/x-pack-elasticsearch@05da659188
2016-06-21 09:50:12 -04:00
Martijn van Groningen 52bdda62c7 fixed compile error caused by change in core
Original commit: elastic/x-pack-elasticsearch@92e4939d8f
2016-06-21 09:38:25 +02:00
Daniel Mitterdorfer d5e7536766 Adjust line length in ChainTransformTests to 140 chars
Original commit: elastic/x-pack-elasticsearch@bbced70aa7
2016-06-21 07:28:00 +02:00
Shaunak Kashyap 91174ae066 Merge pull request elastic/elasticsearch#2537 from ycombinator/license-checking-cleanup
License checking cleanup

Original commit: elastic/x-pack-elasticsearch@e666b13b70
2016-06-20 20:18:07 -05:00
Lukas Olson 5169891eac Merge pull request elastic/elasticsearch#2370 from lukasolson/feature/account-settings
[security-ui] Create account settings page where password can be changed

Original commit: elastic/x-pack-elasticsearch@3d206d9492
2016-06-20 15:06:57 -07:00
Lukas Olson e5e3bea49f Merge pull request elastic/elasticsearch#2553 from lukasolson/fix/suggested-fields
[security-ui] Suggest fields instead of types when editing role

Original commit: elastic/x-pack-elasticsearch@eb6f55b963
2016-06-20 12:12:44 -07:00
Tim Sullivan 0dd0613ca2 Merge pull request elastic/elasticsearch#2550 from tsullivan/monitoring-ui-styles-clusteroverview
monitoring ui: styling fixes to cluster overview

Original commit: elastic/x-pack-elasticsearch@8ae4aa40fe
2016-06-20 11:03:46 -07:00
Tim Sullivan d8680b48d5 Merge pull request elastic/elasticsearch#2548 from tsullivan/monitoring-ui-fix-nodata-executor
monitoring ui: fix executor for no-data page

Original commit: elastic/x-pack-elasticsearch@9bbad70ede
2016-06-20 09:40:39 -07:00
Simon Willnauer a54d3bc3d5 Remove LazyInitializable and friends (elastic/elasticsearch#2558)
This class should have never existed, I fixed all places where we messed aroudn with this
and resolved dependencies or let guice deal with it.

Original commit: elastic/x-pack-elasticsearch@6a42c4153d
2016-06-20 17:25:30 +02:00
jaymode c024dbfc49 security: remove use of shield in files and directory names
This commit removes as much of the use of shield as possible in the source code.

See elastic/elasticsearch#2383

Original commit: elastic/x-pack-elasticsearch@00009cc06e
2016-06-20 10:26:10 -04:00
Simon Willnauer 0fcbf8c6ca Cleanup unnecessary modules and use current version across the board (elastic/elasticsearch#2556)
Followup for elastic/elasticsearchelastic/elasticsearch#18969

Original commit: elastic/x-pack-elasticsearch@c86a5969c7
2016-06-20 12:15:32 +02:00
Tanguy Leroux 24e9baeefb Remove scriptRemoved() method
Related to elastic/elasticsearch@18572

Original commit: elastic/x-pack-elasticsearch@ec43b58111
2016-06-20 10:33:18 +02:00
Lukas Olson f5d8a7c4e6 Merge branch 'master' into feature/account-settings
Original commit: elastic/x-pack-elasticsearch@6942ae6cb2
2016-06-17 13:54:20 -07:00
Tim Sullivan a2637da78a Merge pull request elastic/elasticsearch#2512 from elastic/monitoring-ui-kibana
Monitoring UI: Kibana Dashboards

Original commit: elastic/x-pack-elasticsearch@4279ab9601
2016-06-17 11:02:25 -07:00
jaymode dd7a43a93f security: optimize field level security for match all fields
This commit handles the use of `*` as a field in a role as effectively disabling field level
security. We do this to take advantage of caches that we disable when field level security
is active.

See elastic/elasticsearch#2407

Original commit: elastic/x-pack-elasticsearch@d96e18d57c
2016-06-17 11:49:36 -04:00
Areek Zillur b15753f0cc Merge branch 'enhancement/rollover_api'
Original commit: elastic/x-pack-elasticsearch@2d5bd5959e
2016-06-17 11:32:02 -04:00
Simon Willnauer 5e300fc1e4 Cleanup ClusterService dependencies and detached from Guice (elastic/elasticsearch#2542)
followup for elastic/elasticsearchelastic/elasticsearch#18941

Original commit: elastic/x-pack-elasticsearch@6b8680b5e9
2016-06-17 17:07:22 +02:00
Areek Zillur 384861ef75 Merge branch 'master' into enhancement/rollover_api
Original commit: elastic/x-pack-elasticsearch@0217fa2a12
2016-06-17 10:32:47 -04:00
Areek Zillur 568bf49578 add rollover to known actions
Original commit: elastic/x-pack-elasticsearch@296e4ea4c2
2016-06-17 10:32:28 -04:00
jaymode eeb964c886 security: default role checks authenticating realm
This change makes the default role check the authenticating realm when authorizing
a request for the current user (or run as user) where the user is trying to change their
own password. We need to do this, otherwise we open up the potential of a user in one
realm changing the password of a user in another realm.

As part of this work, the authentication service has been refactored and simplified. A
new object, Authentication, is now returned when authenticating. Currently, this object
contains the user, authenticating realm information, and if it is a run as request the
information of the realm that looked up the user.

Closes elastic/elasticsearch#2089

Original commit: elastic/x-pack-elasticsearch@3fd9c37a16
2016-06-17 10:31:54 -04:00
javanna 966fff2009 Merge branch 'master' into feature/http_client
Original commit: elastic/x-pack-elasticsearch@9c8cfc915f
2016-06-17 13:50:36 +02:00
jaymode 27958cc708 security: add charset to the WWW-Authenticate header
The WWW-Authenticate header can optionally specify the charset that the server uses after
decoding credentials. If this is not specified, most clients will limit the available characters to
ISO-8859-1, which causes issues for certain characters.

See RFC 7617

Closes elastic/elasticsearch#2290

Original commit: elastic/x-pack-elasticsearch@44411eebe7
2016-06-17 07:44:44 -04:00
Ryan Ernst cae76cc16c Merge pull request elastic/elasticsearch#2536 from rjernst/plugin_name_api
Remove name() and description() from plugin api

Original commit: elastic/x-pack-elasticsearch@717f3cfd0f
2016-06-16 14:35:32 -07:00
Ryan Ernst e985159f65 Merge branch 'master' into plugin_name_api
Original commit: elastic/x-pack-elasticsearch@ddc161e695
2016-06-16 14:34:23 -07:00
Areek Zillur 09b8495974 Merge branch 'master' into enhancement/rollover_api
Original commit: elastic/x-pack-elasticsearch@f7a6e27f12
2016-06-16 17:28:14 -04:00