Commit graph

681 commits

Author SHA1 Message Date
Yulia Čech
fdd4020353
[Guided onboarding] Added the team to the codeowners file (#137591)
* [Guided onboarding] Added the team handle to the codeowners file

* [Guided onboarding] Also the landing page in the home plugin
2022-07-29 16:49:19 +02:00
Philippe Oberti
19aa51e5a8
[TIP] Add new Threat intelligence plugin (#136479)
* [TIP] Add Threat Intelligence plugin

- create Threat Intelligence plugin and integrate with Security Solution plugin
- setup jest unit tests, i18n, Cypress tests and  Storybook
- fetch Indicator of Compromise, and display in data-grid
- add flyout components to show IOCs details (table and JSON)
- add new threatIntelInt entry to kbn-doc-links package

https://github.com/elastic/security-team/issues/4329
https://github.com/elastic/security-team/issues/4138
https://github.com/elastic/security-team/issues/4241
https://github.com/elastic/security-team/issues/4242
https://github.com/elastic/security-team/issues/4244
https://github.com/elastic/security-team/issues/4245

Co-authored-by: lgmys <lgmys@pm.me>
Co-authored-by: Maxim Kholod <maxim.kholod@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-07-25 19:27:05 +02:00
Søren Louv-Jansen
a5a9be439a
Bump backport v8.9.2 (#136620) 2022-07-19 10:29:55 -05:00
Jonathan Buttner
0f3e46749b
[Cases][ResponseOps] Add support for deletion sub feature privilege (#135487)
* Starting conversion to permissions from userCanCrud

* Migrating userCanCrud to context

* Fixing tests

* Fix type error

* Removing missed userCanCrud

* Fixing tests and addressing permissions.all feedback

* Fixing test

* Adding deletion sub feature priv

* Fixing type errors

* Fixing tests and adding more granular permissions

* Trying to get plugin tests to work

* Removing unnecessary tests

* First pass at fixing tests

* Moving createUICapabilities to a normal function

* Adding more tests for permissions

* Fixing tests

* Fixing and adding more tests

* Addressing feedback and fixing tests

* Reverting permissions.all changes except delete

* Revert "Reverting permissions.all changes except delete"

This reverts commit 609c150b7d.

* Fixing test

* Adjusting permissions for add to new or existing case

* Switching a few all permissions to create and read

* check permisions inside of actions menu

* Addressing initial feedback

* Adding functional tests for deletion

* Changing deletion text

* Addressing feedback and fixing tests

* Fixing deeplinks to allow create when no delete

* Addressing feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-07-18 12:15:09 -04:00
Maryam Saeidi
fd6224df54
[Actionable Observability] Add actionable-observability as owner of rule_details page (#136522) 2022-07-18 17:08:04 +02:00
Jonathan Budzenski
33b743c84e
Revert "Remove percy based visual regression tests (#136359)" (#136437)
* Revert "Remove percy based visual regression tests (#136359)"

This reverts commit a91aeb42ff.

* update codeowners
2022-07-14 14:53:12 -05:00
Jonathan Budzenski
a91aeb42ff
Remove percy based visual regression tests (#136359)
* Remove percy based visual regression tests

These have been disabled for ~3 years, the agent is deprecated, and our
snapshot environment is inactive.

* [CI] Auto-commit changed files from 'yarn kbn run build -i @kbn/pm'

* update codeowners

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-07-14 10:03:49 -07:00
Alejandro Fernández Haro
9888244e2c
[EBT] Add Telemetry Labels (#135682)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-07-14 15:58:57 +02:00
Matthew Kime
9a4eca0a14
[data views] Enforce uniqueness by name instead of index pattern (#136071)
* data view uniqueness by name
2022-07-14 06:01:33 -07:00
Carlos Crespo
b58d07e05b
[Stack Monitoring] Add OpenTelemetry metrics to Monitoring Collection plugin (#135999)
* Add otel metrics to alerting plugin

* clean up otel poc

* Bump @opentelemetry/api-metrics and @opentelemetry/exporter-metrics-otlp-grpc versions to 0.30.0

* Add integration test for prometheus endpoint; improve reademe.md

* Fix tsconfig.base.json missing entries

* Bump @opentelemetry/sdk-metrics-base; clean up

* Rename PrometheusExporter properties

* Readme formatting tweaks

* Fix incorrect path

* Remove grpc dependency

* Add grpc back for handling auth headers

* Fix comment positioning

* Include authenticated OTLP in readme

* Extract dynamic route into a new file

* Enable otlp logging and compatibility with env vars

* Enable OTEL_EXPORTER_OTLP_ENDPOINT env var

Co-authored-by: Mat Schaffer <mat@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-07-14 13:29:09 +02:00
Justin Kambic
27deb07bc6
[UX Dashboard] Migrate page load duration chart out of APM (#132970)
Co-authored-by: shahzad31 <shahzad.muhammad@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-07-13 21:44:25 +02:00
Pierre Gayvallet
84db06c15d
Move server-side http implementation to packages (#136105)
* create context packages

* move context files into packages

* adapt imports

* create empty router packages

* fix more context imports

* move router code to packages

* fix import

* woups

* start adapting router imports

* fix more imports

* fix more core imports

* start adapting external usages

* export kibanaResponseFactory from server index...

* Revert "start adapting external usages"

This reverts commit 47ee463fbb.

* adapt external usages

* fix console test

* create empty packages

* start moving all the things

* fix tests

* start adapting imports

* that's a lot of usages

* that's a lot of usages bis

* fix bad paths

* use export type

* lint

* fix external unit tests

* self review

* switch to `import type`

* stop re-exporting the router mock from the other mock package

* update codeowners for CSP folder
2022-07-13 11:06:40 +02:00
Brian Seeders
4fdbdd105f
Update on-merge.yml 2022-07-12 12:30:48 -04:00
Brian Seeders
114f8eba9c
Update on-merge.yml 2022-07-12 12:27:12 -04:00
Pierre Gayvallet
885e80a1cd
Migrate server-side http types to @kbn/core-http-server (#135808)
* create empty packages

* create more packages

* start moving most types to `@kbn/core-http-server`

* export moved types

* add bazel dependencies for `@kbn/core-http-server`

* create explicit responseFactory types

* start adapting imports

* adapt imports in http/router

* continue adapting imports

* revert creation of other packages

* adapt lifecycle types

* move lifecycle types

* move missing types

* adapt more usages

* fix entrypoint exports

* fix internal request handler contexts

* ok let's wait for CI now

* ok just a last one

* gotcha

* clean some tsdoc

* start fixing violations

* move router types to sub folder

* fix more violations

* lint

* more test violations

* lint 2

* fix violations external to core

* move ICspConfig to package

* move external url types

* move IBasePath to package

* move more types

* start fixing violations due to latest moves

* fix server/types

* move auth_header types

* move context container type

* move contract types

* tsdoc

* fix violations due to latests moves

* fix import in reporting

* fix type in canvas

* move context container out of nested folder

* update README

* self-review

* remove duplicate entry from codeowners file

* create the @kbn/hapi-mocks package

* move router mocks to correct package
2022-07-11 13:28:39 +02:00
Michael Dokolin
a24365dfc3
Update @kbn/monaco code owners (#136030) 2022-07-08 19:59:37 +02:00
Spencer
a3b2757e4e
[type-summarizer] reimplement for broader support (#135163)
* [type-summarizer] reimplement for broader support

* Enable sourceMaps in all packages

* include naming collision in summarizePackage test

* fix readmes

* remove unnecessary transient dependency

* remove code that was commented out

* remove outdated todo comment

* ensure errors triggered by untyped-exports are ligible

* remove unused import

* break out snippet generation from AstIndexer

* refactor several massive files into smaller pieces and add more inline docs

* fix typos

* update jest snapshots

* add sections to readme that points people to the useful parts of the source code along with a high-level overview of how the type-summarizer works

* remove --dump flag, it doesn't work

* use decName instead of calling names.get a second time

* include `export` as invalid name
2022-07-06 13:48:45 -05:00
Brandon Kobel
f1ad44bfc2
Removing the RAC code-owner (#135546)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-07-06 11:30:35 -07:00
Brian Seeders
1f0287caa4
[backport] Bump backport to 8.8.0 and add structured data to created backport PRs (#135597) 2022-07-06 13:46:22 -04:00
Ari Aviran
90c08d3880
[Cloud Posture] Add navigation links to security solution grouped navigation (#135635) 2022-07-06 12:38:04 +03:00
Pierre Gayvallet
c0a629bb1b
Move csp and external_url under http (#135639)
* Move `csp` and `external_url` under `http`

* start fixing imports

* update codeowners

* fix more imports
2022-07-05 15:06:01 +02:00
Pierre Gayvallet
aceea297c0
Introduce the @kbn/es-errors package (#135613)
* create the package, move the files

* adapt imports

* fix more imports

* fix import from security plugin
2022-07-04 10:33:37 +02:00
Clint Andrew Hall
e564f1f5bc
[home] Create Sample Data Card package (#135472)
* [home] Create Sample Data Card package

* Fix issues found in CI

* Update packages/home/sample_data_cards/src/sample_data_card.component.tsx

Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>

* Update packages/home/sample_data_cards/src/footer/remove_footer.tsx

Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>

* Addressing review feedback

* Fix i18n, reduce dependencies

* Update docs and snaps; add tests

Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
2022-06-30 15:53:08 -05:00
Mike Côté
0853a0b005
Fix stack alerts codeowners so response ops team gets pinged (#135438) 2022-06-29 11:47:05 -04:00
Spencer
51faec0ec4
Update CODEOWNERS 2022-06-29 10:31:16 -05:00
Walter Rafelsberger
8c94def73e
[ML] Move aiops-utils package to x-pack/packages/ml. (#134985)
When we created the `aiops-utils` package originally, we were not aware that packages could also live within `x-pack`. Since `aiops` is a platinum feature and maintained by the ML team, this moves the package from `/packages` to `/x-pack/packages/ml`. The license header of the package files now match the `aiops` plugin again.
2022-06-24 19:37:02 +02:00
Walter Rafelsberger
adbd6a5fb8
[ML] @kbn/ml-agg-utils, @kbn/ml-is-populated-object, @kbn/ml-string-hash packages. (#132963)
Moves some ML utility code to packages.

- @kbn/ml-agg-utils contains multiple utilities used in combination related to building aggregations.
- @kbn/ml-is-populated-object contains the isPopulatedObject() utility function used across several plugins.
- @kbn/ml-string-hash contains the stringHash() utility function used across several plugins.
2022-06-23 10:38:23 +02:00
Pierre Gayvallet
10a5f9ac83
Remove old doc generation system for core APIs (#134313)
* Remove old doc generation system for core APIs

* delete docs/development/core folder
2022-06-21 17:43:17 +02:00
Spencer
851c4ebe60
Rename codeowners after team rename 2022-06-21 09:44:18 -05:00
Jason Rhodes
0e195a6762
Remove unified observability codeowner bottleneck (#134584)
As the unified obs team is currently without active engineers, we don't want CODEOWNERS to require reviews from that team. I've changed exploratory view back to the Uptime team, the overview page to the obs design team, and 1-2 others now have no CODEOWNERS and will just require a review from someone other than the code author.
2022-06-16 18:31:46 +01:00
Maja Grubic
98cc8ac02e
[CODEOWNERS] Change ownership of kibana_overview and home (#134328)
* [CODEOWNERS] Change ownership of kibana_overview and home

* Fixing commented out lines
2022-06-14 16:20:38 +02:00
Dzmitry Lemechko
6f5b23b221
[packages] add kbn-scalability-simulation-generator package (#132631)
* add kbn-scalability-simulation-generator package

* update codeowners

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-14 10:08:26 +02:00
Pierre Gayvallet
1fa326b095
Extract core's browser-side theme service to packages (#133894)
* Extract core's browser-side theme service to packages

* start fixing imports

* fix imports

* export service constructor option type

* lint

* update readme

* update generated doc

* update codeowners for /packages/core
2022-06-14 09:09:49 +02:00
Søren Louv-Jansen
1279650320
Update Backport Github Action v8.5.2 (#134097) 2022-06-10 00:12:20 +02:00
Brian Seeders
8b12549c3f
[CI] Add opt-in on-merge action that automatically assigns version labels (#134101) 2022-06-09 15:45:44 -04:00
Shahzad
019b03f5a0
[Synthetics] Renaming label path finder paths (#133996) 2022-06-09 16:57:24 +02:00
Vadim Kibana
1b2c58f58e
ui_actions_enchanced to /src (#133512)
* move ui_actions_enhanced to /src

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* [CI] Auto-commit changed files from 'node scripts/build_plugin_list_docs'

* move translations to /src

* fix typescript errors

* update config files

* update ts configs

* fix config path

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-06-07 18:33:21 +02:00
Shahzad
2fda45212e
[Synthetics] Add uptime team to exploratory view (#133491) 2022-06-03 12:57:53 +02:00
Jack
4b1a049559
[Security Solution] Create security solution kubernetes experimental page and kubernetes_security plugin (#131858)
* Add kubernetes link on nav sidebar

* Create new plugin for k8s vis page

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Paulo Henrique <paulo.scape@gmail.com>
2022-05-31 11:40:37 -04:00
Nathan L Smith
8a180368df
Set up stale bot for Infra Monitoring UI issues (#132851) 2022-05-25 10:04:15 -05:00
Jonathan Budzenski
2d08cfc040
Add test/analytics to codeowners (#132922)
So we can auto assign failed tests.
2022-05-25 09:03:15 -05:00
Walter Rafelsberger
c968e508f6
[ML] Explain log rate spikes: Move API stream demos to Kibana examples. (#132590)
This creates a response_stream plugin in the Kibana /examples section. The plugin demonstrates API endpoints that can stream data chunks with a single request with gzip/compression support. gzip-streams get decompressed natively by browsers. The plugin demonstrates two use cases to get started: Streaming a raw string as well as a more complex example that streams Redux-like actions to the client which update React state via useReducer().
2022-05-24 16:59:31 +02:00
Thomas Watson
dc9f2732a1
Add csp.disableUnsafeEval config option to remove the unsafe-eval CSP (#124484)
Adds a new experimental Kibana setting called `csp.disableUnsafeEval` which will default to `false`. When set to `true`, it will remove `unsafe-eval` from our CSP.

Also introduces a new module called `@kbn/handlebars` which is a replacement for the official `handlebars` module used in the frontend. This new module is necessary in order to avoid calling `eval`/`new Function` from within `handlebars` which is not allowed once `unsafe-eval` is removed from our CSP.

The `@kbn/handlebars` module is simply an extension of the main `handlebars` module which adds a new compile function called `compileAST` (as an alternative to the regular `compile` function). This new function will not use code-generation from strings to compile the template but will instead generate an AST and return a render function with the same API as the function returned by the regular `compile` function.

This is a little bit slower method, but since this is only meant to be used client-side, the slowdown should not be an issue.

The following limitations exists when using `@kbn/handlebars`:

The Inline partials handlebars template feature is not supported.

Only the following compile options will be supported:
- `knownHelpers`
- `knownHelpersOnly`
- `strict`
- `assumeObjects`
- `noEscape`
- `data`

Only the following runtime options will be supported:
- `helpers`
- `blockParams`
- `data`

Closes #36311
2022-05-23 11:01:56 -07:00
Walter Rafelsberger
6df1b28a82
[ML] Explain log rate spikes: Plugin setup (#131317)
Sets up the boilerplate code for the aiops plugin and adds a demo page within the ML app to demonstrate single API request data streaming from Kibana server to UI client.
2022-05-12 13:36:53 +02:00
Georgii Gorbachev
76bba7fc5e
[Security Solution] CODEOWNERS: assign ml_popover to the Rules Area
## Summary

This PR assigns the `<MlPopover />` component and all the related code in the `x-pack/plugins/security_solution/public/common/components/ml_popover` folder to the @elastic/security-detections-response-rules area team.

This component renders the **"ML job settings"** popover we have on the Rule Management page:

<img width="1578" alt="ML job settings popover screenshot" src="https://user-images.githubusercontent.com/7359339/167900123-cf501ce2-8abe-4e01-9af5-9c1c97141d83.png">
2022-05-11 20:07:33 +02:00
Jean-Louis Leysens
9a78d3dde4
[Reporting/Dashboard] Use Chromium for print-optimized PDFs (#130546)
* first version of semi-sane results

* getting a bit more sophisticated

* wip on footer, page numbers not working, but logo working

* re-work PoC for readability, added a lot of comments

* change up formatting for readability

* added comment

* remove some comments and remove HACK

* use page.pdf function

* remove controls from shared PoC ui

* preserveDrawingBuffer fix for maps, needs review

* minor clean up

* update sass

* clean up experimental code

* moved a few files around to get this ready for review

* added appservices as print media code owners

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* added PDFJS to get num pages

* fix getting page number using pdfjs-dist

* update inline snapshot

* Revert "update inline snapshot"

This reverts commit eb413234a7.

* do not create a new page at the very end

* major overhaul, rather use puppeteers footerTemplate and headerTemplate to get visual parity with current reports

* add TODO

* update test fixture

* update doc comment

* remove whitespace

* fix missing time range from print PDF header and make size much smaller

* update tests

* update test

* try out slash instead of nbsp

* Revert "try out slash instead of nbsp"

This reverts commit 1de112a6f5.

* implement ability to inject logo using handlebars templates

* move assets to shared location

* fix injecting of values via handlebars and minor style tweaks for 3rd party logos

* inject a few more values to the footer

* update casing check

* use locales version of headless chromium zip

* fix tests and update sizing of logos

* use locales version for arm64 too

* fix jest test

* fix types

* made pdf capture check stricter

* fix PDF generation issue due to query bar rendering content that caused an issue; need to figure out what exactly the issue was...

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-05-10 08:35:04 +02:00
Martijn Laarman
e923d92b3c
Introduces StreamAggregator to Synththrace (#130902)
* Introduces StreamAggregator

This allows us to write 'true' stream processing aggregations.

Implementations of `StreamAggregator` can self bootstrap new
datastreams/timeseries and route data to this new locations

* if a stream aggregator returns dimensions setup timeseries otherwise datastream

* rename worker.ts to allign with new naming rules

* Pick fields from ApmFields

(cherry picked from commit 0147c683d2ccda2953fcbf5ef24a801cdf34a5dd)

* include service.environment and transaction.type as dimensions

(cherry picked from commit 2f0b6044eef768349613fabf8a250cfc0375bc7b)

* rename service.latency to transaction.duration.aggregate

(cherry picked from commit f4d8b17302be9dd56e4c518fcc8919a998b1c40b)

* removed unnecessary intermediate method createFieldsFromState() in favor of flush()

(cherry picked from commit 6e3f5cd6dc898214740d1b483c7dc29839514695)

* ensure we flush previously held range if current event exceeds max window age

(cherry picked from commit 55a52f1d592a67511782c7522c69836a615c0d93)

* move the processor.name to 'metric' for now

(cherry picked from commit 480bbe4120937c4e2cd597ac61a9ee279df42a89)

* clean aggregator stream with wildcard for namespace

(cherry picked from commit 9fb7905dfbaa9b3cd906411ec721e8794655fc98)

* add apm-ui as codeowners of synthtrace

* metricset is not always set should not throw an error when determining writetarget

* safeguard check for max window age

* safeguard incrementing state

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-05 14:53:43 +02:00
Anton Dosov
e603d92552
Remove data_enhanced plugin (#122075)
Code moved into `data` plugin
2022-04-29 16:43:59 +02:00
Kevin Qualters
330dbbe304
Make only a single api request for exceptions when opening an alert in timeline (#130941) 2022-04-26 18:27:09 -04:00
Shahzad
90c32024f7
update code onwer (#130818) 2022-04-21 20:34:46 +02:00