cbbcdae66d
Click offline/online to filter, unset-path to scroll to panel; add unset_path to /servers/stats; fix Docker deploy frontend sync.
989 B
989 B
审计 — 服务器页 Agent 诊断按钮
Changelog: docs/changelog/2026-06-09-agent-diagnose-ui-button.md
变更文件
| 文件 | 说明 |
|---|---|
agent_diagnose_service.py |
中心 + SSH 诊断服务 |
servers.py |
POST /{id}/agent-diagnose |
agent_remote_diagnose.py |
CLI 改引用 service |
AgentDiagnoseDialog.vue |
诊断结果弹窗 |
agentDiagnose.ts |
前端类型 |
ServersPage.vue |
操作列按钮 |
ServerUnsetPathPanel.vue |
未设路径表操作列 |
auditLabels.ts |
审计 action 文案 |
test_agent_diagnose_service.py |
服务单测 |
test_agent_remote_diagnose.py |
CLI 辅助单测 |
Step 3
| 规则 | 结论 |
|---|---|
| 安全 | PASS — JWT + 审计;config 脱敏;无密钥回传 |
| 行为 | PASS — 只读诊断 |
Closure
pytest tests/test_agent_diagnose_service.py -qPASS
DoD
- changelog + audit
- 生产部署验证(
c5e54da,/health ok,/app 200)