Add WD K01 V9.0.2 query and threat-intel service#141
Draft
cc06 wants to merge 1 commit into
Draft
Conversation
New service package wd__k01_v9-0-2 covering the WD K01 V9.0.2 RESTful API (V9 interfaces): QueryAttackLog, QueryIPList, QueryThreatIntel, AddThreatIntel, DeleteThreatIntel. Reuses the K01 login/Bearer/logout session flow and complements the existing wd__k01 BlockIP/UnblockIP package with read and private threat-intel management. Wire it into the root dispatcher, bin wrapper, and package manifest.
Member
|
Review 阻塞:这个 service package PR 有测试文件,但我没有在 PR 描述、评论或改动文件中找到真实的测试截图证据(图片链接或提交的图片文件)。请补充能证明该 service package 跑通的截图,例如 |
Member
|
Reviewer note: this PR currently has merge conflicts with the target branch, so it cannot be merged or reviewed safely in its current state. Please rebase or merge the latest base branch, resolve the conflicts, and make sure GitHub Actions pass again. I am marking/keeping this PR as draft until the conflicts are resolved. |
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.
接入设备
网盾 K01 威胁情报联防阻断系统(北京中盾网空防务技术有限公司)
设备版本
V9.0.2(文档标注「V9 新增接口」)
认证方式
POST /api/cms/user/login 取 token.access_token → 业务请求 Authorization: Bearer → POST /api/cms/user/logout。每次方法一段无状态会话,沿用既有 wd__k01 的认证方式。
实现方法
与已有 wd__k01(BlockIP/UnblockIP,基于 iplist/save)互补,聚焦只读查询与私有情报管理。
测试命令
本地结果:validate 通过;31 用例全过,实现文件行 99.6% / 分支 93% / 函数 95.45%;pack:check 通过。
设备验证截图
已知限制