Update appsec rules from Remote Config#2654
Merged
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2654 +/- ##
==========================================
- Coverage 87.35% 87.19% -0.16%
==========================================
Files 319 317 -2
Lines 11534 11512 -22
Branches 33 33
==========================================
- Hits 10075 10038 -37
- Misses 1459 1474 +15
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
uurien
force-pushed
the
ugaitz/asm_dd-rules-update
branch
from
January 4, 2023 16:05
e488c36 to
57c1e98
Compare
BenchmarksComparing candidate commit cb0d967 in PR branch Found 2 performance improvements and 2 performance regressions! Performance is the same for 662 metrics, 42 unstable metrics. scenario:appsec-appsec-enabled-with-attacks-14
scenario:appsec-appsec-enabled-with-attacks-16
|
uurien
force-pushed
the
ugaitz/asm_dd-rules-update
branch
2 times, most recently
from
January 4, 2023 17:04
15cca4c to
139d70a
Compare
uurien
force-pushed
the
ugaitz/asm_dd-rules-update
branch
from
January 9, 2023 12:00
139d70a to
4219955
Compare
uurien
marked this pull request as ready for review
January 9, 2023 12:00
Qard
previously approved these changes
Jan 9, 2023
uurien
force-pushed
the
ugaitz/asm_dd-rules-update
branch
from
January 10, 2023 15:02
4219955 to
b3b450c
Compare
Qard
previously approved these changes
Jan 11, 2023
simon-id
suggested changes
Jan 19, 2023
Contributor
Overall package sizeSelf size: 3.98 MB Dependency sizes
🤖 This report was automatically generated by heaviest-objects-in-the-universe |
Qard
previously approved these changes
Jan 19, 2023
simon-id
reviewed
Jan 20, 2023
Qard
previously approved these changes
Jan 20, 2023
simon-id
reviewed
Jan 22, 2023
simon-id
reviewed
Jan 23, 2023
simon-id
reviewed
Jan 23, 2023
simon-id
reviewed
Jan 23, 2023
uurien
force-pushed
the
ugaitz/asm_dd-rules-update
branch
from
January 24, 2023 09:04
7425c3c to
585fe54
Compare
simon-id
marked this pull request as ready for review
April 25, 2023 15:40
hoolioh
self-requested a review
April 25, 2023 15:45
hoolioh
previously approved these changes
Apr 26, 2023
simon-id
approved these changes
Apr 26, 2023
hoolioh
self-requested a review
April 26, 2023 13:50
hoolioh
approved these changes
Apr 26, 2023
CarlesDD
pushed a commit
that referenced
this pull request
Apr 28, 2023
* Add rules update and refactor whole waf * move appsec channels file * Add changes to work with libddwaf update method and support more RC properties * update waf bindings to 3.1.0 * simplify reporter * remove unnecesary virtual addresses * cleanup outdated comment * simplify incomingHttpStartHandler * simplify waf_manager.js * add pre update hook to RC manager * update rc manager * batch all waf update RC subscriptions * put apply_states codes in a constant file * inline function * add update to waf manager * completely rework RC waf updates * renamed a few things in tests * fix dc path * fix webpack not parsing class fields * lazy load everything * fix unapply configs not being emitted --------- Co-authored-by: simon-id <[email protected]> Co-authored-by: Julio Gonzalez <[email protected]>
CarlesDD
pushed a commit
that referenced
this pull request
Apr 28, 2023
* Add rules update and refactor whole waf * move appsec channels file * Add changes to work with libddwaf update method and support more RC properties * update waf bindings to 3.1.0 * simplify reporter * remove unnecesary virtual addresses * cleanup outdated comment * simplify incomingHttpStartHandler * simplify waf_manager.js * add pre update hook to RC manager * update rc manager * batch all waf update RC subscriptions * put apply_states codes in a constant file * inline function * add update to waf manager * completely rework RC waf updates * renamed a few things in tests * fix dc path * fix webpack not parsing class fields * lazy load everything * fix unapply configs not being emitted --------- Co-authored-by: simon-id <[email protected]> Co-authored-by: Julio Gonzalez <[email protected]>
CarlesDD
pushed a commit
that referenced
this pull request
Apr 28, 2023
* Add rules update and refactor whole waf * move appsec channels file * Add changes to work with libddwaf update method and support more RC properties * update waf bindings to 3.1.0 * simplify reporter * remove unnecesary virtual addresses * cleanup outdated comment * simplify incomingHttpStartHandler * simplify waf_manager.js * add pre update hook to RC manager * update rc manager * batch all waf update RC subscriptions * put apply_states codes in a constant file * inline function * add update to waf manager * completely rework RC waf updates * renamed a few things in tests * fix dc path * fix webpack not parsing class fields * lazy load everything * fix unapply configs not being emitted --------- Co-authored-by: simon-id <[email protected]> Co-authored-by: Julio Gonzalez <[email protected]>
CarlesDD
pushed a commit
that referenced
this pull request
Apr 28, 2023
* Add rules update and refactor whole waf * move appsec channels file * Add changes to work with libddwaf update method and support more RC properties * update waf bindings to 3.1.0 * simplify reporter * remove unnecesary virtual addresses * cleanup outdated comment * simplify incomingHttpStartHandler * simplify waf_manager.js * add pre update hook to RC manager * update rc manager * batch all waf update RC subscriptions * put apply_states codes in a constant file * inline function * add update to waf manager * completely rework RC waf updates * renamed a few things in tests * fix dc path * fix webpack not parsing class fields * lazy load everything * fix unapply configs not being emitted --------- Co-authored-by: simon-id <[email protected]> Co-authored-by: Julio Gonzalez <[email protected]>
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 adds the availability to update more waf configurations from Remote Configuration. It can update the rules based on new rules file coming in new RC
ASMevent or it can override previously configured rules or add exclusion with data received inASM_DDRC event.As we had a bit overengineered waf gateway code, this PR adds a new and simpler approach to do the same stuff.
TODO: