contrib/envoyproxy: add JSON Encoder#3550
Merged
Merged
Conversation
e-n-0
force-pushed
the
flavien/json-encoder
branch
from
May 27, 2025 10:34
8e2f867 to
4d87252
Compare
e-n-0
force-pushed
the
flavien/json-encoder
branch
2 times, most recently
from
June 11, 2025 12:42
b410454 to
af61f23
Compare
eliottness
added a commit
to DataDog/go-libddwaf
that referenced
this pull request
Jun 11, 2025
7 tasks
eliottness
approved these changes
Jun 13, 2025
eliottness
enabled auto-merge (squash)
June 13, 2025 14:54
# Conflicts: # go.work.sum
Signed-off-by: Eliott Bouhana <[email protected]>
e-n-0
force-pushed
the
flavien/json-encoder
branch
2 times, most recently
from
June 13, 2025 16:23
1a68ff2 to
891fa78
Compare
e-n-0
force-pushed
the
flavien/json-encoder
branch
from
June 13, 2025 16:29
891fa78 to
39fec29
Compare
mtoffl01
pushed a commit
that referenced
this pull request
Jun 23, 2025
Signed-off-by: Eliott Bouhana <[email protected]>
7 tasks
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 does this PR do?
This PR implement a JSON to WAF Objects encoder following this RFC. This encoder will be used as part of another PR to parse the requests and responses bodies.
This PR uses the jsoniter go library to implement a custom JSON parser (iterating through the JSON and encode directly the values into WAF Objects).
Motivation
Add security coverage to envoy proxy/GCP SE to requests/responses JSON bodies.
Reviewer's Checklist
golangci-lint runlocally.Unsure? Have a question? Request a review!