Add explicit header mutation validation ext_authz (#33244)
* Validate headers & percent-encode query parameters in ext_authz Signed-off-by: Antonio Leonti <leonti@google.com> * move-- not copy-- header mutations in grpc client Signed-off-by: antoniovleonti <leonti@google.com> * move validation to clients Signed-off-by: antoniovleonti <leonti@google.com> * clean up diff Signed-off-by: antoniovleonti <leonti@google.com> * oops, add query param percent encoding to grpc client Signed-off-by: antoniovleonti <leonti@google.com> * clean up unnecessary diff and remove unused function declaration Signed-off-by: antoniovleonti <leonti@google.com> * remove unnecessary diff from ext_authz_test Signed-off-by: antoniovleonti <leonti@google.com> * final clean up Signed-off-by: antoniovleonti <leonti@google.com> * split ext_authz_test change into own PR (#33709) Signed-off-by: antoniovleonti <leonti@google.com> * fix asan error Signed-off-by: antoniovleonti <leonti@google.com> * add note in changelog Signed-off-by: antoniovleonti <leonti@google.com> * move http validation to own PR Signed-off-by: antoniovleonti <leonti@google.com> * Drop client request on invalid mutations Signed-off-by: antoniovleonti <leonti@google.com> * formatting & changelog Signed-off-by: antoniovleonti <leonti@google.com> * remove debug logs Signed-off-by: antoniovleonti <leonti@google.com> * remove done todo Signed-off-by: antoniovleonti <leonti@google.com> * remove comment about precent encoding query params Signed-off-by: antoniovleonti <leonti@google.com> * add Rejected to exhaustive status switch statement Signed-off-by: antoniovleonti <leonti@google.com> * handle rejected case in the network ext_authz filter Signed-off-by: antoniovleonti <leonti@google.com> * move validation to http filter Signed-off-by: antoniovleonti <leonti@google.com> * fix incorrectly numbered proto field Signed-off-by: antoniovleonti <leonti@google.com> * remove unused runtime feature flag Signed-off-by: antoniovleonti <leonti@google.com> * remove unnecessary comma Signed-off-by: antoniovleonti <leonti@google.com> * fix inconsistent HeaderVector constructor call fmt Signed-off-by: antoniovleonti <leonti@google.com> * remove unnecessary diff Signed-off-by: antoniovleonti <leonti@google.com> * remove unnecessary dependency Signed-off-by: antoniovleonti <leonti@google.com> * remove unnecessary diff Signed-off-by: antoniovleonti <leonti@google.com> * fix spelling Signed-off-by: antoniovleonti <leonti@google.com> * Update api/envoy/extensions/filters/http/ext_authz/v3/ext_authz.proto Co-authored-by: Greg Greenway <ggreenway@apple.com> Signed-off-by: Antonio V. Leonti <53806445+antoniovleonti@users.noreply.github.com> * Update api/envoy/extensions/filters/http/ext_authz/v3/ext_authz.proto Co-authored-by: Greg Greenway <ggreenway@apple.com> Signed-off-by: Antonio V. Leonti <53806445+antoniovleonti@users.noreply.github.com> * config guard remove-header change & make fmting consistent Signed-off-by: antoniovleonti <leonti@google.com> * remove using decls from ext_authz_test Signed-off-by: antoniovleonti <leonti@google.com> * remove unnecessary diff Signed-off-by: antoniovleonti <leonti@google.com> * add stat check to integration test Signed-off-by: antoniovleonti <leonti@google.com> * remove using decl from grpc_impl_test Signed-off-by: antoniovleonti <leonti@google.com> * formatting changes Signed-off-by: antoniovleonti <leonti@google.com> * replace unused using decl with a needed one Signed-off-by: antoniovleonti <leonti@google.com> * remove unused counter Signed-off-by: antoniovleonti <leonti@google.com> --------- Signed-off-by: Antonio Leonti <leonti@google.com> Signed-off-by: antoniovleonti <leonti@google.com> Signed-off-by: Antonio V. Leonti <53806445+antoniovleonti@users.noreply.github.com> Co-authored-by: Greg Greenway <ggreenway@apple.com> Mirrored from https://github.com/envoyproxy/envoy @ 1c6eba59dbcced94c9974dc69d1bfcfa9ee3107dmain
parent
4a688d5f52
commit
449c956946
1 changed files with 16 additions and 1 deletions
Loading…
Reference in new issue