Commit graph

1192 commits

Author SHA1 Message Date
Ioannis Kakavas
0eb2baa07d
CLI tool to (re)set users password (#79709)
This change introduces a new CLI tool that can be used to set and
reset the password of all the built-in users and users in the native
realm in Elasticsearch. It depends on the file realm being enabled
(which it is, by default) and can (re)set one built-in user password at a time.
It removes the previously introduced elasticsearch-reset-elastic-password
and elasticsearch-reset-kibana-system-password as their functionality is
covered by this new tool.
2021-10-26 07:57:18 +03:00
Lisa Cawley
c10bf9be84
[DOCS] Add transform breaking changes (#79531) 2021-10-25 08:08:18 -07:00
bellengao
fd68b04049
Throw a RepositoryConflictException when trying to put or delete a repository in use (#56070) 2021-10-21 13:16:36 +02:00
Przemyslaw Gomulka
6aa0db817c
[DOCS] Migration information about ES logging breaking changes (#79146)
Adds breaking change docs for #47105. (ECS layout and plaintext log files removal)

Relates to #46119
2021-10-20 17:02:29 +02:00
Gordon Brown
1a906897e6
Implement framework for migrating system indices (#78951)
This PR adds a framework for migrating system indices as necessary prior
to Elasticsearch upgrades. This framework uses REST APIs added in
another commit:
- GET _migration/system_features

This API, which gets the status of "features" (plugins which own system
indices) with regards to whether they need to be upgraded or not. As of
this PR, this API also reports errors encountered while migrating system
indices alongside the index that was being processed when this occurred.

As an example of this error reporting:

```json
{
    "feature_name": "logstash_management",
    "minimum_index_version": "8.0.0",
    "upgrade_status": "ERROR",
    "indices": [
        {
            "index": ".logstash",
            "version": "8.0.0",
            "failure_cause": {
                "error": {
                    "root_cause": [
                        {
                            "type": "runtime_exception",
                            "reason": "whoopsie",
                            "stack_trace": "<omitted for brevity>"
                        }
                    ],
                    "type": "runtime_exception",
                    "reason": "whoopsie",
                    "stack_trace": "<omitted for brevity>"
                }
            }
        }
    ]
}
```

- POST _migration/system_features

This API starts the migration process. The API for this has no changes,
but when called, any system indices which need to be migrated will be
migrated, with status information stored in the cluster state for later
use by the GET _migration/system_features API.
2021-10-19 18:52:22 -06:00
James Baiera
ceaf53cf9e
Add deprecation info API entries for deprecated monitoring settings (#78799)
Recently we have deprecated a number of settings in monitoring. These settings should be represented in the deprecation info API. This PR will be backported with some minor changes to the 7.x branch so that we can start the deprecation process in that release cycle.
2021-10-19 12:45:38 -04:00
Ioannis Kakavas
d6ef299975
Add note in breaking changes for nameid_format (#77785)
* Add note in breaking changes for nameid_format

We changed the default for `nameid_format` in 8.0 in #44090 but
did not add anything to the breaking changes in the release notes.
This change amends that.

* remove reference to settings

* Fix docs build

* Accepting most of James' suggested changes

Thanks James!

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

* Incorporating changes from Ioannis

* Apply suggestions from code review

Co-authored-by: Tim Vernum <tim@adjective.org>

* Apply suggestions from code review

Co-authored-by: Ioannis Kakavas <ikakavas@protonmail.com>

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
Co-authored-by: Adam Locke <adam.locke@elastic.co>
Co-authored-by: Tim Vernum <tim@adjective.org>
2021-10-19 12:38:52 -04:00
William Brafford
5c6a481cb7
Use 'migration' instead of 'upgrade' in GET system feature migration status responses (#79302)
* Change 'upgrade' to 'migration' in System Index Migration responses

* Mute rest compatibility test
2021-10-19 12:15:26 -04:00
Jack Conradson
55e5daf470
Add deprecated methods for JodaCompatibleZonedDateTime to docs (#79202)
This change adds all the JodaCompatibleZonedDateTime methods that no longer exist to the 
migration docs with their ZonedDateTime equivalents.

Fixes: #78739
2021-10-18 08:00:47 -07:00
Adam Locke
8510766e7d
[DOCS] Add deprecation notice for reset password tool (#78793)
* [DOCS] Add deprecation notice for elastic-reset-password

* Change links to be external

* Update wording

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
2021-10-18 07:59:01 -04:00
Keith Massey
87fa61cc3f
Filtering setting deprecation info API messages based on a setting (#78725) (#79184)
This commit adds the ability to configure a list of settings that will be ignored by the deprecation info
API. Any deprecation messages for any of the settings given will be suppressed. This can be used to hide
settings that users do not have the ability to change.
Relates #78725
2021-10-14 16:31:13 -05:00
Martijn van Groningen
04e5823a69
Remove default maxmind geoip databases from distribution (#78362)
* Adjusted integration tests to use geoip test fixture or to use test databases provided via config dirs (for qa module / docs).
* Kept the geolite2-databases dependency for most of the unit tests only.
* Made fallback_to_default_databases parameter on geoip processor a noop and emit deprecation warning upon using it.
* If no geoip databases are available yet to a node then the geoip processor factory returns a processor implementation that flags documents that databases are unavailable. This allows these documents to be reindex later with a pipeline. These documents will have a tag string array field, which contains a string _geoip_database_unavailable_{database_name} for each missing database in a pipeline.
* Added reload pipeline capabilities is IngestService, so that when databases are available again on a node then pipelines with geoip processor definition can be reloaded.

Relates to #68920
2021-10-13 14:52:18 +02:00
James Rodewig
ae50acdbf8
[DOCS] Add 8.0 breaking change for adjacency matrix setting (#79023)
Adds an 8.0 breaking change for the removal of the
`index.max_adjacency_matrix_filters` index setting.

Relates to #77803.
2021-10-13 08:33:39 -04:00
James Rodewig
a023febd20
[DOCS] Update the 8.0 Java breaking change for consistency (#79018)
Portions of the change reference Java 11 while other portions reference
Java 17. This updates the docs to consistently use Java 17.
2021-10-13 07:27:31 -04:00
William Brafford
0a28c7cb91
Implement GET API for System Feature Upgrades (#78642)
* Implement and test get feature upgrade status API
* Add integration test for feature upgrade endpoint
* Use constant enum for statuses
* Add unit tests for transport class methods
2021-10-07 15:18:47 -04:00
debadair
248b2293f9
[DOCS] Add info about FIPS and Java 17 (#78580)
* [DOCS] Updated breaking changes entry for Java 11.
2021-10-06 11:54:48 -07:00
James Baiera
aa3d5109b1
Automatically install monitoring templates at plugin initialization (#78350)
This PR adds a MonitoringIndexTemplateRegistry to the monitoring plugin which automatically 
installs all monitoring templates locally when the plugin is initialized. Exporters have been 
updated to no longer attempt installation of the monitoring templates, and instead will wait for 
the templates to become available before setting themselves as started. Some older 
functionality related to templates has been removed as well, such as the expectation that 
version 6 monitoring templates are installed, as well as the setting that controls their installation
(xpack.monitoring.exporters.<EXPORTER>.index.template.create_legacy_templates).
2021-10-05 14:05:20 -04:00
Jack Conradson
2cf160f2c0
Remove deprecated code from stored scripts (#78643)
This change removes several pieces of deprecated code from stored scripts.

Stored scripts/templates are no longer allowed to be an empty and will throw an exception when used 
with PutStoredScript.

ScriptMetadata will now drop any existing stored scripts that are empty with a deprecation warning in 
the case they have not been previously removed.

The code field is now only allowed as source as part of a PutStoredScript JSON blob.
2021-10-05 10:41:39 -07:00
James Rodewig
2893ea911b
[DOCS] Remove duplicate line from migration guide (#78688) 2021-10-05 08:52:11 -04:00
Joe Gallo
4a14f2f6f9
Validate that snapshot repository exists for ILM policies at creation/update time (#78468) 2021-10-04 15:19:10 -04:00
debadair
7431a9656e
[DOCS] Fix erroneous page break. (#78487) 2021-09-29 15:12:13 -07:00
William Brafford
8c2fe902f3
Feature upgrade rest stubs (#77827)
* Add stubs for get API
* Add stub for post API
* Register new actions in ActionModule
* HLRC stubs
* Unit tests
* Add rest api spec and tests
* Add new action to non-operator actions list
2021-09-29 16:25:15 -04:00
Jack Conradson
086ba1aefb
Remove JodaCompatibleZonedDateTime (#78417)
This change removes JodaCompatibleZonedDateTime and replaces it with ZonedDateTime for use in 
scripting.

Breaking changes:
* JodaCompatibleDateTime no longer exists and cannot be cast to in Painless. Use ZonedDateTime 
instead.
* The dayOfWeek method on ZonedDateTime returns the DayOfWeek enum instead of an int from 
JodaCompatibleDateTime. dayOfWeekEnum still exists on ZonedDateTime as an augmentation to 
support the transition to ZonedDateTime, but is now deprecated in favor of dayOfWeek on 
ZonedDateTime.
2021-09-29 13:01:40 -07:00
James Rodewig
4544ab2dbb
[DOCS] Always enable file and native realms unless explicitly disabled (#78405)
* [DOCS] Always enable file and native realms by default

Adds an 8.0 breaking change for PR #69096.

The copy is based on the 7.13 deprecation notice added with PR #69320.

* reword

* Update docs/reference/migration/migrate_8_0/security.asciidoc

Co-authored-by: Yang Wang <ywangd@gmail.com>

* Update docs/reference/migration/migrate_8_0/security.asciidoc

Co-authored-by: Yang Wang <ywangd@gmail.com>

Co-authored-by: Yang Wang <ywangd@gmail.com>
2021-09-29 09:10:30 -04:00
James Rodewig
f4b5ef7416
[DOCS] Remove include_type_name query parameter (#78394)
Adds an 8.0 breaking change for PR #48632.
2021-09-29 09:00:15 -04:00
James Baiera
eafbd336c2
Remove Monitoring ingest pipelines (#77459)
Monitoring installs a number of ingest pipelines which have been historically used
to upgrade documents when mappings and document structures change between 
versions. Since there aren't any changes to the document format, nor will there be 
by the time the format is completely retired, we can comfortably remove these 
pipelines.
2021-09-28 16:10:02 -04:00
James Rodewig
58595e7af5
[DOCS] Searches on the _type field are no longer supported (#78400)
Adds an 8.0 breaking change for PR #68564
2021-09-28 14:51:45 -04:00
James Rodewig
485e7deaa0
[DOCS] Re-add docs for multiple data paths (MDP) (#78342)
We deprecated support for multiple data paths (MDP) in 7.13. However,
we won't remove support until after 8.0.

Changes:

* Reverts PR #72267, which removed MDP docs
* Removes a related item from the 8.0 breaking changes.
2021-09-28 09:20:45 -04:00
James Rodewig
0c01bcdd9f
[DOCS] Remove index API's types option (#78335)
Adds an 8.0 breaking change for PR #47203.
2021-09-28 08:44:25 -04:00
James Rodewig
1764fa0e8f
[DOCS] Remove type query (#78334)
Adds an 8.0 breaking change for PR #47207.
2021-09-28 08:44:06 -04:00
James Rodewig
b20939f071
[DOCS] Document empty first line support for msearch API (#78284)
Adds an 8.0 breaking change for PR #41011
2021-09-27 08:58:22 -04:00
James Rodewig
38125c147d
[DOCS] Remove gateway.auto_import_dangling_indices setting (#78280)
Adds an 8.0 breaking change for PR #59698.
2021-09-26 19:24:01 -04:00
James Rodewig
181aebd1dc
[DOCS] Watcher history now writes to a data stream (#78277)
Adds an 8.0 breaking change for PR #64252.
2021-09-23 16:07:01 -04:00
James Rodewig
96c4bd96a9
[DOCS] Remove support for unmapped_type:string sort (#78272)
* [DOCS] Remove support for `unmapped_type:string` sort

Adds an 8.0 breaking change for PR #45675.

* Clarify error

* Reset mapping changes
2021-09-23 13:37:46 -04:00
James Rodewig
80ba92f1b1
[DOCS] Add breaking change for unsupported script fields (#78217)
Adds an 8.0 breaking change for PR #59507.
2021-09-22 17:41:06 -04:00
James Rodewig
15baf4017a
[DOCS] Remove _term and _time agg order keys (#78209)
Adds an 8.0 breaking change for the removal of the `_term` and `_time`
agg `order` keys.

Relates to #39450
2021-09-22 15:54:14 -04:00
James Rodewig
ce56c19346
[DOCS] Remove support for EOL OSs and SysV init (#78199)
Adds an 8.0 breaking change for the removal of support for several EOL operating
systems and `SysV init`.

Relates to #51480 and #51716
2021-09-22 13:41:52 -04:00
James Rodewig
2b2f0e1d7f
[DOCS] Remove the listener thread pool (#78194)
Changes:
* Removes docs for the `listener` thread pool
* Adds an 8.0 breaking change for the thread pool removal

Relates to #53314 and #53049
2021-09-22 13:41:05 -04:00
Ryan Ernst
a06aff9b01
Revert "Fail index creation using custom data path (#76792)" (#78031)
This reverts commit 79d91ed9d3.
2021-09-22 09:02:56 -07:00
James Rodewig
49444ccd10
[DOCS] Add breaking change for ECS user agent (#77971)
In 8.x, we'll ignore the `ecs` option for the `user_agent` ingest processor.
This adds a related breaking change to the 8.0 migration docs.

Relates to #38828
2021-09-21 09:19:44 -04:00
James Rodewig
f3f11ab365
[DOCS] Add breaking change for moving_avg (#78018)
Documents the removal of the `moving_avg` aggregation in the 8.0 breaking changes.

Relates to #29594.
2021-09-20 13:16:11 -04:00
James Rodewig
3a23dd919c
[DOCS] Fix deprecation version for cluster recovery breaking change (#77787) 2021-09-15 10:35:26 -04:00
István Zoltán Szabó
db239e2b50
[DOCS] Adds update datafeeds API changes to the migration guide. (#77689) 2021-09-14 13:55:42 +02:00
James Rodewig
3f71a979c1
[DOCS] Fix impact sentences for removed system properties (#77601)
Several sentences in the 8.0 breaking changes reference setting
system properties in `elasticsearch.yml`, which is not supported. This corrects
those sentences.

It also fixes a sentence that references the `http.content_type.required`
setting as a system property.
2021-09-13 09:06:59 -04:00
Ryan Ernst
79d91ed9d3
Fail index creation using custom data path (#76792)
Custom per-index data paths were deprecated in 7.14. This commit blocks
creation of indices in 8.0 from configuring custom data paths.

relates #73168
2021-09-09 20:38:30 -07:00
Lee Hinman
35def9464c
Make the ILM freeze action a no-op (#77158)
* Make the ILM `freeze` action a no-op

This changes the ILM `freeze` action to not actually freeze the index, instead performing no
operation.

Relates to #70192

* zoop -> noop in documentation anchor

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2021-09-08 16:05:46 -04:00
Przemyslaw Gomulka
9d3b39ccb7
[doc] Remove external herokuapp website link (#77405)
The website is no longer live and is external to elastic domain. It was used as help for testing migration
2021-09-08 14:10:08 +02:00
Tim Brooks
673e8e17f4
Enable LZ4 transport compression by default (#76326)
This commit enables LZ4 transport compression by default at the
indexing_data level.

Relates to #73497.
2021-08-17 12:19:42 -06:00
Tim Vernum
01f20a3343
Default hasher to PBKDF2_STRETCH on FIPS mode (#76274)
When running in FIPS mode, (fips_mode.enabled: true), the default
password hasher is now "pbkdf2_stretch"

In non-FIPS mode the default is still "bcrypt"

In 7.x and earlier, the default hasher was always "bcrypt"
In 8.0-alpha1, the default hasher on FIPS was "pbkdf2"

Resolves: #66840
2021-08-13 12:18:44 +10:00
Tim Vernum
c5796645cf
Include removal of PKCS#11 in breaking changes doc (#75440)
Relates: #75404
2021-08-03 12:50:43 +10:00