Commit graph

30 commits

Author SHA1 Message Date
Nicolas Chaulet
441a0d4ec9
[Fleet] Move ingestManager plugin to fleet (#82886) 2020-11-09 11:07:04 -05:00
Jonathan Buttner
cd9381c118
[Security Solution][Resolver] Data stream fields being populated (#80216)
* Data stream fields being populated

* Adding some comments

* Switching data stream options to specific functions

* Removing unneeded import

* Refactoring based on Brent's feedback
2020-10-15 12:33:53 -04:00
Dan Panzarella
5514eca36c
[Security Solution] Use Agent.id for endpoint pivot ID (#74272)
* switch endpoint meta query to use agent.id

* update policy route to use agent ID

* update policy unit test, with schema change

* security front-end use agent.id as identifier

* update test to check the right field

* update SIEM to get endpoint data by agent.id

* fix type in test, but need to fix data, will still fail

* test: pull agent ID from esarchive data

* magnets, how do they work?

* cleanup

* apparently this test works differently now

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-14 10:28:31 -04:00
Jonathan Buttner
591585df17
[Security Solution] [Resolver] Remove related events api (#79036)
* Removing old related events route

* Removing outer describe block

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-12 13:22:33 -04:00
Nicolas Chaulet
c355dfebab
[Ingest Manager] Move config from xpack.ingestManager to xpack.fleet (#79406) 2020-10-06 11:58:09 -04:00
Nicolas Chaulet
4a160bff80
[Ingest Manager] Rename API /api/ingest_manager => /api/fleet (#79193) 2020-10-06 10:30:21 -04:00
Jonathan Buttner
cc633a4a91
[Security Solution] Adding tests for dns pipeline in the endpoint package (#79177)
* Adding tests for dns pipeline in the endpoint package

* Adding test to make sure non dns events are ingested correctly

* Bring the docker container with the new endpoint package

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-05 10:11:28 -04:00
Jonathan Buttner
92ff5178c6
[Security Solution][EPM] Reenabling the ingest and endpoint tests (#79290)
* Reenabling the ingest and endpoint tests

* Fixing list test and reenabling security functional tests
2020-10-02 14:15:03 -04:00
Jen Huang
6d8f74a128
[Ingest Manager] Match package spec dataset->data_stream and config_templates->policy_templates renaming (#78699)
* Match elastic/package-spec#24 `datasets`->`data_streams` property renaming

* Match elastic/package-spec#24 `datasets.name`->`data_streams.dataset` property renaming

* Match elastic/package-spec#24 `/dataset`->`/data_stream` directory renaming

* Match elastic/package-spec#50 `config_templates`->`policy_templates` property renaming

* Update API integration test fixtures (test packages)

* Temporarily skip API integration tests

* Temporarily skip more API integration tests

* Pin to custom docker image, unskip test suites, clean up broken icon paths in test package manifests

* Skip the only (yay!) failing test suite

* Revert "Skip the only (yay!) failing test suite"

This reverts commit 3db32e2528.

* Re-skip tests and revert docker image

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-01 10:57:19 -07:00
Kevin Logan
2377d12e7d
[SECURITY_SOLUTION] unskip tests after fixing Kibana and package (#78954) 2020-09-30 17:44:16 -04:00
nnamdifrankie
9e9a48be62
78024: move transform out of dataset (#78216)
* 78024: move transform out of dataset

* Change index prefix

* 78024: fix tests, remove vestiges

* 78024: remove index defined in the transform when transform is removed.

* 78024: clean up

* 78024: fix build

* 78024: add comment

* 78024: remove test I added

* 78024: more removal, will add in next PR

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-29 10:30:04 -04:00
Jonathan Buttner
8081a85eae
[Security Solution] Create new events api (#78326)
* Creating new events route

* Trying to get github to recognize the indent change

* Using paginated name for events api return type

* Updating comment

* Updating comment

* Adding deprecated comments

* Adding more comments

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-24 13:25:20 -04:00
Spencer
d4232c5b02
skip security solution tests that are preventing es snapshot promotion (#78366)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-09-23 22:40:03 -07:00
Kevin Logan
0ed3a5f303
skip tests for old pacakge (#78194) 2020-09-23 08:21:33 -04:00
nnamdifrankie
8bfdefe4e0
EMT-179: implement metadata query versioning based on ingest manager installed ES assets (#77252)
* EMT-179: initial refactor for versioning

* EMT-179: move things before pulling from master

* EMT-179: fix build

* EMT-179: clean up

* EMT-179: add ingest hook, and improve all tests

* EMT-179: fix build

* EMT-179: clean up

* EMT-179: fix build

* EMT-179: fix build

* EMT-179: clean up

* EMT-179: more clean up

* EMT-179: clean up

* EMT-179: fix build

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-16 21:27:06 -04:00
IgorG
4f0edbd160
Functional Test for Resolver fix (#77116)
* Final I hope check in for Resolver fix

* Fix click

* Fix click

* Fix click

* revert to select the first event

* Gzip Data file

* removed not zipped file

* striped Data file and gziped

* removed commented out delete indices

* Added query bar to select correct events

* removed commented out delete indices

* removed commented out delete indices

* removed commented out delete indices

* removed commented out delete indices

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-16 13:16:20 -07:00
Jonathan Buttner
e7b02d06cc
[Security Solution] Use safe type in resolver backend (#76969)
* Moving generator to safe type version

* Finished generator and alert

* Gzipping again

* Finishing type conversions for backend

* Trying to cast front end tests back to unsafe type for now

* Working reducer tests

* Adding more comments and fixing alert type

* Restoring resolver test data

* Updating snapshot with timestamp info

* Removing todo and fixing test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-10 14:26:35 -04:00
nnamdifrankie
2ed4b57776
[SecuritySolution-Ingest]: use new metadata current and add transform installation (#74394)
[SecuritySolution-Ingest]: use new metadata current and add transform installation
2020-09-08 17:56:38 -04:00
Jonathan Buttner
ae093e5a7a
[Security Solution] Resolver retrieve entity id of documents without field mapped (#76562)
* More comments

* Adding tests for mapping without entity_id

* Removing unnecessary comments

* Fixing type errors

* Removing unnecessary import

* Fixups and style

* change 'data' state shape, nesting the tree fetcher data
* rename 'TreeFetcherParameters' from 'DatabaseParameters' to make it
more specific to the API it works on
* fix bug in 'equal' method of 'TreeFetcherParameters'`
* use mockTreeFetcherParameters method in tests that need to specify a
TreeFetcherParameters but when the value isn't relevant to the test
* Hide Resolver if there is no databaseDocumentID
* add doc comments

* Fixing test name and adding comments

* Pulling in roberts test name changes

* [Resolver] Only render resolver once we have a signals index

Co-authored-by: oatkiller <robert.austin@elastic.co>
2020-09-04 09:24:24 -04:00
John Schulz
71b9dedfc4
[Ingest Manager] Remove success: true as top-level API response (#73223)
* Big bang commit removing top-level success property in API response

Left in check-permissions and in array of objects returned by delete package configs

* Remove success property from  mocks

* Resolve conflict from upstream changes

* Remove success property (after upstream merge)

* Remove more 'success'es after merging in upstream

* Remove success from some tests

* Remove success from OpenAPI spec

* Revert prior try/catch. Use res.ok

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-02 12:07:32 -04:00
Jonathan Buttner
4042f82035
[Security Solution][Resolver] Support kuery filter (#74695)
* Adding kql filter

* Adding filter support for the backend and tests

* Moving the filter to the body

* switching events and alerts api to post

* Removing unused import

* Adding tests for events api results being in descending order

* Switching frontend to use post for related events
2020-08-26 09:25:45 -04:00
Jonathan Buttner
7fd2c2bed2
[Security Solution] Resolver children pagination (#74603)
* Handle info and change events for children

* Adding sequence

* Fixing children pagination

* Fixing tests

* Adding docs
2020-08-10 11:54:22 -04:00
Jonathan Buttner
2dea17a8d0
Using msearch for tree api endpoint (#73813) 2020-08-04 12:54:20 -04:00
Jonathan Buttner
64126b425e
[Security Solution][Resolver] Handle info and change events for children (#74007)
* Handle info and change events for children

* Disabling tests for children search_after

* Addressing comments
2020-08-03 20:01:11 -04:00
Dan Panzarella
b9e5ae9c77
[Security Solution] Filter endpoint hosts by agent status (#71882) 2020-08-03 11:53:52 -04:00
John Schulz
9c9080c11e
[Ingest Management] main branch uses epr-snapshot. Others production (#73555)
* Same behavior as now. Just refactored.

* main branch uses epr-snapshot. Others use prod

* Link some types vs repeating them

* replace DEFAULT_REGISTRY_URL with getRegistryUrl in Endpoint tests

* Make an Endpoint test helper name more clear

* try/catch around getKibanaBranch

* Use branch & version from package.json as fallback

* No guards b/c kibana{Branch,Version} have defaults

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-30 19:15:26 -04:00
Jonathan Buttner
70d4eac30c
[Security Solution] Adding tests for endpoint package pipelines (#73703)
* Adding tests for endpoint package pipelines

* Removing content type check on types that can change based on docker image version

* Skipping ingest tests instead of remove expect

* Switching ingest tests over to use application/json

* Removing country names

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-30 14:43:33 -04:00
Jonathan Buttner
41c2967e08
[Security Solution][Resolver] Handle disabled process collection (#73592)
* Handling entity ids of empty string

* Tests for entity id being empty

* More comments

* entity test

* Renaming interface

* Removing unneeded test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-29 00:01:33 -04:00
Madison Caldwell
5a04909819
[Security Solution][Exceptions] Use semantic version for manifest version + Scaling Tweaks (#73388)
* Manifest version is semantic version

* Configurable task interval

* Use task interval over scheduled when provided

* Fix crash on download of large artifact

* Don't need to generate linux artifacts

* Configurable artifact validation

* Test fixes

* Test fixes

* Type/test fixes

* Final tweaks

* Remove linux endpoint exception generation from UI

* Fix paging so that we stop before 10k

* Fix pagination

* Fix pagination test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-28 22:43:40 -04:00
Jonathan Buttner
867a672c7a
[Security Solution] Use docker for endpoint tests (#73092)
* Copying api integration tests into their own directory

* Removing api integration tests and using ingest docker image

* Fixing typo

* Fixing type errors and empty string and reenabling tests

* Rebuilding docs

* Renaming url override variable

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-27 14:13:50 -04:00