Skip to content

Add runtime regex checks#8

Open
kanjk0olb0y-a11y wants to merge 1 commit into
codingo:mainfrom
kanjk0olb0y-a11y:codex/regex-checks-config
Open

Add runtime regex checks#8
kanjk0olb0y-a11y wants to merge 1 commit into
codingo:mainfrom
kanjk0olb0y-a11y:codex/regex-checks-config

Conversation

@kanjk0olb0y-a11y
Copy link
Copy Markdown

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 checks array. Each check includes:

  • field
  • regex
  • alert
  • optional ignore_case

Supported 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 --check

I 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.

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.

1 participant