OpenSearch/qa/smoke-test-http/src/test/java/org/elasticsearch/http
Gordon Brown 5c8b0662df
Deprecate REST access to System Indices (#63274) (Original #60945)
This PR adds deprecation warnings when accessing System Indices via the REST layer. At this time, these warnings are only enabled for Snapshot builds by default, to allow projects external to Elasticsearch additional time to adjust their access patterns.

Deprecation warnings will be triggered by all REST requests which access registered System Indices, except for purpose-specific APIs which access System Indices as an implementation detail a few specific APIs which will continue to allow access to system indices by default:

- `GET _cluster/health`
- `GET {index}/_recovery`
- `GET _cluster/allocation/explain`
- `GET _cluster/state`
- `POST _cluster/reroute`
- `GET {index}/_stats`
- `GET {index}/_segments`
- `GET {index}/_shard_stores`
- `GET _cat/[indices,aliases,health,recovery,shards,segments]`

Deprecation warnings for accessing system indices take the form:
```
this request accesses system indices: [.some_system_index], but in a future major version, direct access to system indices will be prevented by default
```
2020-10-06 13:41:40 -06:00
..
ContextAndHeaderTransportIT.java Add RepositoriesService to createComponents() args (#54814) 2020-04-16 16:27:36 +01:00
CorsNotSetIT.java HLRest: Allow caller to set per request options (#30490) 2018-05-31 13:59:52 -04:00
CorsRegexIT.java HLRest: Allow caller to set per request options (#30490) 2018-05-31 13:59:52 -04:00
DanglingIndicesRestIT.java Implement dangling indices API (#58176) 2020-06-16 21:50:38 +01:00
DetailedErrorsDisabledIT.java Docs: Fixed a grammatical mistake: 'a HTTP ...' -> 'an HTTP ...' (#33744) 2018-09-17 15:35:54 -04:00
DetailedErrorsEnabledIT.java Switch many QA projects to use new style requests (#30574) 2018-05-15 17:48:47 -04:00
HttpCompressionIT.java Enable decompression of response within LowLevelRestClient (#55413) (#56820) 2020-05-15 16:50:45 +01:00
HttpSmokeTestCase.java Remove `MockTcpTransport` for ESIntegTestCase (#36089) 2018-11-30 09:04:51 -07:00
IndexingPressureRestIT.java Implement human readable indexing pressure stats (#60058) 2020-07-22 12:07:59 -06:00
NoHandlerIT.java HLRest: Allow caller to set per request options (#30490) 2018-05-31 13:59:52 -04:00
ResponseHeaderPluginIT.java HLRest: Allow caller to set per request options (#30490) 2018-05-31 13:59:52 -04:00
RestHttpResponseHeadersIT.java Switch many QA projects to use new style requests (#30574) 2018-05-15 17:48:47 -04:00
SearchRestCancellationIT.java Cancel multisearch when http connection closed (#61399) 2020-08-24 15:12:54 -04:00
SystemIndexRestIT.java Deprecate REST access to System Indices (#63274) (Original #60945) 2020-10-06 13:41:40 -06:00
TestResponseHeaderPlugin.java RestHandlers declare handled routes (#52123) 2020-02-09 22:48:32 -07:00
TestResponseHeaderRestAction.java RestHandlers declare handled routes (#52123) 2020-02-09 22:48:32 -07:00