feat: add f5__awaf — F5 Advanced WAF IP 管理与策略控制(iControl REST)#264
Open
qiqi-chen wants to merge 2 commits into
Open
feat: add f5__awaf — F5 Advanced WAF IP 管理与策略控制(iControl REST)#264qiqi-chen wants to merge 2 commits into
qiqi-chen wants to merge 2 commits into
Conversation
…olicies
Add three new capabilities on top of the existing Login/BlockIP/UnblockIP/Logout:
- AllowIP: whitelist IPs with blockRequests=never (mirrors BlockIP logic)
- SetEnforcementMode: toggle ASM policy between blocking and transparent via
PATCH /mgmt/tm/asm/policies/{id}, triggers apply-policy afterwards
- ListPolicies: enumerate all ASM policies with enforcement mode and active
status via GET /mgmt/tm/asm/policies?$select=id,name,enforcementMode,active
Update proto (7 RPCs + new message types), service.json (3 new CLI commands),
README (new RPC docs + expanded capset table), mock_upstream (PATCH policy
endpoint + enforcementMode field in state), and tests (8 new cases, 39 total).
Refs: chaitin#34
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
New OctoBus service package for F5 Advanced WAF (AWAF) — exposes 7 RPCs via the iControl REST API.
Closes / references #34.
RPCs
LoginBlockIPblockRequests=always)UnblockIPAllowIPblockRequests=never)SetEnforcementModeblocking/transparentListPoliciesLogoutAuth Pattern
Session-based (Option A from the submission spec): explicit
Login→ token passed as field in every subsequent RPC →Logout.Implementation Notes
verify_ssldefaults tofalse(F5 uses self-signed certs); settruein production with a trusted CAPOST /mgmt/tm/asm/tasks/apply-policy(best-effort, non-fatal)Files
Test Plan
node --test test/*.test.js→ 39 passed, 0 failed (no real F5 device required)globalThis.fetchper suite, validate error mapping and request shapemock_upstream.js, covers full Login→BlockIP→Logout flow