프로젝트

일반

사용자정보

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

Henry Park이(가) 약 6시간 전에 추가함.

상태:
해결
우선순위:
보통
담당자:
목표버전:
시작일:
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 행 검증 단계 추가

관련

  • depends on / follows #450 (0.8-1 Signer)
  • precedes #448 자식 0.8-3 (Agent session 이 이 컬럼 을 채움)
Actions

내보내기 PDF Atom