8000 Renaming tx.blocking_early to tx.early_blocking by dune73 · Pull Request #2414 · coreruleset/coreruleset · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Renaming tx.blocking_early to tx.early_blocking #2414

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

Merged
merged 2 commits into from
Mar 2, 2022

Conversation

dune73
Copy link
Member
@dune73 dune73 commented Mar 1, 2022

This var name is more in line with the documentation and the name of the feature "early blocking" that we use.

Copy link
Member
@fzipi fzipi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small thing, but in https://github.com/coreruleset/coreruleset/blob/v3.4/dev/CONTRIBUTING.md#general-formatting-guidelines-for-rules-contributions, we say that SecMarker should be quoted. Other than that, LGTM.

@dune73
Copy link
Member Author
dune73 commented Mar 1, 2022

Thank you. Fixed.

Copy link
Member
@fzipi fzipi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Probably not for this PR, but we should find a way for testing that this is working, right?

@dune73
Copy link
Member Author
dune73 commented Mar 1, 2022

Yes, we kind of need a way to test with changed config items. A docker container where every config item can be submitted as HTTP header?

@fzipi
Copy link
Member
fzipi commented Mar 1, 2022

No, we can't do that in the pipeline. But we can run specific tests with different configuration. I guess that approach is reasonable.

In the end if we only run go-ftw, we can switch from running 14 pipelines to 4 or 5 with different configurations. That would be way more useful, I think.

@dune73
Copy link
Member Author
dune73 commented Mar 2, 2022

Makes sense.

But I do not understand why we can't have a container that accepts config items as HTTP headers.

Thanks for approving. Need this for blog post.

@dune73 dune73 merged commit 8858c2d into coreruleset:v3.4/dev Mar 2, 2022
@fzipi
Copy link
Member
fzipi commented Mar 2, 2022

That sounds a lot like the sandbox. And the sandbox has a frontend that need additional code to decide on where to send you based on headers. We cannot reconfigure on the fly a container to behave differently based on inputs on a web service. 🤷 .

@dune73
Copy link
Member Author
dune73 commented Mar 2, 2022

But it's only a handful or rules you add during the setup of the container prior to the test. Thought that must be easy.

@fzipi
Copy link
Member
fzipi commented Mar 2, 2022

That is the easy part. But then you are in early blocking mode or you aren't. And you cannot select that based on headers, right?

@dune73
Copy link
Member Author
dune73 commented Mar 2, 2022
A3A2

Setting this via header is exactly the rule I would want to add to the testing container.

@dune73
Copy link
Member Author
dune73 commented Mar 2, 2022

Then you are either in default (-> off), or you set a header "X-early-blocking: 1".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0