-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate /_xpack/security/* in favor of /_security/* #36293
Conversation
…e use of _xpack in the REST APIs. - REST api docs - HLRC docs and doc tests - Handle REST actions with deprecation warnings - Changed endpoints in rest-api-spec and relevant file names Relates elastic#35958
Pinging @elastic/es-core-infra |
@@ -1,10 +1,12 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've seen the rest of the PRs are not touching the file names for these, but it made sense to me. No problem to revert if there are objections though.
giving it another go: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM assuming that CI goes green.
Adds a number of api calls that use the deprecated endpoints so that these can be used in the `old_cluster` tests
@jasontedor pinging to see if you want to take a look at a509387 which adds back a number of api definitions in the deprecated format in order to use these against the old cluster in rolling upgrade tests. I couldn't think of a more elegant way to do this |
@jkakavas I have a different idea, let's backport the new endpoints to 6.x (without all the other changes to the docs, specification, etc.). What do you think of this approach? |
The idea of backporting the new endpoints to 6.x would be consistent with what watcher is doing in #36269 (although in that case it already did support the new endpoints albeit deprecated!) and what ML is doing in #36373. I think backporting the new endpoints is also nice because it means customers have the option to avoid deprecation warnings in the mixed version cluster during a rolling upgrade from 6.last to 7.x by switching clients to the new endpoints before starting the rolling upgrade. |
Thanks folk, that definitely makes sense. I'll backport the endpoints and then revert the changes here to ensure a green CI |
Thanks @jkakavas. |
This reverts commit a509387. New endpoints can be used for tests and mixed clusters since elastic#36379
This reverts commit ff242e8.
This reverts commit 8d1496b.
#36293 deprecates the /_xpack/security/* endpoints in favor of the /_security/* ones. This commit adds support for the new endpoints in 6.x to facilitate tests and normal operations in a mixed 6.x/7.x cluster
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@jasontedor any objections to me re-introducing ff242e8 so that we don't backport |
Yeah, for full cluster restart that is fine because we test against very old clusters where we can't backport anything so that we have to take the if/else route. |
@elasticmachine test this please |
@elasticmachine test this please |
@elasticmachine run gradle build tests 1 and run gradle build tests 2 |
This commit is part of our plan to deprecate and ultimately
remove the use of _xpack in the REST APIs. It includes:
Relates #35958