Auth: Add missing request headers to SigV4 middleware allowlist (#30115)

* Auth: Add Content-Type to SigV4 header allowlist

* add MT headers to permitted headers

* add Kibana API header to allowlist

* add Content-Length header to allow list
This commit is contained in:
Will Browne 2021-01-14 09:06:09 +01:00 committed by GitHub
parent b48ac0dc53
commit a0a1422b2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,6 +33,11 @@ var permittedHeaders = map[string]struct{}{
"User-Agent": {},
"Accept": {},
"Accept-Encoding": {},
"Content-Type": {},
"Content-Length": {},
"securitytenant": {},
"sgtenant": {},
"kbn-xsrf": {},
}
type SigV4Middleware struct {