-
Notifications
You must be signed in to change notification settings - Fork 13
Change request blocking scenario for ATO #4308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change request blocking scenario for ATO #4308
Conversation
ed0a332
to
1d0615e
Compare
are we sure this scenario will run in the libraries CI ? I don't want to accidently reduce our coverage. Otherwise LGTM |
No, it is not, because it is not part of scenario group that is enabled in node.js tracer, dd-trace-js is only running these three scenarios: |
@@ -249,6 +249,19 @@ class _Scenarios: | |||
scenario_groups=[ScenarioGroup.APPSEC], | |||
) | |||
|
|||
appsec_auto_events_blocking = EndToEndScenario( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why using a new scenario? this one seems exactly the same as appsec_runtime_activation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
edit: I'm reading more carefully the PR description, to see if it answer my question
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
appsec activation has appsec disabled at the start to be able to activate it at runtime. For this test we need a scenario that has RC but appsec already activated. Maybe there is already one that fits and we don't need to add a new one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we want - I can rename the scenario to be explicit and not tied to any feature. For some reason APPSEC_REQUEST_BLOCKING
didn't work for all languages (maybe something with its setup)
I'm open to any name here
why not put this scenario in the essentials then ? |
Scenario are not coupled with feature, it's just execution context where we can run test on any feature we can. The fact that their names often contains features reference is legacy and misleading. We can - and actually should, for several reasons - use a scenario for totally different features.
The call to |
@cbeauchesne you're misunderstanding his words. He means that this ATO test is currently also indirectly testing for ASM activation, and it should not. He is thus changing it in this PR, because the two features are unrelated, and also because ruby doesn't support it so it cannot enable that ATO tests. |
Ok, thanks for the explanation !
You can try |
Thanks everyone for the review. Few points:
Maybe I'm missing something. Huge thanks to @simon-id 🤗 |
@uurien I can adjust it, only if I understand what should be done? |
Ok, let's move forward with the new scenario. It'll be a entire project to merge scenarios that can be merged, but I don't won't to bother you with that now. |
Let's keep that for a dedicated project
1d0615e
to
c602526
Compare
Motivation
In the current setup in the request blocking for automated user events we use runtime activation scenario which requires 1-click activation. First of all, it's a mix of two tests - 1-click activation and request blocking. Second - in Ruby we don't support yet 1-click activation.
Changes
Change runtime activation scenario to request blocking
Reviewer checklist
[<language>]
, double-check that only<language>
is impacted by the changebuild-XXX-image
label is present