Skip to content

Commit a734ae2

Browse files
author
Liza K
committed
Merge branch 'master' of github.com:elastic/kibana into pr/70677
2 parents 9381b35 + 52bbfff commit a734ae2

File tree

1,595 files changed

+45436
-14244
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,595 files changed

+45436
-14244
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ target
2626
/src/plugins/data/common/es_query/kuery/ast/_generated_/**
2727
/src/plugins/vis_type_timelion/public/_generated_/**
2828
/src/plugins/vis_type_timelion/public/webpackShims/jquery.flot.*
29+
/src/plugins/timelion/public/webpackShims/jquery.flot.*
2930
/x-pack/legacy/plugins/**/__tests__/fixtures/**
3031
/x-pack/plugins/apm/e2e/**/snapshots.js
3132
/x-pack/plugins/apm/e2e/tmp/*

.i18nrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"src/plugins/telemetry_management_section"
4545
],
4646
"tileMap": "src/plugins/tile_map",
47-
"timelion": ["src/legacy/core_plugins/timelion", "src/plugins/vis_type_timelion"],
47+
"timelion": ["src/plugins/timelion", "src/plugins/vis_type_timelion"],
4848
"uiActions": "src/plugins/ui_actions",
4949
"visDefaultEditor": "src/plugins/vis_default_editor",
5050
"visTypeMarkdown": "src/plugins/vis_type_markdown",

.sass-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
files:
22
include:
33
- 'src/legacy/core_plugins/metrics/**/*.s+(a|c)ss'
4-
- 'src/legacy/core_plugins/timelion/**/*.s+(a|c)ss'
4+
- 'src/plugins/timelion/**/*.s+(a|c)ss'
55
- 'src/plugins/vis_type_vislib/**/*.s+(a|c)ss'
66
- 'src/plugins/vis_type_xy/**/*.s+(a|c)ss'
77
- 'x-pack/plugins/canvas/**/*.s+(a|c)ss'

NOTICE.txt

Lines changed: 64 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,70 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
147147
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
148148
SOFTWARE.
149149

150+
---
151+
Detection Rules
152+
Copyright 2020 Elasticsearch B.V.
153+
154+
---
155+
This product bundles rules based on https://github.com/BlueTeamLabs/sentinel-attack
156+
which is available under a "MIT" license. The files based on this license are:
157+
158+
- defense_evasion_via_filter_manager
159+
- discovery_process_discovery_via_tasklist_command
160+
- persistence_priv_escalation_via_accessibility_features
161+
- persistence_via_application_shimming
162+
- defense_evasion_execution_via_trusted_developer_utilities
163+
164+
MIT License
165+
166+
Copyright (c) 2019 Edoardo Gerosa, Olaf Hartong
167+
168+
Permission is hereby granted, free of charge, to any person obtaining a copy of
169+
this software and associated documentation files (the "Software"), to deal in
170+
the Software without restriction, including without limitation the rights to
171+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
172+
of the Software, and to permit persons to whom the Software is furnished to do
173+
so, subject to the following conditions:
174+
175+
The above copyright notice and this permission notice shall be included in all
176+
copies or substantial portions of the Software.
177+
178+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
179+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
180+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
181+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
182+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
183+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
184+
SOFTWARE.
185+
186+
---
187+
This product bundles rules based on https://github.com/FSecureLABS/leonidas
188+
which is available under a "MIT" license. The files based on this license are:
189+
190+
- credential_access_secretsmanager_getsecretvalue.toml
191+
192+
MIT License
193+
194+
Copyright (c) 2020 F-Secure LABS
195+
196+
Permission is hereby granted, free of charge, to any person obtaining a copy
197+
of this software and associated documentation files (the "Software"), to deal
198+
in the Software without restriction, including without limitation the rights
199+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
200+
copies of the Software, and to permit persons to whom the Software is
201+
furnished to do so, subject to the following conditions:
202+
203+
The above copyright notice and this permission notice shall be included in all
204+
copies or substantial portions of the Software.
205+
206+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
207+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
208+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
209+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
210+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
211+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
212+
SOFTWARE.
213+
150214
---
151215
This product bundles bootstrap@3.3.6 which is available under a
152216
"MIT" license.
@@ -220,38 +284,6 @@ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
220284
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
221285
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
222286

