Skip to content

Commit f2a6874

Browse files
committed
Merge branch 'master' of github.com:elastic/kibana into timeline-import-validation
2 parents 8badaec + 71b9ded commit f2a6874

File tree

61 files changed

+399
-267
lines changed

Some content is hidden

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

61 files changed

+399
-267
lines changed

docs/settings/alert-action-settings.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ You can configure the following settings in the `kibana.yml` file.
3737
[cols="2*<"]
3838
|===
3939

40-
| `xpack.actions.whitelistedHosts`
40+
| `xpack.actions.whitelistedHosts` {ess-icon}
4141
| A list of hostnames that {kib} is allowed to connect to when built-in actions are triggered. It defaults to `[*]`, allowing any host, but keep in mind the potential for SSRF attacks when hosts are not explicitly whitelisted. An empty list `[]` can be used to block built-in actions from making any external connections. +
4242
+
4343
Note that hosts associated with built-in actions, such as Slack and PagerDuty, are not automatically whitelisted. If you are not using the default `[*]` setting, you must ensure that the corresponding endpoints are whitelisted as well.
4444

45-
| `xpack.actions.enabledActionTypes`
45+
| `xpack.actions.enabledActionTypes` {ess-icon}
4646
| A list of action types that are enabled. It defaults to `[*]`, enabling all types. The names for built-in {kib} action types are prefixed with a `.` and include: `.server-log`, `.slack`, `.email`, `.index`, `.pagerduty`, and `.webhook`. An empty list `[]` will disable all action types. +
4747
+
4848
Disabled action types will not appear as an option when creating new connectors, but existing connectors and actions of that type will remain in {kib} and will not function.

x-pack/plugins/enterprise_search/common/constants.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export const APP_SEARCH_PLUGIN = {
2424
'Leverage dashboards, analytics, and APIs for advanced application search made simple.',
2525
}),
2626
URL: '/app/enterprise_search/app_search',
27+
SUPPORT_URL: 'https://discuss.elastic.co/c/enterprise-search/app-search/',
2728
};
2829

2930
export const WORKPLACE_SEARCH_PLUGIN = {
@@ -36,8 +37,11 @@ export const WORKPLACE_SEARCH_PLUGIN = {
3637
'Search all documents, files, and sources available across your virtual workplace.',
3738
}),
3839
URL: '/app/enterprise_search/workplace_search',
40+
SUPPORT_URL: 'https://discuss.elastic.co/c/enterprise-search/workplace-search/',
3941
};
4042

43+
export const LICENSED_SUPPORT_URL = 'https://support.elastic.co';
44+
4145
export const JSON_HEADER = { 'Content-Type': 'application/json' }; // This needs specific casing or Chrome throws a 415 error
4246

4347
export const ENGINES_PAGE_SIZE = 10;

