Actions
이슈 #451
진행중
HP
HP
이슈 #448: Phase 0.8 — dKernel Agent Identity Session
Phase 0.8-2 — command_audit 스키마 + dshcore audit hook
이슈 #451:
Phase 0.8-2 — command_audit 스키마 + dshcore audit hook
시작일:
2026/05/19
완료일:
진척도:
0%
추정시간:
설명
범위¶
gap-report.md §6, §7 Option B, §9. 구조화된 audit 테이블 — 현재 access_logs 이 free-form details 240-char 이라 AI agent 도 운영자도 replay 불가능한 증상 해소.
작업¶
-
command_audit테이블 신규 —id,source,principal_type,principal_id,command,namespace,args_hash,result_hash,error_code,status,latency_ms,agent_session_id(0.8-3 일찍 남겨둔 컬럼),created_at - v22 마이그레이션 (
internal/store/migrations.go) -
internal/dshcore/client.go에 per-command audit hook — command 이름과 args hash 기록 -
internal/server/interceptors.go의AccessLogInterceptor를 분리 또는 업그레이드 — RPC 레벨 기록은command_audit으로 -
error_code는dshcore.Code장건 (not_found / permission_denied / invalid_argument / cas_mismatch / conflict / unavailable / internal) — ConnectRPC code 는 다른 컬럼 또는 details 로 - handler·store 테스트 + sdktest agent-conformance 명령 확장 (gap-report §10 참고)
DoD¶
-
command_audit테이블 + v22 마이그레이션 - dshcore client.go 에 audit hook — 매 command 당 행 1개 기록 (transport 실패 처리 규칙 명시)
- RPC 레벨 audit (DfsService, DeltaService, AuthService …) 가 같은 테이블로 안내짐
-
access_logs는 넘어가지 않음 (공존 또는 명시적 deprecation) - store + handler tests
-
smoke 에
command_audit행 검증 단계 추가
관련¶
Actions