223-
---
224-
This product bundles rules based on https://github.com/BlueTeamLabs/sentinel-attack
225-
which is available under a "MIT" license. The files based on this license are:
226-
227-
- windows_defense_evasion_via_filter_manager.json
228-
- windows_process_discovery_via_tasklist_command.json
229-
- windows_priv_escalation_via_accessibility_features.json
230-
- windows_persistence_via_application_shimming.json
231-
- windows_execution_via_trusted_developer_utilities.json
232-
233-
MIT License
234-
235-
Copyright (c) 2019 Edoardo Gerosa, Olaf Hartong
236-
237-
Permission is hereby granted, free of charge, to any person obtaining a copy of
238-
this software and associated documentation files (the "Software"), to deal in
239-
the Software without restriction, including without limitation the rights to
240-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
241-
of the Software, and to permit persons to whom the Software is furnished to do
242-
so, subject to the following conditions:
243-
244-
The above copyright notice and this permission notice shall be included in all
245-
copies or substantial portions of the Software.
246-
247-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
248-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
249-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
250-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
251-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
252-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
253-
SOFTWARE.
254-
255287
---
256288
This product includes code that is adapted from mapbox-gl-js, which is
257289
available under a "BSD-3-Clause" license.

STYLEGUIDE.md

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,18 @@
33
This guide applies to all development within the Kibana project and is
44
recommended for the development of all Kibana plugins.
55