x-pack/plugins/enterprise_search/public/applications/app_search/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import {
2929

3030
import { SetupGuide } from './components/setup_guide';
3131
import { ErrorConnecting } from './components/error_connecting';
32+
import { NotFound } from '../shared/not_found';
3233
import { EngineOverview } from './components/engine_overview';
3334

3435
export const AppSearch: React.FC<IInitialAppData> = (props) => {
@@ -73,6 +74,9 @@ export const AppSearchConfigured: React.FC<IInitialAppData> = (props) => {
7374
<Route exact path={ENGINES_PATH}>
7475
<EngineOverview />
7576
</Route>
77+
<Route>
78+
<NotFound product={APP_SEARCH_PLUGIN} />
79+
</Route>
7680
</Switch>
7781
)}
7882
</Layout>

x-pack/plugins/enterprise_search/public/applications/shared/licensing/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
*/
66

77
export { LicenseContext, LicenseProvider, ILicenseContext } from './license_context';
8-
export { hasPlatinumLicense } from './license_checks';
8+
export { hasPlatinumLicense, hasGoldLicense } from './license_checks';

x-pack/plugins/enterprise_search/public/applications/shared/licensing/license_checks.test.ts

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* you may not use this file except in compliance with the Elastic License.
55
*/
66

7-
import { hasPlatinumLicense } from './license_checks';
7+
import { hasPlatinumLicense, hasGoldLicense } from './license_checks';
88

99
describe('hasPlatinumLicense', () => {
1010
it('is true for platinum licenses', () => {
@@ -31,3 +31,24 @@ describe('hasPlatinumLicense', () => {
3131
expect(hasPlatinumLicense({ isActive: true, type: 'gold' } as any)).toEqual(false);
3232
});
3333
});
34+
35+
describe('hasGoldLicense', () => {
36+
it('is true for gold+ and trial licenses', () => {
37+
expect(hasGoldLicense({ isActive: true, type: 'gold' } as any)).toEqual(true);
38+
expect(hasGoldLicense({ isActive: true, type: 'platinum' } as any)).toEqual(true);
39+
expect(hasGoldLicense({ isActive: true, type: 'enterprise' } as any)).toEqual(true);
40+
expect(hasGoldLicense({ isActive: true, type: 'trial' } as any)).toEqual(true);
41+
});
42+
43+
it('is false if the current license is expired', () => {
44+
expect(hasGoldLicense({ isActive: false, type: 'gold' } as any)).toEqual(false);
45+
expect(hasGoldLicense({ isActive: false, type: 'platinum' } as any)).toEqual(false);
46+
expect(hasGoldLicense({ isActive: false, type: 'enterprise' } as any)).toEqual(false);
47+
expect(hasGoldLicense({ isActive: false, type: 'trial' } as any)).toEqual(false);
48+
});
49+
50+
it('is false for licenses below gold', () => {
51+
expect(hasGoldLicense({ isActive: true, type: 'basic' } as any)).toEqual(false);
52+
expect(hasGoldLicense({ isActive: false, type: 'standard' } as any)).toEqual(false);
53+
});
54+
});

x-pack/plugins/enterprise_search/public/applications/shared/licensing/license_checks.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,11 @@
77
import { ILicense } from '../../../../../licensing/public';
88

99
export const hasPlatinumLicense = (license?: ILicense) => {
10-
return license?.isActive && ['platinum', 'enterprise', 'trial'].includes(license?.type as string);
10+
const qualifyingLicenses = ['platinum', 'enterprise', 'trial'];
11+
return license?.isActive && qualifyingLicenses.includes(license?.type as string);
12+
};
13+
14+
export const hasGoldLicense = (license?: ILicense) => {
15+
const qualifyingLicenses = ['gold', 'platinum', 'enterprise', 'trial'];
16+
return license?.isActive && qualifyingLicenses.includes(license?.type as string);
1117
};
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Elastic License;
4+
* you may not use this file except in compliance with the Elastic License.
5+
*/
6+
7+
import React from 'react';
8+
9+
export const AppSearchLogo: React.FC = () => (
10+
<svg
11+
xmlns="http://www.w3.org/2000/svg"
12+
width="136"
13+
height="136"
14+
viewBox="0 0 136 136"
15+
className="logo404"
16+
aria-hidden="true"
17+
>
18+
<rect x="1" y="1" width="134" height="134" rx="67" strokeWidth="2" strokeDasharray="8 4" />
19+
<path
20+
fillRule="evenodd"
21+
clipRule="evenodd"
22+
d="M105.305 43.282l2.934-1.692c3.015 3.693 4.761 8.35 4.761 13.267V82.57a21 21 0 01-10.5 18.186L80 113.747V73.934c0-4.93-1.753-9.588-4.774-13.284l30.079-17.367zM66.5 55.747A21 21 0 0056 73.933v39.817l-22.5-12.993A21.001 21.001 0 0123 82.57V54.86c0-7.503 4.002-14.44 10.5-18.19l1.478-.853.022.014 33 19.05-1.5.867z"
23+
className="logo404__light"
24+
/>
25+
<path
26+
d="M78.5 22.813a21.007 21.007 0 00-21 0L35 35.83l33 19.05 33.001-19.05-22.5-13.017z"
27+
fillRule="evenodd"
28+
clipRule="evenodd"
29+
className="logo404__dark"
30+
/>
31+
</svg>
32+
);
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Elastic License;
4+
* you may not use this file except in compliance with the Elastic License.
5+
*/
6+
7+
.logo404 {
8+
width: $euiSize * 8;
9+
height: $euiSize * 8;
10+
11+
fill: $euiColorEmptyShade;
12+
stroke: $euiColorLightShade;
13+
14+
&__light {
15+
fill: $euiColorLightShade;
16+
}
17+
18+
&__dark {
19+
fill: $euiColorMediumShade;
20+
}
21+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Elastic License;
4+
* you may not use this file except in compliance with the Elastic License.
5+
*/
6+
7+
import React from 'react';
8+
9+
export const WorkplaceSearchLogo: React.FC = () => (
10+
<svg
11+
fill="none"
12+
xmlns="http://www.w3.org/2000/svg"
13+
width="137"
14+
height="137"
15+
viewBox="0 0 137 137"
16+
className="logo404"
17+
aria-hidden="true"
18+
>
19+
<path
20+
fillRule="evenodd"
21+
clipRule="evenodd"
22+
d="M136.886 72.486l-1.997-.115a67.11 67.11 0 000-7.742l1.997-.115a69.278 69.278 0 010 7.972zm-.343-11.943l-1.987.23a66.084 66.084 0 00-1.335-7.617l1.947-.46a68.478 68.478 0 011.375 7.847zm-2.404-11.696l-1.916.573a65.939 65.939 0 00-2.645-7.265l1.836-.794a67.996 67.996 0 012.725 7.486zm-4.412-11.096l-1.786.899a66.668 66.668 0 00-3.873-6.694l1.67-1.101a68.365 68.365 0 013.989 6.896zm-6.278-10.158l-1.603 1.195a66.966 66.966 0 00-4.975-5.923l1.454-1.372a68.733 68.733 0 015.124 6.1zm-7.941-8.918l-1.373 1.454a66.818 66.818 0 00-5.924-4.975l1.196-1.603a68.803 68.803 0 016.101 5.124zm-9.363-7.413l-1.101 1.67A66.34 66.34 0 0098.35 9.06l.9-1.786a68.38 68.38 0 016.895 3.99zM95.638 5.586l-.793 1.836a66 66 0 00-7.265-2.645l.573-1.916a67.995 67.995 0 017.485 2.725zM84.304 1.832l-.46 1.947a66.263 66.263 0 00-7.617-1.335l.23-1.987c2.665.309 5.284.77 7.847 1.375zM72.486.114l-.115 1.997a67.582 67.582 0 00-7.742 0L64.514.114a69.582 69.582 0 017.972 0zM60.543.457l.23 1.987c-2.588.3-5.13.747-7.617 1.335l-.46-1.947A68.267 68.267 0 0160.543.457zM48.847 2.861l.573 1.916a65.986 65.986 0 00-7.265 2.645l-.794-1.836a67.995 67.995 0 017.486-2.725zM37.75 7.273l.899 1.786a66.406 66.406 0 00-6.694 3.873l-1.101-1.67a68.42 68.42 0 016.896-3.99zM27.593 13.55l1.195 1.603a66.85 66.85 0 00-5.923 4.975l-1.372-1.454a68.853 68.853 0 016.1-5.124zm-8.918 7.941l1.454 1.373a66.866 66.866 0 00-4.975 5.924l-1.603-1.196a68.855 68.855 0 015.124-6.1zm-7.413 9.363l1.67 1.1A66.423 66.423 0 009.06 38.65l-1.786-.9a68.424 68.424 0 013.99-6.895zM5.586 41.361l1.836.794a66 66 0 00-2.645 7.265l-1.916-.573a67.995 67.995 0 012.725-7.486zM1.832 52.697l1.947.46a66.263 66.263 0 00-1.335 7.617l-1.987-.23c.309-2.665.77-5.284 1.375-7.847zM.114 64.514a69.582 69.582 0 000 7.972l1.997-.115a67.582 67.582 0 010-7.742l-1.997-.115zm.343 11.943l1.987-.23c.3 2.588.747 5.13 1.335 7.617l-1.947.46a68.267 68.267 0 01-1.375-7.847zm2.404 11.696l1.916-.573a66 66 0 002.645 7.266l-1.836.792a67.995 67.995 0 01-2.725-7.485zM7.273 99.25l1.786-.898a66.323 66.323 0 003.873 6.693l-1.67 1.101a68.378 68.378 0 01-3.99-6.895zm6.278 10.158l1.603-1.196a66.801 66.801 0 004.975 5.924l-1.454 1.373a68.803 68.803 0 01-5.124-6.101zm7.941 8.918l1.373-1.454a66.966 66.966 0 005.924 4.975l-1.196 1.603a68.734 68.734 0 01-6.1-5.124zm9.363 7.413l1.1-1.67a66.668 66.668 0 006.695 3.873l-.9 1.786a68.354 68.354 0 01-6.895-3.989zm10.506 5.676l.794-1.836a65.953 65.953 0 007.265 2.645l-.573 1.916a67.996 67.996 0 01-7.486-2.725zm11.335 3.754l.46-1.947a66.084 66.084 0 007.617 1.335l-.23 1.987a68.478 68.478 0 01-7.847-1.375zm11.818 1.718l.115-1.997a67.11 67.11 0 007.742 0l.115 1.997a69.278 69.278 0 01-7.972 0zm11.943-.343l-.23-1.987a66.084 66.084 0 007.617-1.335l.46 1.947a68.478 68.478 0 01-7.847 1.375zm11.696-2.404l-.573-1.916a65.953 65.953 0 007.266-2.645l.792 1.836a67.996 67.996 0 01-7.485 2.725zm11.096-4.412l-.898-1.786a66.584 66.584 0 006.693-3.873l1.101 1.67a68.31 68.31 0 01-6.895 3.989zm10.158-6.278l-1.196-1.603a66.918 66.918 0 005.924-4.975l1.373 1.454a68.682 68.682 0 01-6.101 5.124zm8.918-7.941l-1.454-1.373a66.918 66.918 0 004.975-5.924l1.603 1.196a68.682 68.682 0 01-5.124 6.101zm7.413-9.363l-1.67-1.101a66.584 66.584 0 003.873-6.694l1.786.9a68.31 68.31 0 01-3.989 6.895zm5.676-10.507l-1.836-.793a65.953 65.953 0 002.645-7.265l1.916.573a67.996 67.996 0 01-2.725 7.485zm3.754-11.334l-1.947-.46a66.084 66.084 0 001.335-7.617l1.987.23a68.478 68.478 0 01-1.375 7.847zM72.406 44.047c.372-.442 1-1.12 1.881-2.034 2.332-2.413 7.462-6.825 11.778-6.825h13.56v65.624H86.062c-4.313 0-8.739-3.17-11.775-6.794l-1.671-2.301 6.016-7.606c7.573-9.573 7.575-22.601.002-32.172l-6.228-7.892z"
23+
className="logo404__light"
24+
/>
25+
<path
26+
fillRule="evenodd"
27+
clipRule="evenodd"
28+
d="M38.375 100.812V35.188h12.71c3.74 0 7.328 1.719 9.596 4.593l12.808 16.232c5.683 7.181 5.683 16.839-.005 24.025L60.677 96.232c-2.269 2.868-5.852 4.58-9.582 4.58h-12.72z"
29+
className="logo404__light"
30+
/>
31+
<path
32+
fillRule="evenodd"
33+
clipRule="evenodd"
34+
d="M67.653 87.447l-7.075-6.978c-6.274-7.258-6.274-17.981.005-24.767 3.357-3.585 5.711-5.946 7.065-7.083l5.84 7.083c5.77 7.405 5.634 17.471-.135 24.88l-5.703 6.863.002.002z"
35+
className="logo404__dark"
36+
/>
37+
</svg>
38+
);
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the Elastic License;
4+
* you may not use this file except in compliance with the Elastic License.
5+
*/
6+
7+
export { NotFound } from './not_found';

0 commit comments

Comments
 (0)