Skip to content

Commit dc5cbcc

Browse files
Merge branch '7.9' into backport/7.9/pr-71969
2 parents 52b9097 + 47c2b2b commit dc5cbcc

File tree

158 files changed

+3767
-1943
lines changed

Some content is hidden

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

158 files changed

+3767
-1943
lines changed

docs/CHANGELOG.asciidoc

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,9 @@ This section summarizes the changes in each release.
4242
[[release-notes-7.8.1]]
4343
== {kib} 7.8.1
4444

45-
See also <<breaking-changes-7.8,breaking changes in 7.8>>.
45+
coming::[7.8.1]
4646

47-
[float]
48-
[[security-update-7.8.1]]
49-
=== Security updates
50-
* In {kib} 7.8.1 and earlier, there is a denial of service (DoS) flaw in Timelion. Attackers can construct a URL that when viewed
51-
by a {kib} user, the {kib} process consumes large amounts of CPU and becomes unresponsive, CVE-2020-7016.
52-
+
53-
You must upgrade to 7.8.1. If you are unable to upgrade, set `timelion.enabled` to `false` in your kibana.yml file to disable Timelion.
54-
55-
* In all {kib} versions, region map visualizations contain a stored XSS flaw. Attackers that can edit or create region map visualizations can obtain sensitive information
56-
or perform destructive actions on behalf of {kib} users who view the region map visualization, CVE-2020-7017.
57-
+
58-
You must upgrade to 7.8.1. If you are unable to upgrade, set `xpack.maps.enabled`, `region_map.enabled`, and `tile_map.enabled` to `false` in kibana.yml to disable map visualizations.
47+
See also <<breaking-changes-7.8,breaking changes in 7.8>>.
5948

6049
[float]
6150
[[bug-v7.8.1]]

