Commit graph

40114 commits

Author SHA1 Message Date
Felix Stürmer
7fa30ba33e
[Logs UI] Load <LogStream> entries via async searches (#86899)
This PR replaces the usage of plain HTTP routes to load the log stream entries with async search strategy calls.
2021-02-02 15:42:27 +01:00
Dario Gieselaar
2a4d39aae4
[APM] Abort browser requests when appropriate (#89557)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-02 14:44:43 +01:00
ymao1
f3d7d37294
[Alerting] Allow user to select existing connector of same type when fixing broken connector (#89062)
* Adding dropdown for selecting different connector of same type

* Updating design

* Cleanup and i18n

* Adding functiional test

* Fixing unit test

* Fixing functional test

* Updating design

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-02 07:58:02 -05:00
Daniil
e73b3778ed
[Data Table] Use shared CSV export mechanism (#89702)
* Move formatting columns into response handler

* Use shared csv export

* Cleanup files

* Fix type

* Fix translation

* Filter out non-dimension values
2021-02-02 11:55:26 +02:00
Tiago Costa
b24f06cff2
chore(NA): improve logic check when installing Bazel tools (#89634)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-02 09:51:55 +00:00
Tiago Costa
a9e6c39d7f
chore(NA): support yarn install using bazel managed directories for dependencies (#89883)
* chore(NA): allow yarn dependencies to be installed when using bazel to manage yarn deps

* chore(NA): remove unused flag

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-02 09:49:50 +00:00
Rudolf Meijering
7fbec26594
Debug log the latest saved object migrations per type (#89722)
* Debug log the latest saved object migrations per type

* Fix broken test
2021-02-02 10:42:38 +01:00
Rudolf Meijering
69f4c9d541
Fix documentMigrator for snapshot releases (#89936) 2021-02-02 10:40:17 +01:00
Christos Nasikas
7a45fc45e1
[Alerts] ServiceNow SIR Connector (#88190)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-02 11:29:42 +02:00
Robert Oskamp
bdca03dcfd [ML] Functional tests - skip DFA clone tests 2021-02-02 09:47:23 +01:00
Justin Kambic
c38d9b0011
[Uptime] Fix synthetics detail step count (#89940)
* Add parameter to allow filtering by step type. Write tests.

* Delete unneeded fields.

* PR feedback.
2021-02-02 00:22:05 -05:00
Frank Hassanabad
2e5341d3db
Fixes the permissions to require cluster.manage in order to create an index and in order to update an index (#89947)
## Summary

Fixes error toaster on signals upgrades as well as creation of new signals if you have a user without a cluster manage privilege.

Simplest way to manually test both situations of a user on creating a new signal as well as upgrade is to first create a new role like so in dev tools:

```ts
PUT _security/role/reduced_permissions
{
   "indices":[
      {
         "names":[
            ".siem-signals-*",
            ".lists-*",
            ".items-*"
         ],
         "privileges":[
            "all"
         ],
         "field_security":{
            "grant":[
               "*"
            ]
         },
         "allow_restricted_indices":false
      }
   ],
   "applications":[
      {
         "application":"kibana-.kibana",
         "privileges":[
            "space_all"
         ],
         "resources":[
            "space:default"
         ]
      }
   ]
}
```

You might have to change this line above to match what your `kibana.index` is set to if it is set:
```ts
 "application" : "kibana-.kibana-hassanabad8",
```

Double check things in Stack Management to ensure you have access to at least default space:
<img width="1304" alt="Screen Shot 2021-02-01 at 5 45 54 PM" src="https://user-images.githubusercontent.com/1151048/106536383-906f3f00-64b5-11eb-97d3-060fa6f6206e.png">

Next add a user which has this role of `reduced_permissions` to login as that user. Next for testing that this causes an error toaster when there is no signals index is to either manually delete your signals index or change your `kibana.dev.yml` so that it thinks you have a new index:

```ts
xpack.securitySolution.signalsIndex: .siem-signals-some-new-index-name
```

Start up Kibana, login with the new user and visit any page and notice you get an error toaster like below:
<img width="808" alt="Screen Shot 2021-02-01 at 5 04 17 PM" src="https://user-images.githubusercontent.com/1151048/106535815-4afe4200-64b4-11eb-89b3-947b0e4ff7d5.png">

And also notice that you are blocked from viewing signals at this point:
<img width="1195" alt="Screen Shot 2021-02-01 at 5 04 43 PM" src="https://user-images.githubusercontent.com/1151048/106535835-56516d80-64b4-11eb-883c-2745b68843cf.png">

For upgrading signals manually, you can change the version number from dev tools or increment the number directly within this file and restart Kibana:
https://github.com/elastic/kibana/blob/master/x-pack/plugins/security_solution/server/lib/detection_engine/routes/index/get_signals_template.ts#L10

When you visit the detection page you will see the same error toaster and also be blocked. With this PR you will no longer be blocked.

### Checklist

Delete any items that are not applicable to this PR.

- [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2021-02-01 21:35:45 -07:00
Devin W. Hurley
0283ca031d
[Security Solution] [Detections] adds log info level for logging in cloud (#89941) 2021-02-01 22:50:42 -05:00
Devon Thomson
151457cd0d
[Time to Visualize] Dashboard By Value Testing Lens (#89581)
* added lens by value tests
2021-02-01 22:38:16 -05:00
Justin Kambic
1712387b8d
[Uptime] Expand synthetic journey step thumbnail on hover (#89179)
* Add desired hover functionality and a test.

* Switch render from img to EuiImage for step view.

* Create new module for ping_timestamp. Extract a function. Add a test.

* Extract nav buttons, translations. Add tests.

* Fix a typo.

* Extract caption to own file. Add tests.

* Extract no image display to dedicated file. Add aria label. Add tests.

* Make import path more explicit.

* Move step image popover to dedicated file. Add tests.

* Clean up inline code in timestamp component.

* Explicit var names.

* Simplicity.

* Fix refactoring issues in test files.

* Move translations to central file.

* Rename test for better accuracy.
2021-02-01 22:00:41 -05:00
Christiane (Tina) Heiligers
09c2ee7203
TS project refs: Migrates snapshot_restore to a TS Project (#89653)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-01 18:56:59 -07:00
Brandon Morelli
f91d7bf188
docs: APM 7.11 updates (#89789) 2021-02-01 17:03:14 -08:00
spalger
541637993f move skip to higher level (#86952) 2021-02-01 17:52:53 -07:00
spalger
f97958043f Revert "Migrations v2: don't auto-create indices + FTR/esArchiver support (#85778)"
This reverts commit 03636a07fe.
2021-02-01 17:46:45 -07:00
spalger
e051345765 Revert "Revert "Enable v2 so migrations, disable in FTR tests (#89297)""
This reverts commit 850c03c3a8.
2021-02-01 17:45:54 -07:00
spalger
850c03c3a8 Revert "Enable v2 so migrations, disable in FTR tests (#89297)"
This reverts commit c8afae8a51.
2021-02-01 17:45:24 -07:00
Lukas Olson
29e3886bcd
[data.search] Allow search response to follow new hits format (#88115)
* [data.search] Allow search response to follow new hits format

* Update docs

* Fix types

* Fix types

* Doc updates

* Remove declare module

* Remove declare module

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-01 17:06:32 -07:00
Kent Marten
2b0053ab6f
[Maps] Change 'create multi-layer map' title to be use-case focused (#89520)
* [maps] Top hits per entity--change to title to use recent, minor edits

* Updated TopHitsPerEntity title and description to use the term relevant

* Change create multi-layer map tutorial title to be use-case driven

* reverting change to TopHits topic

* Updated title of getting started with maps tutorial

* Updated title of getting started with maps tutorial

Co-authored-by: Kent Marten <kmartastic@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-01 16:02:20 -08:00
spalger
af6ed3f556 skip flaky suite (#86952) 2021-02-01 16:49:27 -07:00
Angela Chuang
69752fab37
[Security Solution] Remove focustrap (#89905)
* remove focustrap

* remove focustrap

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-01 23:09:53 +00:00
Scotty Bollinger
0d5554591f
[Workplace Search] Add remaining i18n support for the Content Sources tree (#89910)
* Add i18n for Org Sources

Refactored a bit as well.
- Removed unnecessary variable declarations for constants.
- Removed empty strings for optional props passed to ContentSection

* Add i18n for private sources

* Add router i18n

* Add i18n to SourcesView

* Fix duplicate IDd

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-01 16:55:00 -06:00
Spencer
6cf1951b53
[esArchiver] log when migrations complete and we're done loading data (#89938)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-02-01 15:51:00 -07:00
Kevin Qualters
3c0d30cbfd
Add --ssl flag to make resolver generator use ssl with kbn and elasticsearch clients (#89873) 2021-02-01 17:34:57 -05:00
Christiane (Tina) Heiligers
da28bd214c
TS project refs: Migrates grokdebugger (#89652) 2021-02-01 15:05:42 -07:00
Dmitry
2498f5719f
[load testing] add env vars to pass simulations and repo rootPath (#89544)
* [load testing] add env vars to pass simulations and repo rootPath

* pass simulation to sript as argument

* export GATLING_SIMULATIONS

* fix export

* add validation
2021-02-01 22:33:50 +01:00
Alison Goryachev
bae179eb32
[Upgrade Assistant] Fix getFlatSettings() request (#89616) 2021-02-01 15:36:25 -05:00
Larry Gregory
7b06c13087
Prevent autocompleting the username field (#88682)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-01 15:31:21 -05:00
Bhavya RM
d981391410
Addressing skipped a11y test on home with new data test subjects and redesign (#86531)
a11y tests for home page under default distribution
2021-02-01 15:21:54 -05:00
Nathan L Smith
5884daeba5
Remove circular dependecy between apm and infra (#89739)
* Move `getTraceUrl` in the APM plugin to `getApmTraceUrl` in the observability plugin and use that instead in infra.
* Remove unused APM plugin depenency in infra.
* Use `pathname` instead of `hash` in infra to apm link to avoid unnecessary redirect.
2021-02-01 14:09:33 -06:00
Oliver Gupte
07f8e48692
[APM] Consolidate various throughput calculations to a utility function (#89486) (#89578) 2021-02-01 12:05:56 -08:00
Alison Goryachev
6ea5889687
[Upgrade Assistant] Use kibana version value from core context (#89774) 2021-02-01 14:47:43 -05:00
Christiane (Tina) Heiligers
5c96da1e20
Migrate indexPatternManagement to TS project ref (#89759) 2021-02-01 12:24:07 -07:00
Quynh Nguyen
2f54078aed
[ML] Update cloning for jobs to use exclude_generated (#88898) 2021-02-01 13:06:37 -06:00
Mike Côté
51cfa90dc5
Add support for custom alert ids (#89814)
* Add support for custom alert ids

* UUID v4 also supported

* Change ESO custom id error message

* Update api integration test

* Use errors.createBadRequestError
2021-02-01 14:00:33 -05:00
Spencer
3f96892430
[jenkins/prs] report docs changes url in PR comments (#89454)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-01 11:43:38 -07:00
Mikhail Shustov
4380c49d38
remove type dependency between index_management and fleet (#89699)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-01 19:32:55 +01:00
Thomas Neirynck
391ab72be1
[Maps] Add table source for choropleth mapping (#89263) 2021-02-01 12:43:03 -05:00
Sandra Gonzales
16500d89c2
[Metrics UI] remove middle number in legend and adjust calculation of max number (#89020)
* get midpoint of max and min instead of half of max number

* remove middle tick from stepped gradient legend

* use value instead of max values to calculate bounds

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-01 12:27:36 -05:00
Christiane (Tina) Heiligers
9787911c5f
Migrates ingest_pipelines to a TS project ref (#89505)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-01 10:26:33 -07:00
Jen Huang
cb16a5c042
[Fleet] Update data streams mappings directly instead of against backing indices (#89660)
* Update data streams mappings directly instead of querying for backing indices, update integration tests to test with multiple namespaces

* Add flag to only update mappings of the current write index

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-01 09:24:12 -08:00
Patrick Mueller
e4c344ada6
[data] change KQL node builder to not generate recursive and/or clauses (#89345)
resolves https://github.com/elastic/kibana/issues/88367

Prior to this PR, the KQL node_builder code was using recursion to generate
"and" & "or" expressions.  Eg, `and(foo1=bar1, foo2=bar2, foo3=bar3)` would
be generated as if was specified as `and(foo1=bar1, and(foo2=bar2, foo3=bar3))`.

Calls to the builder with long lists of expressions would generate nested JSON
as deep as the lists are long.  This is problematic, as Elasticsearch is
changing the default limit on nested bools to 20 levels, and alerting already
generates nested bools greater than that limit.
See: https://github.com/elastic/elasticsearch/issues/55303

This PR changes the generated shape of above, so that all the nodes are at the
same level, instead of the previous "recursive" treatment.
2021-02-01 12:22:29 -05:00
Tim Sullivan
8701ac85d3
Deprecate CSV job type (#89794)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-01 09:36:49 -07:00
Angela Chuang
9f4dae82c5
[Security Solution] Push new case to the connector when created (#89131)
* init push case

* fix connectorToUpdate

* add unit test

* revert change

* remove useEffect after case created

* add unit test

* add cancel flag

* update unit test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-01 16:35:37 +00:00
James Gowdy
178637ce29
[ML] Fixing saved object authorization check when security is disabled (#89850)
* [ML] Fixing saved object authorization check when security is disabled

* updating to use mode.useRbacForRequest for check
2021-02-01 16:19:56 +00:00
Josh Dover
19332c097a
Deprecate and remove usages of elasticsearch.logQueries (#89296)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-01 08:40:25 -07:00