Backport of [NET-1151 NET-11228] security: Add request normalization and header match options to prevent L7 intentions bypass into release/1.20.x #21839
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport
This PR is auto-generated from #21816 to be assessed for backporting due to the inclusion of the label backport/1.20.
The below text is copied from the body of the original PR.
Description
This PR brings in all previously reviewed changes from the
zalimeni/feature/net-1151-l7-intentions-security-fixes
feature branch intomain
and release branches. All changes were previously approved as part of Enterprise reviews except for the changelog added in this PR.Changes include:
I'll squash and rebase these commits prior to merge to make backports more manageable.
Once this PR is merged, I'll cut
api
across active release branches, which will allow for hashicorp/consul-k8s#4385 to be updated and merged as well, completing the cross-repo changeset.Testing & Reproduction steps
See previous PRs for testing details. All unit and integration tests are expected to pass.
PR Checklist
Overview of commits