src/core/public/doc_links/doc_links_service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ export class DocLinksService {
111111
},
112112
kibana: `${ELASTIC_WEBSITE_URL}guide/en/kibana/${DOC_LINK_VERSION}/index.html`,
113113
siem: {
114-
guide: `${ELASTIC_WEBSITE_URL}guide/en/siem/guide/${DOC_LINK_VERSION}/index.html`,
115-
gettingStarted: `${ELASTIC_WEBSITE_URL}guide/en/siem/guide/${DOC_LINK_VERSION}/install-siem.html`,
114+
guide: `${ELASTIC_WEBSITE_URL}guide/en/security/${DOC_LINK_VERSION}/index.html`,
115+
gettingStarted: `${ELASTIC_WEBSITE_URL}guide/en/security/${DOC_LINK_VERSION}/install-siem.html`,
116116
},
117117
query: {
118118
luceneQuerySyntax: `${ELASTICSEARCH_DOCS}query-dsl-query-string-query.html#query-string-syntax`,

src/es_archiver/lib/indices/create_index_stream.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
*/
1919

2020
import { Transform, Readable } from 'stream';
21+
import { inspect } from 'util';
22+
2123
import { get, once } from 'lodash';
2224
import { Client } from 'elasticsearch';
2325
import { ToolingLog } from '@kbn/dev-utils';
@@ -88,6 +90,18 @@ export function createCreateIndexStream({
8890

8991
stats.createdIndex(index, { settings });
9092
} catch (err) {
93+
if (
94+
err?.body?.error?.reason?.includes('index exists with the same name as the alias') &&
95+
attemptNumber < 3
96+
) {
97+
const aliasStr = inspect(aliases);
98+
log.info(
99+
`failed to create aliases [${aliasStr}] because ES indicated an index/alias already exists, trying again`
100+
);
101+
await attemptToCreate(attemptNumber + 1);
102+
return;
103+
}
104+
91105
if (
92106
get(err, 'body.error.type') !== 'resource_already_exists_exception' ||
93107
attemptNumber >= 3

src/plugins/dev_tools/public/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class DevToolsPlugin implements Plugin<DevToolsSetup, void> {
6161
}),
6262
updater$: this.appStateUpdater,
6363
euiIconType: 'devToolsApp',
64-
order: 9001,
64+
order: 9010,
6565
category: DEFAULT_APP_CATEGORIES.management,
6666
mount: async (params: AppMountParameters) => {
6767
const { element, history } = params;

src/plugins/management/public/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class ManagementPlugin implements Plugin<ManagementSetup, ManagementStart
6565
title: i18n.translate('management.stackManagement.title', {
6666
defaultMessage: 'Stack Management',
6767
}),
68-
order: 9003,
68+
order: 9040,
6969
euiIconType: 'managementApp',
7070
category: DEFAULT_APP_CATEGORIES.management,
7171
async mount(params: AppMountParameters) {

test/functional/apps/dashboard/dashboard_filter_bar.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ export default function ({ getService, getPageObjects }) {
3030
const browser = getService('browser');
3131
const PageObjects = getPageObjects(['common', 'dashboard', 'header', 'visualize', 'timePicker']);
3232

33-
describe('dashboard filter bar', () => {
33+
// FLAKY: https://github.com/elastic/kibana/issues/71987
34+
describe.skip('dashboard filter bar', () => {
3435
before(async () => {
3536
await esArchiver.load('dashboard/current/kibana');
3637
await kibanaServer.uiSettings.replace({

test/functional/apps/management/_create_index_pattern_wizard.js

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -51,42 +51,6 @@ export default function ({ getService, getPageObjects }) {
5151
});
5252
});
5353

54-
describe('data streams', () => {
55-
it('can be an index pattern', async () => {
56-
await es.transport.request({
57-
path: '/_index_template/generic-logs',
58-
method: 'PUT',
59-
body: {
60-
index_patterns: ['logs-*', 'test_data_stream'],
61-
template: {
62-
mappings: {
63-
properties: {
64-
'@timestamp': {
65-
type: 'date',
66-
},
67-
},
68-
},
69-
},
70-
data_stream: {
71-
timestamp_field: '@timestamp',
72-
},
73-
},
74-
});
75-
76-
await es.transport.request({
77-
path: '/_data_stream/test_data_stream',
78-
method: 'PUT',
79-
});
80-
81-
await PageObjects.settings.createIndexPattern('test_data_stream', false);
82-
83-
await es.transport.request({
84-
path: '/_data_stream/test_data_stream',
85-
method: 'DELETE',
86-
});
87-
});
88-
});
89-
9054
describe('index alias', () => {
9155
it('can be an index pattern', async () => {
9256
await es.transport.request({

x-pack/plugins/apm/public/application/index.tsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import {
2626
} from '../../../../../src/plugins/kibana_react/public';
2727
import { px, units } from '../style/variables';
2828
import { UpdateBreadcrumbs } from '../components/app/Main/UpdateBreadcrumbs';
29-
import { APMIndicesPermission } from '../components/app/APMIndicesPermission';
3029
import { ScrollToTopOnPathChange } from '../components/app/Main/ScrollToTopOnPathChange';
3130
import { routes } from '../components/app/Main/route_config';
3231
import { history, resetHistory } from '../utils/history';
@@ -52,13 +51,11 @@ const App = () => {
5251
<MainContainer data-test-subj="apmMainContainer" role="main">
5352
<UpdateBreadcrumbs routes={routes} />
5453
<Route component={ScrollToTopOnPathChange} />
55-
<APMIndicesPermission>
56-
<Switch>
57-
{routes.map((route, i) => (
58-
<ApmRoute key={i} {...route} />
59-
))}
60-
</Switch>
61-
</APMIndicesPermission>
54+
<Switch>
55+
{routes.map((route, i) => (
56+
<ApmRoute key={i} {...route} />
57+
))}
58+
</Switch>
6259
</MainContainer>
6360
</ThemeProvider>
6461
);

x-pack/plugins/apm/public/components/app/APMIndicesPermission/index.test.tsx

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

0 commit comments

Comments
 (0)