-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
…112704_fix
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 112481 | ||
summary: Validate streaming HTTP Response | ||
area: Machine Learning | ||
type: enhancement | ||
issues: [] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
pr: 112571 | ||
summary: Deprecate dot-prefixed indices and composable template index patterns | ||
area: CRUD | ||
type: deprecation | ||
issues: [] | ||
deprecation: | ||
title: Deprecate dot-prefixed indices and composable template index patterns | ||
area: CRUD | ||
details: "Indices beginning with a dot '.' are reserved for system and internal\ | ||
\ indices, and should not be used by and end-user. Additionally, composable index\ | ||
\ templates that contain patterns for dot-prefixed indices should also be avoided,\ | ||
\ as these patterns are meant for internal use only. In a future Elasticsearch\ | ||
\ version, creation of these dot-prefixed indices will no longer be allowed." | ||
impact: "Requests performing an action that would create an index beginning with\ | ||
\ a dot (indexing a document, manual creation, reindex), or creating an index\ | ||
\ template with index patterns beginning with a dot, will contain a deprecation\ | ||
\ header warning about dot-prefixed indices in the response." |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 112895 | ||
summary: (logger) change from error to warn for short circuiting user | ||
area: Security | ||
type: enhancement | ||
issues: [] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pr: 113027 | ||
summary: Retrieve the source for objects and arrays in a separate parsing phase | ||
area: Mapping | ||
type: bug | ||
issues: | ||
- 112374 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
apply plugin: 'elasticsearch.internal-yaml-rest-test' | ||
apply plugin: 'elasticsearch.yaml-rest-compat-test' | ||
apply plugin: 'elasticsearch.internal-cluster-test' | ||
|
||
esplugin { | ||
description 'Validation for dot-prefixed indices for non-operator users' | ||
classname 'org.elasticsearch.validation.DotPrefixValidationPlugin' | ||
} | ||
|
||
restResources { | ||
restApi { | ||
include '_common', 'indices', 'index', 'cluster', 'nodes', 'get', 'ingest', 'bulk', 'reindex' | ||
} | ||
} | ||
|
||
tasks.named('yamlRestTest') { | ||
usesDefaultDistribution() | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the "Elastic License | ||
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side | ||
* Public License v 1"; you may not use this file except in compliance with, at | ||
* your election, the "Elastic License 2.0", the "GNU Affero General Public | ||
* License v3.0 only", or the "Server Side Public License, v 1". | ||
*/ | ||
|
||
module org.elasticsearch.validation { | ||
requires org.elasticsearch.server; | ||
requires org.elasticsearch.base; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the "Elastic License | ||
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side | ||
* Public License v 1"; you may not use this file except in compliance with, at | ||
* your election, the "Elastic License 2.0", the "GNU Affero General Public | ||
* License v3.0 only", or the "Server Side Public License, v 1". | ||
*/ | ||
|
||
package org.elasticsearch.validation; | ||
|
||
import org.elasticsearch.action.admin.indices.create.AutoCreateAction; | ||
import org.elasticsearch.action.admin.indices.create.CreateIndexRequest; | ||
import org.elasticsearch.cluster.service.ClusterService; | ||
import org.elasticsearch.common.util.concurrent.ThreadContext; | ||
|
||
import java.util.Set; | ||
|
||
public class AutoCreateDotValidator extends DotPrefixValidator<CreateIndexRequest> { | ||
public AutoCreateDotValidator(ThreadContext threadContext, ClusterService clusterService) { | ||
super(threadContext, clusterService); | ||
} | ||
|
||
@Override | ||
protected Set<String> getIndicesFromRequest(CreateIndexRequest request) { | ||
return Set.of(request.index()); | ||
} | ||
|
||
@Override | ||
public String actionName() { | ||
return AutoCreateAction.NAME; | ||
} | ||
} |