Add runtime regex checks#8
Open
kanjk0olb0y-a11y wants to merge 1 commit into
Open
Conversation
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.
Summary
/claim #2
Adds runtime-configurable regex checks via
--checks <file>so users can alert on DNS/HTTP result fields without changing the JSON output format.The checks file supports either a JSON array or an object with a
checksarray. Each check includes:fieldregexalertignore_caseSupported fields include domain/DNS/HTTP metadata (
domain,type,info,ttl,content_length,http_code,code_string) plus HTTP page content aliases (response_body,body,page_content,content). Page content is capped at 64 KiB for matching and is not written to the JSON output.Why this shape
This keeps the feature narrow and avoids persisting full response bodies in output files while still supporting checks such as outdated copyright banners or domain names containing environment markers.
Verification
git diff --checkI could not run a full local C++ build in this Windows environment because CMake/a C++ compiler toolchain are not installed here.
Payment details can be provided privately if this is accepted for the bounty.