test: add inverted-paranoia WAF enforcement e2e#272
Merged
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
Add a gated e2e case on the downstream WAF data plane exercising a valid Enforce TrafficProtectionPolicy end to end: a benign GET returns 200 with the backend body intact, and a CRS-tripping attack payload returns 403 with no backend leakage. Assertions check body integrity, not status alone, per datum-cloud/infra#3321. Neutralization of already-persisted inverted policies is tracked separately as follow-up to #252, where the controller-side fix and its test belong.
28a775e to
c2fed66
Compare
This was referenced Jul 13, 2026
scotwells
approved these changes
Jul 13, 2026
Comment on lines
+141
to
+151
| - script: | ||
| timeout: 60s | ||
| content: | | ||
| set -x | ||
| kubectl get gateway -A -o yaml | ||
| kubectl describe gateway -A | ||
| kubectl get gatewayclass datum-downstream-gateway -o yaml | ||
| kubectl -n datum-downstream-gateway get pods -o wide | ||
| kubectl -n datum-downstream-gateway describe pods | ||
| kubectl -n datum-downstream-gateway logs deploy/envoy-gateway --tail=-1 | ||
| kubectl -n datum-downstream-gateway logs -l gateway.envoyproxy.io/owning-gateway-namespace --all-containers --tail=200 || true |
Contributor
There was a problem hiding this comment.
Is this just for debugging?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Adds a gated e2e case on the downstream WAF data plane exercising a valid Enforce
TrafficProtectionPolicyend to end:GET /→ 200 with the backend body intact,?file=../../../../etc/passwd) → 403 with no backend leakage.Assertions check body integrity, not status alone (per datum-cloud/infra#3321). Built on the WAF e2e env from #268 (
config/e2e-downstream/).Refs #242, #251, datum-cloud/infra#3408.