From 3ea8e675cee9f24d9d1699d73645cdcad36712a8 Mon Sep 17 00:00:00 2001 From: liuyun Date: Wed, 21 Oct 2026 12:04:07 +0800 Subject: [PATCH] =?UTF-8?q?feat(security):=20id=5Fcard=5Fno=20=E5=AD=98?= =?UTF-8?q?=E5=82=A8=E5=B1=82=E5=8A=A0=E5=AF=86=20+=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=AD=90=E6=A8=A1=E5=9D=97=E6=8C=87=E9=92=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 --- docs/tech-debt.md | 2 +- sources/ec-nest | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tech-debt.md b/docs/tech-debt.md index a52ce8c..8e53ac8 100644 --- a/docs/tech-debt.md +++ b/docs/tech-debt.md @@ -4,7 +4,7 @@ ## 安全 / 合规(优先处理) -- [ ] **id_card_no 存储层加密**:staff + elder 的身份证目前明文存(代码留 TODO),需统一走一个 security change(AES 加密;掩码/查看留痕已做)。 +- [x] ~~**id_card_no 存储层加密**~~ ✅ 已做(2026-10-21):AES-256-GCM 加密 + SHA-256 哈希唯一,掩码/查看留痕保留。密钥 `DATA_ENC_KEY`(缺省开发回退 key,生产必须配置)。 - [ ] **tenant_super_admin 未纳入身份证明文查看口径**:`elder` detail 明文目前仅 admin/qc/super_admin,业务租户顶层管理员 `tenant_super_admin` 遗漏(低危,C1 遗留)。 - [ ] **身份核验 P-9**(扫脸/人证核验):依赖医保 APP 能力,后置;本期兜底=拍照留痕 + 实名账号 + 家属可选确认。 - [ ] **评估结论副本孤儿文件**:建档先上传副本、create 失败(如重复身份证)会在 MinIO 留孤儿对象,需失败清理。 diff --git a/sources/ec-nest b/sources/ec-nest index 6ea9ad0..394d7a9 160000 --- a/sources/ec-nest +++ b/sources/ec-nest @@ -1 +1 @@ -Subproject commit 6ea9ad097bb7630d476e18018d2ba9d0885d0acf +Subproject commit 394d7a9731447c468b42ab9cf9e8927c939d4091