appsec: rework actions system#2044
Merged
Merged
Conversation
Hellzy
force-pushed
the
francois.mazeau/appsec-refactor
branch
from
June 15, 2023 08:22
87f0054 to
df1db14
Compare
BenchmarksBenchmark execution time: 2023-07-06 08:39:29 Comparing candidate commit 267b872 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 27 metrics, 0 unstable metrics. |
Hellzy
force-pushed
the
francois.mazeau/appsec-refactor
branch
from
June 15, 2023 08:49
df1db14 to
f44f50f
Compare
Hellzy
force-pushed
the
francois.mazeau/appsec-refactor
branch
from
June 15, 2023 09:01
f44f50f to
2be9cb8
Compare
Hellzy
force-pushed
the
francois.mazeau/appsec-refactor
branch
from
June 19, 2023 09:39
1d9bf75 to
338b5b5
Compare
Hellzy
marked this pull request as ready for review
June 19, 2023 11:14
Hellzy
force-pushed
the
francois.mazeau/appsec-refactor
branch
from
June 22, 2023 07:58
921e82c to
5eff9d2
Compare
Hellzy
force-pushed
the
francois.mazeau/appsec-refactor
branch
from
June 22, 2023 08:31
5eff9d2 to
8c5b7e5
Compare
Hellzy
force-pushed
the
francois.mazeau/appsec-refactor
branch
from
June 29, 2023 15:42
085accc to
f4efdcb
Compare
Hellzy
force-pushed
the
francois.mazeau/appsec-refactor
branch
from
July 4, 2023 12:15
8bfcda9 to
5bbe6af
Compare
Julio-Guerra
reviewed
Jul 5, 2023
Julio-Guerra
reviewed
Jul 5, 2023
Julio-Guerra
approved these changes
Jul 6, 2023
Julio-Guerra
approved these changes
Jul 6, 2023
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?
The goal is to centralize the action system and get rid of duplication in httpsec/grpcesec, especially when it comes
to the action handler (which is not a thing anymore with this change).
This change introduces 2 new methods to the operation interface:
The main use case of this API is to pass actions around between the WAF and our instrumentation points.
Another use case is to emit errors, which is especially usefull for our SDK instrumentations (userID, http parsed body)
which usually get called while in the request handler and are hence error based.
Motivation
This is a step in our effort to cleanup the code base and make it less intricate. While this adds more code that it deletes,
it gets rid of annoying side effects and weird mechanisms that were introduced in operations in order to transport actions
and errors.
The action system still remains quite complex due to the SDK instrumentation points that remain, as well as the
duality between grpc/http, and other intricacies due to other frameworks (such as echo).
Describe how to test/QA your changes
Reviewer's Checklist