feat(agents): Phase3.2 Agent凭据Fernet加密存储 写入加密+调用点解密+返回脱敏+主密钥持久化防竞态 [v2026.07.19.7]
CI / gate (push) Has been cancelled
CI / gate (push) Has been cancelled
This commit is contained in:
1 parent
0600c37b9e
commit
3b34ba78b8
6 files changed
+1073
-946
No files matched your search
@@ -1,6 +1,7 @@
|
||||
# Auto-extracted from chat.py during Phase 1 refactor (Strangler Fig).
|
||||
# Source of truth: scripts/phase1_extract.py. Do not hand-merge back.
|
||||
|
||||
from app.core.credential import decrypt_secret, mask_secret
|
||||
from fastapi import APIRouter, Depends, HTTPException, Query, Response
|
||||
from sqlalchemy.orm import Session
|
||||
from sqlalchemy import and_, desc, asc, func
|
||||
@@ -530,7 +531,7 @@ def _resolve_market_agents(db: Session, agent_ids: list, user_id: str) -> list:
|
||||
|
||||
|
||||
|
||||
"agent_api_key": ag.agent_api_key or None,
|
||||
"agent_api_key": mask_secret(decrypt_secret(ag.agent_api_key)) or None,
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user