Commit Graph

3126 Commits

Author SHA1 Message Date
Joe Fleming a5e4498833 Merge pull request elastic/elasticsearch#2278 from w33ble/expose-user
Expose getUser on the server object

Original commit: elastic/x-pack-elasticsearch@7ca6a88cc4
2016-05-20 09:24:49 -07:00
uboness 27db7c40b1 addressed review comments
Original commit: elastic/x-pack-elasticsearch@01552f5e82
2016-05-20 13:11:41 +01:00
uboness 084179f457 Added security realm feature usage stats
- if active, `file` realm size
- if active, `native` realm size
- if active, `ldap` realm size, whether SSL is used, load balance type used, user search used
- if active, `active_directory` realm size, whether SSL is used, load balance type used

 `size` is scale estimation based on the local cache. Scales are: `small` (under 10 users), `medium` (under 50 users), `large` (under 250 users) and `x-large` (above 250 users).

Original commit: elastic/x-pack-elasticsearch@c6efb17aa4
2016-05-20 13:11:41 +01:00
uboness 9dbbfd09f8 Introducing infrastructure for feature usage API
- Each `XPackFeatureSet` can now return a `Usage` object that encapsulates the feature usage stats of the set
- A new `/_xpack/usage` REST API is introduced to access the usage stats of all features
- Intentionally not explicitly exposing the API in the `XPackClient` as this API is primarily meant for use by Kibana X-Pack (that said, it is still possible to call this API from the transport client using the `XPathUsageRequestBuilder`)
- For now the usage stats that are returned are minimal, once this infrastructure is in, we'll start adding more stats

Relates to elastic/elasticsearch#2210

Original commit: elastic/x-pack-elasticsearch@d651fe4b01
2016-05-20 13:11:41 +01:00
jaymode d552574016 test: set logger level differently after removal of support for es.* system properties
Original commit: elastic/x-pack-elasticsearch@fcaa9bbcff
2016-05-20 08:11:26 -04:00
jaymode 71b78579a1 test: ensure address is resolvable in CertUtilsTests#testSubjectAlternativeNames
We check for an expected length but this is only valid if the address can be resolved and on some systems
127.0.0.1 may not map to a name.

Original commit: elastic/x-pack-elasticsearch@2f7c8da242
2016-05-20 08:10:55 -04:00
Joe Fleming 8dd7be3f07 Merge pull request elastic/elasticsearch#2299 from lukasolson/fix/default-encryption-key
Default xpack.security.encryptionKey if not set

Original commit: elastic/x-pack-elasticsearch@7cf53e293a
2016-05-19 17:11:04 -07:00
Areek Zillur 26a07766f0 fix license notification test bug
Original commit: elastic/x-pack-elasticsearch@ec1257d3e1
2016-05-19 18:20:01 -04:00
Areek Zillur a2a267d68d Merge branch 'master' into fix/remove-license
Original commit: elastic/x-pack-elasticsearch@d5c6e64ced
2016-05-19 17:19:50 -04:00
Areek Zillur a2993810f9 Fix rest test to adapt to license removal behaviour
Now we explicitly install a license in rest test cluster

Original commit: elastic/x-pack-elasticsearch@59cc837d0f
2016-05-19 17:15:04 -04:00
Shaunak Kashyap 23031c21d3 Merge pull request elastic/elasticsearch#2246 from ycombinator/gh-2001
Handle security feature being disabled, license being basic, or license being expired

Original commit: elastic/x-pack-elasticsearch@42a6170595
2016-05-19 15:46:33 -05:00
Jason Tedor ded4c2278c Remove settings and system properties entanglement
This commit removals the usage of system properties as settings from the
command scripts and the commands themselves.

Relates elastic/elasticsearch#2206

Original commit: elastic/x-pack-elasticsearch@b0a3b895b1
2016-05-19 14:09:49 -04:00
Joe Fleming d34a20f8c8 Merge pull request elastic/elasticsearch#2288 from ycombinator/reporting-license-check-defensive-code
Make license check module more defensive

Original commit: elastic/x-pack-elasticsearch@39f9619c48
2016-05-19 09:50:45 -07:00
Tanguy Leroux 5161b540a9 Move unneeded log info messages to debug
closes  elastic/elasticsearch#2228, elastic/elasticsearch#2227

Original commit: elastic/x-pack-elasticsearch@558751c424
2016-05-19 17:28:20 +02:00
Ali Beyad d6179855bd Renamed AggregatorBuilder to AggregationBuilder, applying the changes to
x-plugins.

Closes elastic/elasticsearch#2263
Relates elastic/elasticsearch#18377

