* Allow routes to define some payload config values
* Documentation typo
* Move hapi `payload` config under `body` + additional validations
* Update API docs
* Amend explanation in API docs
* Add stream and buffer types to @kbn/config-schema
* Fixes based on PR feedback:
- Add 'patch' and 'options' to valid RouteMethod
- Add tests for all the new flags
- Allow `stream` and `buffer` schema in the body validations (findings from tests)
* API documentation update
* Fix type definitions
* Fix the NITs in the PR comments + better typing inheritance
* API docs update
* Fix APM-legacy wrapper's types
* Fix KibanaRequest.from type exposure of hapi in API docs
* Move RouterRoute interface back to private + Expose some public docs
* Update @kbn/config-schema docs
* Add creation rule on Detection Engine
* review + bug fixes
* review II + clean up
* fix persistence saved query
* fix eui prop + add type security to add rule
* fix more bug from review III
* review IV
* add edit on creation on rule
* review
* fix status icon color
* fix filter label translation
* deangularize visLegend
* update vislib controller to mount react legend directly
* convert legend components to eui
* Position popover based on legend position
* Styles cleanup including removing of unused/unnecessary styles
* allows addition of ecs threat properties to rules and signals for mitre attack info
* adds default empty array to threats on creation of rule, removes optional from update rules schema as it is implied, updates and adds relevant tests
* adds sample rule with mitre attack threats property
* First iteration of liveness manager for Console
* First iteration of PoC working
* Updated console proxy fallback behaviour after feedback
* remove @types/node-fetch
* If all hosts failed due to connection refused errors 502
* Remove unnecessary existence check
1. This pr fixes regression in v7.6 - #51153.
Visualisation which are using ExpressionLoader directly are swallowing render errors in 7.6, because generic error handling is happening only on expression_renderer.tsx level (react component wrapper around renderer).
Now react agnostic render code render.ts, loader.ts:
has it's own default error handler which is toast from notification service.
It also allows to pass custom error handler instead of default one
React expression renderer expression_renderer.tsx:
if consumer wants to render error as react component inline, then the component uses custom error handler from render.ts to wire up react component.
2. This pr fixes issue of loader.ts where initial loading$ was not emitted
Had to change loadingSubject from Subject to BehaviorSubject to remember the last value
3. This pr fixes dependencies in effects of expression_renderer.tsx
This PR re-enables the anomaly detection test suite and disables Firefox test execution for now. It also increases stability for `clickEditDetector` and removes unneeded retries.
* Add snapshot count function that uses monitor iterator class.
* Add js-doc comment.
* Add snapshot count route.
* Start adding snapshot state management.
* Commit changes that were missed in previous.
* Finish implementing snapshot count redux code.
* Add basePath setter and type to ui state.
* Dispatch basePath set action on app render.
* Replace GQL-powered Snapshot export with Redux/Rest-powered version.
* Extract presentational element to dedicated component.
* Update broken test.
* Rename action.
* Add comments to clarify adapter function.
* Remove obsolete code.
* Add ui state field to store for tracking when app refreshes.
* Make snapshot component refresh on global refresh via redux state.
* Remove obsolete @ts-igore.
* Alphabetize imports.
* Port functional test fixture to REST test.
* Delete snapshot GQL query.
* Update API test fixtures to match new snapshot count REST response shape.
* Update Snapshot count type check to be stricter.
* Add tests for Snapshot API call.
* Rename new test file from tsx to ts, it has no JSX.
* Add tests for snapshot reducer.
* Add tests for UI reducer.
* Add tests for selectors.
* Delete unused test file.
* Move snapshot getter and map/reduce logic to dedicated helper function.
* Add test for snapshot helper function.
* Export type from module.
* Rename outdated snapshot file.
* Add action creator for fetch success.
* Reorganize ui actions file.
* Update snapshot effect to put error when input params are not valid.
* Simplify typing code for a function.
* Simplify snapshot count reduction.
* Rename a function.
* Rewrite a function to increase code clarity.
* Remove duplicated interface.
* Add very high ceiling for snapshot count iteration.
* Update broken test assertion.
* first iteration
* local collection ready
* type check
* fix collectorSet tests
* unskip test
* ordering
* collectors as array in constructor
* update README files
* update README and canvas to check for optional dep
* update README with more details
* Add file path for README example
* type UsageCollectionSetup
* run type check after refactor
## Summary
* Adds signal to the ECS event.kind when it copies over a signal
* Creates a `original_event` if needed within signal so additional look ups don't have to happen
* Fixes a bug with `signal.status` where it was not plumbed correctly
* Adds extra unit tests around the filter
* Adds missing unit tests around utils I didn't add before
* Fixes a typing issue with output of a signal
Example signal output:
Original event turns into this:
```ts
"event" : {
"dataset" : "socket",
"kind" : "signal",
"action" : "existing_socket",
"id" : "ffec6797-b92f-4436-bb40-69bac2c21874",
"module" : "system"
},
```
Signal amplification turns into this where it contains original_event looks like this:
```ts
"signal" : {
"parent" : {
"id" : "xNRlqW4BHe9nqdOi2358",
"type" : "event",
"index" : "auditbeat",
"depth" : 1
},
"original_time" : "2019-11-26T20:27:11.169Z",
"status" : "open",
"rule" : {
"id" : "643fbd2f-a3c9-449e-ba95-e3d89000a72a",
"rule_id" : "rule-1",
"false_positives" : [ ],
"max_signals" : 100,
"risk_score" : 1,
"description" : "Detecting root and admin users",
"from" : "now-6m",
"immutable" : false,
"interval" : "5m",
"language" : "kuery",
"name" : "Detect Root/Admin Users",
"query" : "user.name: root or user.name: admin",
"references" : [
"http://www.example.com",
"https://ww.example.com"
],
"severity" : "high",
"tags" : [ ],
"type" : "query",
"to" : "now",
"enabled" : true,
"created_by" : "elastic_some_user",
"updated_by" : "elastic_some_user"
},
"original_event" : {
"dataset" : "socket",
"kind" : "state",
"action" : "existing_socket",
"id" : "ffec6797-b92f-4436-bb40-69bac2c21874",
"module" : "system"
}
}
```
### Checklist
Use ~~strikethroughs~~ to remove checklist items you don't feel are applicable to this PR.
~~- [ ] This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)~~
~~- [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)~~
~~- [ ] [Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials~~
- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios
~~- [ ] This was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklist)~~
### For maintainers
~~- [ ] This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~~
- [x] This includes a feature addition or change that requires a release note and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)
This adds an absolute session timeout (lifespan) to user sessions.
It also improves the existing session timeout toast and the overall
user experience in several ways.
* [Security] Add loginAssistanceMessage to login page
* Fix tests
* Fix login_page.test.tsx
* Fix defaultValue
* Render login assistance message independently of other messages and use EuiText instead of EuiCallOut
* Use small text
Co-Authored-By: Caroline Horn <549577+cchaos@users.noreply.github.com>
* Flip order of message around
This PR adds a test that ensures Task Manager is capable of picking up new tasks in parallel to a long running tasks that might otherwise hold up task execution.
This doesn't add functionality - just a missing test case.