Do not return metadata customs by default#30857
Do not return metadata customs by default#30857jasontedor wants to merge 6 commits intoelastic:masterfrom
Conversation
|
Pinging @elastic/es-distributed |
ywelsch
left a comment
There was a problem hiding this comment.
The same deserialization issue exists with cluster state customs (which are still enabled by default). I'm not sure that we need to add another request parameter here, but can just reuse the existing customs parameter, defaulting it to false and have it apply to metadata customs as well.
|
retest this please |
|
@ywelsch Are you okay with that being a follow-up? |
|
retest this please |
|
run gradle build tests |
4910577 to
f222cf1
Compare
Returning metadata customs by default is dangerous because they could be from a plugin that is not installed on a transport client. This commit modifies the cluster state action so that metadata customs are not returned instead of explicitly asked for. We make the same change on the REST layer, and we require that if metadata customs are requested, so is metadata.
6ce3d7a to
e34b58a
Compare
|
With the newly introduced flag, users with the default distribution now have to choose between upgrading to the x-pack client or not showing any custom metadata at all (not even OSS one). The PR is also a breaking change as we will stop showing OSS custom metadata by default (e.g. index graveyard, ingest pipelines, repositories). In more detail, with the current PR:
I'm doubtful about the use of the new flag and that it truly solves the problem, and my suggestion is therefore for the short term to go with the following approach instead:
|
I am not sure this is useful to anybody and I will push hard to remove this stuff form this API in 7.0 it's been a mistake to expose this to begin with.
+1 we should never return plugin metadata here at any time
this sounds good to me too |
|
Superseded by #31020 |
Returning metadata customs by default is dangerous because they could be from a plugin that is not installed on a transport client. This commit modifies the cluster state action so that metadata customs are not returned instead of explicitly asked for. We make the same change on the REST layer, and we require that if metadata customs are requested, so is metadata.
Relates #30731