Commit 6e77836
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- crates/capsula-pki
- src/ra
5 files changed
+727
-246
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | 50 | | |
| 51 | + | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
126 | 127 | | |
127 | 128 | | |
128 | 129 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| |||
0 commit comments