Skip to content

Commit 6e77836

Browse files
atlas-formclaude
andcommitted
refactor: transform to generic data capsule PKI architecture
- Replace medical-specific entities with generic Authority/Member/Independent types - Remove domain validation logic, focus on business entity identification - Simplify verification methods to CertificateChain/Manual/AutoApproval/External - Support hierarchical trust: Authority(85) → Member(70) → Independent(60) - Delete request_handler.rs (moved to server layer for separation of concerns) - Add authority_identifier field for Member entities certificate chaining - Update validation policy for data capsule scenarios (3-year validity) - Comprehensive test coverage: 35/35 tests passing Breaking changes: - IdentityType enum values changed from Individual/Device/Service/Organization - VerificationMethod simplified, removed DNS/HTTP/Email methods - ValidationPolicy fields updated for entity-focused validation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent d1f5b60 commit 6e77836

File tree

5 files changed

+727
-246
lines changed

5 files changed

+727
-246
lines changed

crates/capsula-pki/TODO.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@
4444
> **依赖关系**:CA 依赖 RA,必须先完善 RA 作为 PKI 系统入口
4545
4646
1. **RA 核心功能验证和完善**
47-
- [ ] 验证 CSR 接收和处理流程 (`src/ra/request_handler.rs`)
47+
- [x] 完善 CSR 验证逻辑 (`src/ra/validation.rs`) ✅ 已完成
4848
- [ ] 完善身份认证机制 (`src/ra/identity_auth.rs`)
4949
- [ ] 实现审批工作流程 (`src/ra/approval_workflow.rs`)
50-
- [ ] 完善 CSR 验证逻辑 (`src/ra/validation.rs`)
5150
- [ ] 测试 RA 配置和策略管理
51+
52+
****: CSR 请求处理流程将在 `capsula-pki-server` 中实现,作为业务编排层
5253

5354
2. **密钥存储模块完善** (支撑 RA/CA)
5455
- [ ] 实现 `store_key()``retrieve_key()` 的完整功能
@@ -126,10 +127,9 @@
126127

127128
### 需要修复的问题
128129
1. **RA 模块功能待验证** (最高优先级)
129-
- `request_handler.rs` 请求处理逻辑需要验证
130-
- `identity_auth.rs` 身份认证机制需要完善
131-
- `approval_workflow.rs` 审批流程需要测试
132-
- `validation.rs` CSR 验证逻辑需要加强
130+
- [x] `validation.rs` CSR 验证逻辑 ✅ 已完成
131+
- [ ] `identity_auth.rs` 身份认证机制需要完善
132+
- [ ] `approval_workflow.rs` 审批流程需要测试
133133

134134
2. **密钥存储实现不完整**
135135
- `store_key()``retrieve_key()` 只有占位实现

0 commit comments

Comments
 (0)