feat: ZRANGE WITHSCORES JSON自动解析为结构化表格 + Redis审计规则 + 前端安全检查

- ZRANGE WITHSCORES 自动检测JSON member,展开为 open/close/high/low/volume 等独立列
- Redis 审计: 只读命令安全,写命令warning,FLUSHALL等危险命令error
- TicketCreatePage: auditResult.findings 添加 undefined 安全检查
- 审计API支持 instance_id 自动解析 db_type
This commit is contained in:
logan committed 2026-05-31 02:07:10 +08:00
1 parent 9c5cb04cfa
commit 24c633d9f0
3 files changed
+255 -54

No files matched your search

+1 -1
View File
@@ -399,7 +399,7 @@ export default function TicketCreatePage() {
<span className="text-green-400 font-medium flex items-center gap-1"><Check className="w-3.5 h-3.5" /> 通过</span>
)}
</div>
{auditResult.findings.length > 0 && (
{auditResult.findings && auditResult.findings.length > 0 && (
<div className="space-y-1.5">
{auditResult.findings.map((f, idx) => (
<div key={idx} className={'flex items-center gap-2 px-3 py-2 rounded-lg text-xs ' + (LEVEL_COLOR[f.level] || '')}>