Hello! I faced the problem the same as in this issue :
We would like to use newer ES client with old ES cluster( in order to gracefully migrate everything). But es client validates X-Elastic-Product in response header from elastic, which isn't present in old ES version.
Solution on stackoverflow recommends intercepting http request on client side and add X-Elastic-Product header to response.
We validated it and solution works good for us and we could use old ES cluster without any problems, but does this type of modification ( with providing header through http client) violates license restriction?
As far as i understand elastic license prohibits modification of license key, or modification of features protected by license. Does this header relate to that functionality and will result in license violation?
.addInterceptorLast( (HttpResponseInterceptor) (response, context) -> response.addHeader("X-Elastic-Product", "Elasticsearch"));