feat(web-security): self-contained Flareprox IP rotation tool and skill#48
Open
GangGreenTemperTatum wants to merge 1 commit into
Open
Conversation
… skill - Add flareprox.py toolset: deploys Cloudflare Worker proxies via REST API, routes requests through them, and cleans up workers when done. No external flareprox binary or repo required. - Add ip-rotation skill with activation gate (IPROTATE_ENABLED), usage guidance, and lifecycle examples. - Update agent prompt to mention flareprox_* tools. - Update capability.yaml description/version/keywords. - Add tests with mocked Cloudflare API. - Extend conftest stub Toolset to support pydantic-like kwargs and model_post_init so field-bearing Toolset subclasses can be tested.
2580603 to
77fd71d
Compare
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
Adds a KISS, self-contained Flareprox integration to the web-security capability. No external
flareproxrepo/binary is required — the tool deploys Cloudflare Workers directly via the Cloudflare REST API.Pending MrTurvey/flareprox#9 prior to merging (so can carry auth)
What's included
capabilities/web-security/tools/flareprox.py— newFlareproxToolset with:flareprox_status— verifyCF_API_TOKEN/CF_ACCOUNT_IDand count active workersflareprox_create— deploy N Cloudflare Worker proxiesflareprox_list— list tracked workersflareprox_proxy_url— round-robin worker URL for manual useflareprox_request— send an HTTP request through a workerflareprox_cleanup— delete all deployed workerscapabilities/web-security/skills/ip-rotation/SKILL.md— agent skill with:IPROTATE_ENABLEDcapabilities/web-security/agents/web-security.md— mentionflareprox_*tools in the built-in tools list.capabilities/web-security/capability.yaml— bump version to1.1.3, update description, add keywords.capabilities/web-security/tests/test_flareprox.py— mocked Cloudflare API tests.capabilities/web-security/tests/conftest.py— extend theToolsettest stub to support pydantic-like**kwargsconstruction andmodel_post_init, so field-bearing Toolset subclasses can be unit-tested.Design notes
project-obsidian-md); no code or external dependency on~/git/flareprox.~/.flareprox/workers.json.Testing
All 13 tests pass. The full web-security test suite (excluding
test_bbscope.pywhich requires an optionalbbscopemodule) also passes.Deployment assumptions
CF_API_TOKENwith Workers Scripts edit permission.CF_ACCOUNT_IDset.