Skip to content

Commit 7914970

Browse files
author
Esteban Beltran
committed
Merge remote-tracking branch 'upstream/master' into feature/host-isolation-exceptions-edit
2 parents b492695 + 3d75154 commit 7914970

File tree

469 files changed

+11980
-7231
lines changed

Some content is hidden

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

469 files changed

+11980
-7231
lines changed

.buildkite/scripts/common/env.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@ export ELASTIC_APM_ENVIRONMENT=ci
3636
export ELASTIC_APM_TRANSACTION_SAMPLE_RATE=0.1
3737

3838
if is_pr; then
39-
export ELASTIC_APM_ACTIVE=false
39+
if [[ "${GITHUB_PR_LABELS:-}" == *"ci:collect-apm"* ]]; then
40+
export ELASTIC_APM_ACTIVE=true
41+
else
42+
export ELASTIC_APM_ACTIVE=false
43+
fi
44+
4045
export CHECKS_REPORTER_ACTIVE=true
4146

4247
# These can be removed once we're not supporting Jenkins and Buildkite at the same time

docs/api/short-urls.asciidoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[[short-urls-api]]
2+
== Short URLs APIs
3+
4+
Manage {kib} short URLs.
5+
6+
include::short-urls/create-short-url.asciidoc[]
7+
include::short-urls/get-short-url.asciidoc[]
8+
include::short-urls/delete-short-url.asciidoc[]
9+
include::short-urls/resolve-short-url.asciidoc[]
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
[[short-urls-api-create]]
2+
=== Create short URL API
3+
++++
4+
<titleabbrev>Create short URL</titleabbrev>
5+
++++
6+
7+
experimental[] Create a {kib} short URL. {kib} URLs may be long and cumbersome, short URLs are much
8+
easier to remember and share.
9+
10+
Short URLs are created by specifying the locator ID and locator parameters. When a short URL is
11+
resolved, the locator ID and locator parameters are used to redirect user to the right {kib} page.
12+
13+
14+
[[short-urls-api-create-request]]
15+
==== Request
16+
17+
`POST <kibana host>:<port>/api/short_url`
18+
19+
20+
[[short-urls-api-create-request-body]]
21+
==== Request body
22+
23+
`locatorId`::
24+
(Required, string) ID of the locator.
25+
26+
`params`::
27+
(Required, object) Object which contains all necessary parameters for the given locator to resolve
28+
to a {kib} location.
29+
+
30+
WARNING: When you create a short URL, locator params are not validated, which allows you to pass
31+
arbitrary and ill-formed data into the API that can break {kib}. Make sure
32+
any data that you send to the API is properly formed.
33+
34+
`slug`::
35+
(Optional, string) A custom short URL slug. Slug is the part of the short URL that identifies it.
36+
You can provide a custom slug which consists of latin alphabet letters, numbers and `-._`
37+
characters. The slug must be at least 3 characters long, but no longer than 255 characters.
38+
39+
`humanReadableSlug`::
40+
(Optional, boolean) When the `slug` parameter is omitted, the API will generate a random
41+
human-readable slug, if `humanReadableSlug` is set to `true`.
42+
43+
44+
[[short-urls-api-create-response-codes]]
45+
==== Response code
46+
47+
`200`::
48+
Indicates a successful call.
49+
50+
51+
[[short-urls-api-create-example]]
52+
==== Example
53+
54+
[source,sh]
55+
--------------------------------------------------
56+
$ curl -X POST api/short_url -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d '
57+
{
58+
"locatorId": "LOCATOR_ID",
59+
"params": {},
60+
"humanReadableSlug": true
61+
}'
62+
--------------------------------------------------
63+
// KIBANA
64+
65+
The API returns the following:
66+
67+
[source,sh]
68+
--------------------------------------------------
69+
{
70+
"id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", <1>
71+
"slug": "adjective-adjective-noun", <2>
72+
"locator": {
73+
"id": "LOCATOR_ID",
74+
"version": "x.x.x", <3>
75+
"state": {} <4>
76+
},
77+
"accessCount": 0,
78+
"accessDate": 1632680100000,
79+
"createDate": 1632680100000
80+
}
81+
--------------------------------------------------
82+
83+
<1> A random ID is automatically generated.
84+
<2> A random human-readable slug is automatically generated if the `humanReadableSlug` parameter is set to `true`. If set to `false` a random short string is generated.
85+
<3> The version of {kib} when short URL was created is stored.
86+
<4> Locator params provided as `params` property are stored.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[[short-urls-api-delete]]
2+
=== Delete short URL API
3+
++++
4+
<titleabbrev>Delete short URL</titleabbrev>
5+
++++
6+
7+
experimental[] Delete a {kib} short URL.
8+
9+
10+
[[short-urls-api-delete-request]]
11+
==== Request
12+
13+
`DELETE <kibana host>:<port>/api/short_url/<id>`
14+
15+
16+
[[short-urls-api-delete-path-params]]
17+
==== Path parameters
18+
19+
`id`::
20+
(Required, string) The short URL ID that you want to remove.
21+
22+
23+
[[short-urls-api-delete-response-codes]]
24+
==== Response code
25+
26+
`200`::
27+
Indicates a successful call.
28+
29+
30+
[[short-urls-api-delete-example]]
31+
==== Example
32+
33+
Delete a short URL `12345` ID:
34+
35+
[source,sh]
36+
--------------------------------------------------
37+
$ curl -X DELETE api/short_url/12345
38+
--------------------------------------------------
39+
// KIBANA
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
[[short-urls-api-get]]
2+
=== Get short URL API
3+
++++
4+
<titleabbrev>Get short URL</titleabbrev>
5+
++++
6+
7+
experimental[] Retrieve a single {kib} short URL.
8+
9+
[[short-urls-api-get-request]]
10+
==== Request
11+
12+
`GET <kibana host>:<port>/api/short_url/<id>`
13+
14+
15+
[[short-urls-api-get-params]]
16+
==== Path parameters
17+
18+
`id`::
19+
(Required, string) The ID of the short URL.
20+
21+
22+
[[short-urls-api-get-codes]]
23+
==== Response code
24+
25+
`200`::
26+
Indicates a successful call.
27+
28+
29+
[[short-urls-api-get-example]]
30+
==== Example
31+
32+
Retrieve the short URL with the `12345` ID:
33+
34+
[source,sh]
35+
--------------------------------------------------
36+
$ curl -X GET api/short_url/12345
37+
--------------------------------------------------
38+
// KIBANA
39+
40+
The API returns the following:
41+
42+
[source,sh]
43+
--------------------------------------------------
44+
{
45+
"id": "12345",
46+
"slug": "adjective-adjective-noun",
47+
"locator": {
48+
"id": "LOCATOR_ID",
49+
"version": "x.x.x",
50+
"state": {}
51+
},
52+
"accessCount": 0,
53+
"accessDate": 1632680100000,
54+
"createDate": 1632680100000
55+
}
56+
--------------------------------------------------
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
[[short-urls-api-resolve]]
2+
=== Resolve short URL API
3+
++++
4+
<titleabbrev>Resolve short URL</titleabbrev>
5+
++++
6+
7+
experimental[] Resolve a single {kib} short URL by its slug.
8+
9+
[[short-urls-api-resolve-request]]
10+
==== Request
11+
12+
`GET <kibana host>:<port>/api/short_url/_slug/<slug>`
13+
14+
15+
[[short-urls-api-resolve-params]]
16+
==== Path parameters
17+
18+
`slug`::
19+
(Required, string) The slug of the short URL.
20+
21+
22+
[[short-urls-api-resolve-codes]]
23+
==== Response code
24+
25+
`200`::
26+
Indicates a successful call.
27+
28+
29+
[[short-urls-api-resolve-example]]
30+
==== Example
31+
32+
Retrieve the short URL with the `hello-world` ID:
33+
34+
[source,sh]
35+
--------------------------------------------------
36+
$ curl -X GET api/short_url/_slug/hello-world
37+
--------------------------------------------------
38+
// KIBANA
39+
40+
The API returns the following:
41+
42+
[source,sh]
43+
--------------------------------------------------
44+
{
45+
"id": "12345",
46+
"slug": "hello-world",
47+
"locator": {
48+
"id": "LOCATOR_ID",
49+
"version": "x.x.x",
50+
"state": {}
51+
},
52+
"accessCount": 0,
53+
"accessDate": 1632680100000,
54+
"createDate": 1632680100000
55+
}
56+
--------------------------------------------------

