- Add CredentialService for managing broker credentials - Implement credential CLI commands (create, list, get, update, delete) - Add postgres repository support for credential operations - Add comprehensive test coverage for credential CLI - Update docs/batches/index.md and docs/srs/index.md with BAT-005 - Update docs/project-structure.md to reflect credential service
1.5 KiB
1.5 KiB
BAT-005 Index
- Status: release-candidate
- Batch: BAT-005
- Profile: batch-lite
- Created: 2026-05-03
Included REQ
| REQ | 제목 | Type | Priority |
|---|---|---|---|
| REQ-015 | CLI credential 명령 그룹 구현 (브로커 인증 정보 관리) |
Interface | Medium |
Source Discovery
- minor-change fast path (Discovery 없음)
Scope Summary
- CLI
pfhub credential set/list/remove명령 그룹 신규 추가 app/cli/commands/credential.py신규 생성 (credential_app)app/cli/main.py에credential_app등록app/repositories/postgres.py에delete_broker_credential메서드 추가- 기존
broker_credentials테이블 /upsert_broker_credential/list_broker_credentials재사용 - 기존 Fernet 암호화 인프라 (
app/core/encryption.py) 재사용 - DB 스키마 변경 없음, HTTP API 변경 없음
Impacted Area
- Docs:
docs/project-structure.md— CLI 모듈 목록에credential.py추가
- Modules:
app/cli/commands/credential.py(신규)app/cli/main.py(credential_app등록)app/repositories/postgres.py(delete_broker_credential추가)
- Tests:
tests/test_cli.py— credential 명령 통합 테스트 추가
Stage Documents
| Stage | File | Status |
|---|---|---|
| Planning | planning.md | confirmed |
| Implementation | implementation.md | completed |
| Verification | verification.md | passed |