Add geyecloud-ATD service adapter#471
Open
shiyueyi-1111 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.
Refs #468
This PR adds a read-only OctoBus Service Adapter for geyecloud-ATD 2.3.6.
The service package has been locally tested, imported into OctoBus runtime, and validated against a real geyecloud-ATD environment. Detailed validation evidence, commands, and screenshots are included below.
Add geyecloud-ATD OctoBus Service Adapter
Add geyecloud-ATD OctoBus Service Adapter
1. Summary
本次新增 geyecloud-ATD / 高级威胁检测系统 的 OctoBus Service 适配器,用于将 geyecloud-ATD 的常用只读查询能力接入 OctoBus。
基础信息:
5. Auth Pattern
该服务包使用 geyecloud-ATD API key 作为 OctoBus instance secret。
Secret 示例:
运行时请求会携带以下认证相关 Header:
说明:
secret.apiKey即可调用。6. Config / Secret
Config 示例:
Secret 示例:
补充说明:
baseUrl可以填写 geyecloud-ATD UI 地址。/#/workBench这类前端 hash route,适配器会自动归一化为 API origin。/workbenchApi/furious/...。7. Implementation Notes
实现要点:
@chaitin-ai/octobus-sdk。long-running。snake_case和lowerCamelCase请求字段,便于 Connect JSON 调用。{code,msg,data}{total,size,current,page,records}severity高危、中危通过severity_text输出uuiduiddetail_id/detailId转换为 geyecloud-ATD 实际接受的 upstreamuuid8. Local Package Validation
Terminal 执行命令:
预期结果:
Evidence screenshots:
9. Real Device Validation
已使用提供的 geyecloud-ATD demo 环境完成过实机 API 验证。以下证据已脱敏,不包含 API key、账号密码、验证码、session 或 cookie;demo 环境地址按内部验证需要保留。
Terminal 执行命令:
预期脱敏结果:
验证链路:
ListNetworkLogs -> GetNetworkLogDetailListFileDetectionLogs -> GetFileDetectionLogDetailSearchThreatEvents -> GetThreatEventDetailListSceneMonitors -> SearchSceneMonitorEventsEvidence screenshot:

10. OctoBus Runtime Validation
本节保留 OctoBus runtime 必要证据,包括 service import、instance create/update-secret 和最终 RPC 调用。
runtime check、capset catalog、产品 UI 和 agent task 截图不是本次提交的必要材料,可按需补充。10.1 Service Import
Terminal 执行命令:
Evidence screenshots:
10.2 Instance Config / Secret
注意:截图前请确认 Terminal 画面里没有明文真实 API key。
Config 文件示例:
Secret 文件示例:
创建实例:
如实例已存在,可更新 secret:
查看实例:
Evidence screenshots:
10.3 Direct RPC Call Through OctoBus
当前 OctoBus CLI 版本未提供
octobus call子命令,因此本次使用 capset 暴露的 Connect RPC endpoint 完成直接调用验证。查看实例状态:
查看 capset 暴露的方法:
通过 Connect RPC 直接调用
AggregateThreatEvents:10.4 OctoBus Trigger and Product UI Correlation
本节用于补充端到端 UI 对照证据:Terminal 侧通过 OctoBus Connect RPC 触发一次只读查询,产品 UI 侧展示同一类威胁事件/风险等级统计数据。
该证据不是本次提交的必需项,但可作为“OctoBus 已实际触发业务查询,且 geyecloud-ATD 产品侧存在对应数据”的补充说明。
Terminal 执行命令:
证据对应关系:
Terminal 通过 OctoBus Connect RPC 调用
AggregateThreatEvents并返回success;产品 UI 同步展示威胁事件/风险等级统计数据。两张截图组合证明 OctoBus Service 调用链路和 geyecloud-ATD 数据读取链路可用。Terminal evidence screenshot:
Product UI evidence screenshot:
11. Integration Evidence
实机验证过程中发现并已修复/兼容的文档与真实接口差异:
{code,msg,data}包裹结构。{total,size,current,page,records}裸分页结构。uuid,而网络日志详情接口实际接受 upstreamuuid,不是文档/同类接口中常见的detailId。severity_text保留语义。这些差异已经通过单元测试和通用响应归一化逻辑覆盖。
12. Security / Evidence Hygiene
安全和脱敏处理:
dummy-api-key和文档保留 IP 段。13. Known Limits
当前限制:
14. Review Checklist
services/geyecloud__atd_v2-3-6/service.json/proto/src/bin/ schemas / tests / README includedoctobus-sdk validate --strictpassednpm run pack:checkpassed