docs/api/url-shortening.asciidoc

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

docs/developer/plugin-list.asciidoc

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ allowing users to configure their advanced settings, also known
2828
as uiSettings within the code.
2929
3030
31-
|{kib-repo}blob/{branch}/src/plugins/apm_oss/README.asciidoc[apmOss]
32-
|undefined
33-
34-
3531
|{kib-repo}blob/{branch}/src/plugins/bfetch/README.md[bfetch]
3632
|bfetch allows to batch HTTP requests and streams responses back.
3733
@@ -350,7 +346,7 @@ The plugin exposes the static DefaultEditorController class to consume.
350346
351347
352348
|{kib-repo}blob/{branch}/x-pack/plugins/apm/readme.md[apm]
353-
|Local setup documentation
349+
|undefined
354350
355351
356352
|{kib-repo}blob/{branch}/x-pack/plugins/banners/README.md[banners]
@@ -362,7 +358,8 @@ The plugin exposes the static DefaultEditorController class to consume.
362358
363359
364360
|{kib-repo}blob/{branch}/x-pack/plugins/cases/README.md[cases]
365-
|Case management in Kibana
361+
|[![Issues][issues-shield]][issues-url]
362+
[![Pull Requests][pr-shield]][pr-url]
366363
367364
368365
|{kib-repo}blob/{branch}/x-pack/plugins/cloud/README.md[cloud]

docs/development/core/public/kibana-plugin-core-public.doclinksstart.links.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ readonly links: {
145145
readonly networkMap: string;
146146
readonly troubleshootGaps: string;
147147
};
148+
readonly securitySolution: {
149+
readonly trustedApps: string;
150+
};
148151
readonly query: {
149152
readonly eql: string;
150153
readonly kueryQuerySyntax: string;

0 commit comments

Comments
 (0)