6+
- [General](#general)
7+
- [HTML](#html)
8+
- [API endpoints](#api-endpoints)
9+
- [TypeScript/JavaScript](#typeScript/javaScript)
10+
- [SASS files](#sass-files)
11+
- [React](#react)
12+
613
Besides the content in this style guide, the following style guides may also apply
714
to all development within the Kibana project. Please make sure to also read them:
815

9-
- [Accessibility style guide](https://elastic.github.io/eui/#/guidelines/accessibility)
10-
- [SASS style guide](https://elastic.github.io/eui/#/guidelines/sass)
16+
- [Accessibility style guide (EUI Docs)](https://elastic.github.io/eui/#/guidelines/accessibility)
17+
- [SASS style guide (EUI Docs)](https://elastic.github.io/eui/#/guidelines/sass)
1118

1219
## General
1320

@@ -582,6 +589,39 @@ Do not use setters, they cause more problems than they can solve.
582589
583590
[sideeffect]: http://en.wikipedia.org/wiki/Side_effect_(computer_science)
584591
592+
## SASS files
593+
594+
When writing a new component, create a sibling SASS file of the same name and import directly into the **top** of the JS/TS component file. Doing so ensures the styles are never separated or lost on import and allows for better modularization (smaller individual plugin asset footprint).
595+
596+
All SASS (.scss) files will automatically build with the [EUI](https://elastic.github.io/eui/#/guidelines/sass) & Kibana invisibles (SASS variables, mixins, functions) from the [`globals_[theme].scss` file](src/legacy/ui/public/styles/_globals_v7light.scss).
597+
598+
While the styles for this component will only be loaded if the component exists on the page,
599+
the styles **will** be global and so it is recommended to use a three letter prefix on your
600+
classes to ensure proper scope.
601+
602+
**Example:**
603+
604+
```tsx
605+
// component.tsx
606+
607+
import './component.scss';
608+
// All other imports below the SASS import
609+
610+
export const Component = () => {
611+
return (
612+
<div className="plgComponent" />
613+
);
614+
}
615+
```
616+
617+
```scss
618+
// component.scss
619+
620+
.plgComponent { ... }
621+
```
622+
623+
Do not use the underscore `_` SASS file naming pattern when importing directly into a javascript file.
624+
585625
## React
586626
587627
The following style guide rules are specific for working with the React framework.

docs/developer/getting-started/index.asciidoc

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ you can switch to the correct version when using nvm by running:
2929
----
3030
nvm use
3131
----
32-
32+
3333
Install the latest version of https://yarnpkg.com[yarn].
3434

3535
Bootstrap {kib} and install all the dependencies:
@@ -93,13 +93,13 @@ yarn es snapshot --license trial
9393

9494
`trial` will give you access to all capabilities.
9595

96-
Read about more options for <<running-elasticsearch>>, like connecting to a remote host, running from source,
97-
preserving data inbetween runs, running remote cluster, etc.
96+
Read about more options for <<running-elasticsearch>>, like connecting to a remote host, running from source,
97+
preserving data inbetween runs, running remote cluster, etc.
9898

9999
[float]
100100
=== Run {kib}
101101

102-
In another terminal window, start up {kib}. Include developer examples by adding an optional `--run-examples` flag.
102+
In another terminal window, start up {kib}. Include developer examples by adding an optional `--run-examples` flag.
103103

104104
[source,bash]
105105
----
@@ -125,8 +125,6 @@ cause the {kib} server to reboot.
125125

126126
* <<kibana-debugging>>
127127

128-
* <<kibana-sass>>
129-
130128
* <<building-kibana>>
131129

132130
* <<development-plugin-resources>>
@@ -137,8 +135,6 @@ include::sample-data.asciidoc[]
137135

138136
include::debugging.asciidoc[]
139137

140-
include::sass.asciidoc[]
141-
142138
include::building-kibana.asciidoc[]
143139

144140
include::development-plugin-resources.asciidoc[]

docs/developer/getting-started/sass.asciidoc

Lines changed: 0 additions & 36 deletions
This file was deleted.

docs/development/core/public/kibana-plugin-core-public.savedobjectsfindoptions.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<b>Signature:</b>
99

1010
```typescript
11-
export interface SavedObjectsFindOptions extends SavedObjectsBaseOptions
11+
export interface SavedObjectsFindOptions
1212
```
1313

1414
## Properties
@@ -19,6 +19,7 @@ export interface SavedObjectsFindOptions extends SavedObjectsBaseOptions
1919
| [fields](./kibana-plugin-core-public.savedobjectsfindoptions.fields.md) | <code>string[]</code> | An array of fields to include in the results |
2020
| [filter](./kibana-plugin-core-public.savedobjectsfindoptions.filter.md) | <code>string</code> | |
2121
| [hasReference](./kibana-plugin-core-public.savedobjectsfindoptions.hasreference.md) | <code>{</code><br/><code> type: string;</code><br/><code> id: string;</code><br/><code> }</code> | |
22+
| [namespaces](./kibana-plugin-core-public.savedobjectsfindoptions.namespaces.md) | <code>string[]</code> | |
2223
| [page](./kibana-plugin-core-public.savedobjectsfindoptions.page.md) | <code>number</code> | |
2324
| [perPage](./kibana-plugin-core-public.savedobjectsfindoptions.perpage.md) | <code>number</code> | |
2425
| [preference](./kibana-plugin-core-public.savedobjectsfindoptions.preference.md) | <code>string</code> | An optional ES preference value to be used for the query \* |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-core-public](./kibana-plugin-core-public.md) &gt; [SavedObjectsFindOptions](./kibana-plugin-core-public.savedobjectsfindoptions.md) &gt; [namespaces](./kibana-plugin-core-public.savedobjectsfindoptions.namespaces.md)
4+
5+
## SavedObjectsFindOptions.namespaces property
6+
7+
<b>Signature:</b>
8+
9+
```typescript
10+
namespaces?: string[];
11+
```

docs/development/core/server/kibana-plugin-core-server.httpservicesetup.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ async (context, request, response) => {
8888
| [csp](./kibana-plugin-core-server.httpservicesetup.csp.md) | <code>ICspConfig</code> | The CSP config used for Kibana. |
8989
| [getServerInfo](./kibana-plugin-core-server.httpservicesetup.getserverinfo.md) | <code>() =&gt; HttpServerInfo</code> | Provides common [information](./kibana-plugin-core-server.httpserverinfo.md) about the running http server. |
9090
| [registerAuth](./kibana-plugin-core-server.httpservicesetup.registerauth.md) | <code>(handler: AuthenticationHandler) =&gt; void</code> | To define custom authentication and/or authorization mechanism for incoming requests. |
91-
| [registerOnPostAuth](./kibana-plugin-core-server.httpservicesetup.registeronpostauth.md) | <code>(handler: OnPostAuthHandler) =&gt; void</code> | To define custom logic to perform for incoming requests. |
92-
| [registerOnPreAuth](./kibana-plugin-core-server.httpservicesetup.registeronpreauth.md) | <code>(handler: OnPreAuthHandler) =&gt; void</code> | To define custom logic to perform for incoming requests. |
91+
| [registerOnPostAuth](./kibana-plugin-core-server.httpservicesetup.registeronpostauth.md) | <code>(handler: OnPostAuthHandler) =&gt; void</code> | To define custom logic after Auth interceptor did make sure a user has access to the requested resource. |
92+
| [registerOnPreAuth](./kibana-plugin-core-server.httpservicesetup.registeronpreauth.md) | <code>(handler: OnPreAuthHandler) =&gt; void</code> | To define custom logic to perform for incoming requests before the Auth interceptor performs a check that user has access to requested resources. |
9393
| [registerOnPreResponse](./kibana-plugin-core-server.httpservicesetup.registeronpreresponse.md) | <code>(handler: OnPreResponseHandler) =&gt; void</code> | To define custom logic to perform for the server response. |
94+
| [registerOnPreRouting](./kibana-plugin-core-server.httpservicesetup.registeronprerouting.md) | <code>(handler: OnPreRoutingHandler) =&gt; void</code> | To define custom logic to perform for incoming requests before server performs a route lookup. |
9495
| [registerRouteHandlerContext](./kibana-plugin-core-server.httpservicesetup.registerroutehandlercontext.md) | <code>&lt;T extends keyof RequestHandlerContext&gt;(contextName: T, provider: RequestHandlerContextProvider&lt;T&gt;) =&gt; RequestHandlerContextContainer</code> | Register a context provider for a route handler. |
9596

0 commit comments

Comments
 (0)