Original commit: elastic/x-pack-elasticsearch@6d1a698669
2016-05-19 09:28:53 -04:00
Chris Earle 87c085d857 Better approach to skipping license check for subprojects
Original commit: elastic/x-pack-elasticsearch@8624ab08cc
2016-05-19 02:41:03 -04:00
Chris Earle 93ca4db1ce Remove duped plugin application from Gradle script.
Original commit: elastic/x-pack-elasticsearch@6745b39c82
2016-05-19 02:20:55 -04:00
Chris Earle c94a326f1d Split monitoring smoke tests into separate smoke tests
There is a race condition between the smoke tests that get run because of the teardown conditions of
REST tests. By splitting them, we can avoid the unrealistic scenario/race condition.

Original commit: elastic/x-pack-elasticsearch@f95ae0e595
2016-05-19 02:08:33 -04:00
Areek Zillur 703dfda921 Merge branch 'master' into fix/remove-license
Original commit: elastic/x-pack-elasticsearch@1e84c8431d
2016-05-18 16:16:53 -04:00
Chris Earle c754f7cf08 Fixing grammar in GRADLE.CHEATSHEET
Original commit: elastic/x-pack-elasticsearch@3adf64d641
2016-05-18 14:17:13 -04:00
Chris Earle 5496fd3407 Adding more Gradle cheatsheet info
Original commit: elastic/x-pack-elasticsearch@4439769da6
2016-05-18 14:14:25 -04:00
Chris Earle 10c48c2847 Adding more Gradle info
Original commit: elastic/x-pack-elasticsearch@d451020dfc
2016-05-18 14:00:00 -04:00
Chris Earle 0c2b4f9ff3 Updating Gradle cheatsheet
Original commit: elastic/x-pack-elasticsearch@94a2379d74
2016-05-18 13:51:46 -04:00
Chris Earle cb8774aa2c Add asciidoc extension to GRADLE.CHEATSHEET so that GitHub renders it
Original commit: elastic/x-pack-elasticsearch@d05f0280a3
2016-05-18 13:42:25 -04:00
Chris Earle ecf4c30979 Rename /_x-pack/monitoring/* to /_xpack/monitoring/*
This PR just drops the - in the existing REST API name by changing the base MonitoringRestHandler to extend
XPackRestHandler instead of BaseRestHandler directly, and using its URI_BASE.

Original commit: elastic/x-pack-elasticsearch@1bed2dba31
2016-05-18 13:26:00 -04:00
Jason Tedor 5bf3b7054c Fix compilation from FsInfo#<init> change in core
This commit fixes some test compilation issues due to upstream changes
in core that added I/O statistics on Linux.

Original commit: elastic/x-pack-elasticsearch@a0877aa0aa
2016-05-17 20:51:54 -04:00
Joe Fleming a4f4cd5203 Merge pull request elastic/elasticsearch#2272 from w33ble/snapshot-flag
Build flags to allow version modification

Original commit: elastic/x-pack-elasticsearch@12dea4b9c8
2016-05-17 14:40:31 -07:00
Areek Zillur a134ec613d Merge pull request elastic/elasticsearch#2258 from areek/fix/2230
Fix license log message levels

Original commit: elastic/x-pack-elasticsearch@c1fe244dd8
2016-05-17 15:09:05 -04:00
Jonathan Budzenski 294a939d9d Merge pull request elastic/elasticsearch#2264 from jbudz/ui-kibana-mappings
monitoring: add kibana mappings

Original commit: elastic/x-pack-elasticsearch@c105aca8b8
2016-05-17 13:15:31 -05:00
Tanguy Leroux a8ed2fa69c Monitoring: Update REST/test namespace
Related to elastic/elasticsearch#1702

Original commit: elastic/x-pack-elasticsearch@6000fd4010
2016-05-17 09:35:25 +02:00
Chris Earle 18919115c1 Updating test to try to get it to actually run Monitoring. This should not have any effect, but the test passes locally 100% of the time and fails remotely 100% of the time...
Original commit: elastic/x-pack-elasticsearch@c3b16b8238
2016-05-16 18:41:26 -04:00
Tim Sullivan de00c7575f Merge pull request elastic/elasticsearch#2252 from tsullivan/monitoring-ui-fix-multicluster-support
Monitoring UI: Fix Multicluster Support / Basic License rules

Original commit: elastic/x-pack-elasticsearch@5af942235e
2016-05-16 14:56:50 -07:00
Jonathan Budzenski b469eef1a2 monitoring ui: change mappings double -> float
Original commit: elastic/x-pack-elasticsearch@6c7c166aec
2016-05-16 16:55:01 -05:00
Jonathan Budzenski 92a58c7c07 monitoring ui: update mappings, align agent version with elasticsearch version
Original commit: elastic/x-pack-elasticsearch@1a9a4fc96e
2016-05-16 15:30:56 -05:00
Jonathan Budzenski bf229d0090 monitoring ui: update mappings
Original commit: elastic/x-pack-elasticsearch@ae5703f10a
2016-05-16 15:21:58 -05:00
Areek Zillur 81e14c5617 Fix license log message levels
Now we log license expiry, invalid and grace message as warn and log license valid message as debug

closes elastic/elasticsearch#2230

Original commit: elastic/x-pack-elasticsearch@569c169136
2016-05-15 20:45:10 -04:00
Chris Earle 946cbfb997 Remove default index code from _x-pack/monitoring/_bulk
With the API no longer accepting {index}, we no longer need the code that supported it.

Original commit: elastic/x-pack-elasticsearch@5d0ae37caa
2016-05-14 15:10:04 -04:00
Shaunak Kashyap 7d0a210813 Merge branch 'master' into gh-2001
Original commit: elastic/x-pack-elasticsearch@7ebbf816d5
2016-05-13 21:58:41 -07:00
Lukas Olson 71654d76e7 Merge pull request elastic/elasticsearch#2237 from lukasolson/feature/show-username
Show username in sidebar

Original commit: elastic/x-pack-elasticsearch@ab712f1c6b
2016-05-13 16:50:44 -07:00
Chris Earle 73ba90b863 Disallow {index} being specified at the top level of _xpack/monitoring/_bulk
The general use case is to provide only the {type} to the bulk and even that may not be specified. However,
by setting it up as

/_x-pack/monitoring/{type}/_bulk
/_x-pack/monitoring/{index}/{type}/_bulk

it fails to properly recognize the {type} parameter because the PathTrie that gets generated sees two wildcards
at the same location and the last one specified wins -- {index}. As a result, it's impossible to only set the
{type} without making the PathTrie logic convoluted for a niche use case (a list to try instead of a single path).

his fixes the issue by removing the completely unused option: you can no longer specify {index} outside of
individual bulk indexing operations. If we see a need to bring it back, then we can add it as an API param, but
that is an unusual place for the index field and I do not expect it to be needed that frequently.

Original commit: elastic/x-pack-elasticsearch@40d0d05404
2016-05-13 18:12:04 -04:00
Tim Sullivan d610c02a6d Merge pull request elastic/elasticsearch#2253 from tsullivan/docs-monitoring-ui-server-properties
docs: additional server properties for configuration in Kibana

Original commit: elastic/x-pack-elasticsearch@099b99b45d
2016-05-13 13:10:13 -07:00
Lukas Olson 20f853ae94 Merge pull request elastic/elasticsearch#2244 from lukasolson/fix/remove-xpack-password
Remove xpack.security.kibana.password setting

Original commit: elastic/x-pack-elasticsearch@15b342bf24
2016-05-13 12:59:29 -07:00
Lukas Olson 547e0cfd3c Merge branch 'master' into fix/remove-xpack-password
Original commit: elastic/x-pack-elasticsearch@50e8be9f0e
2016-05-13 12:57:29 -07:00
Lukas Olson b576cccde9 Merge branch 'master' into feature/show-username
Original commit: elastic/x-pack-elasticsearch@40649abc6c
2016-05-13 12:54:48 -07:00
Robert Muir 91426062c1 update mock script engines to take name parameter
Original commit: elastic/x-pack-elasticsearch@c6c48eca39
2016-05-13 15:42:23 -04:00
Lukas Olson 0beefb5299 Merge pull request elastic/elasticsearch#1893 from lukasolson/feature/shield-ui
Security UI: User & role management

Original commit: elastic/x-pack-elasticsearch@c9b0fd286a
2016-05-13 11:38:27 -07:00
Lukas Olson 749eb296ca Merge branch 'master' into feature/shield-ui
Original commit: elastic/x-pack-elasticsearch@bcda7dd9b0
2016-05-13 11:31:39 -07:00
Lukas Olson b3d74da488 Merge branch 'master' into feature/show-username
Original commit: elastic/x-pack-elasticsearch@d4035a412f
2016-05-13 11:17:29 -07:00
Lukas Olson ba13e15417 Merge pull request elastic/elasticsearch#2222 from lukasolson/feature/on-session-timeout
Show warning message as session is about to time out

Original commit: elastic/x-pack-elasticsearch@378383e151
2016-05-13 11:16:33 -07:00
Lee Hinman 31d84f6d27 Merge pull request elastic/elasticsearch#2251 from dakrone/only-one-extension
Fix compilation for only one script language extension

Original commit: elastic/x-pack-elasticsearch@925974fa50
2016-05-13 10:31:57 -06:00