-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Security/SecuritySecurity issues without another labelSecurity issues without another label>bugTeam:SecurityMeta label for security teamMeta label for security teamv8.0.0-alpha2
Description
Whenever a request fails, the previously emitted response header warnings are removed from a response.
This was intentionally done so that when authentication fails, there would be no warnings presented to a user.
However when a failure is not related to authentication, headers are removed as well.
I suspect this behaviour fails only when security is enabled
introduced by #64948
reproduction steps:
- create an index
- send a request that emits a warning and also fails. For instance a rest api compatible
typedsearch endpoint - emits deprecation warning- and typed query - fails parsing. -
--url http://localhost:9200/test1/sometype/_search
--header ‘Accept: application/vnd.elasticsearch+json;compatible-with=7’
--header ‘Authorization: Basic ZWxhc3RpYzpwYXNzd29yZA==’
--header ‘Content-Type: application/vnd.elasticsearch+json;compatible-with=7’
--header ‘X-Opaque-ID: he’
--data ‘{
“query”: {
“type”:{
“value”: “_doc”
}
}
}’
`Warning` headers are missing
Metadata
Metadata
Assignees
Labels
:Security/SecuritySecurity issues without another labelSecurity issues without another label>bugTeam:SecurityMeta label for security teamMeta label for security teamv8.0.0-alpha2