admin
|
866cbc1c56
|
feat(sswflow+scard): connector 模式端到端跑通 (AUC=0.7794 + 数据不出域)
- Go 1.22 docker 重 build scard connector-linux-amd64 (md5 5c41d7240c523128c50570558f9059fc)
解决 Go 1.26 ELF ↔ OrbStack VM 内核 7.0.11-orbstack ABI 错配 (SEGV)
build 命令: docker run --rm -e GOPROXY=https://goproxy.cn,direct -v ... golang:1.22-alpine
- scard connector main.go: secret 来源从 loadOrCreateSessionSecret (每次启动随机) 改为
os.Getenv(SSW_CONNECTOR_SESSION_SECRET) || c.deviceID, 与 Java 端 connector_code 对齐
- application.yml: sa-token exclude-url 加 /api/ssw/tds/Connector/*/PullSession (V1.5+)
- K8sSandboxClient.PartySession 加 expiry 字段, yaml 加 SSW_CONNECTOR_EXPIRY + SSW_CONNECTOR_TASK_ID env
- nax_2p.py: _handshake_if_connector 用 env 的 expiry+taskId (不再自算避免不匹配),
删 [A] epX dec-u/enc-d [B] epX dec-d 三行调试 print
- K8sExec.findLastJsonLine: kubectl logs --tail=-1 实际返回全部, 用可 parseJson 行作 resultJson
- 两 VM systemd unit: Environment=SSW_CONNECTOR_SESSION_SECRET=J7NODE-A/B + --session-listen :9443
验证: curl POST Nax2PJob {connectorMode: connector, partyAConnectorId: J7NODE-A, partyBConnectorId: J7NODE-B}
→ code=200, status=SUCCESS, AUC=0.7794 KS=0.5128, [CONNECTOR] handshake admitted role=A connector=J7NODE-A
[PSI] A 侧交集样本数=300 (原始 uid/特征未跨 VM), [VLR] A 侧训练完成 AUC=0.7794 KS=0.5128
|
2026-08-14 11:27:28 +08:00 |
|
admin
|
016a6f6c89
|
feat(scard+tds): 真两方 connector 模式握手协议 (V1.5+ 数据不出域)
- scard connector Go 新增 /connector/session/handshake 端点 (--session-listen :9443):
- 仅返回本地数据路径元数据 + attestation 摘要, 绝不返回数据字节 (与'数据不出域'硬边界一致)
- HMAC-SHA256(secret, taskId|partyRole|datasetCode|expiry) 鉴权, secret 落 data-dir/session-secret.bin
- embed HTTP server, 后台 goroutine 启动, 0 改动现有 state machine
- tds_connector 实体加 f_connector_mode (mock|connector, 默认 mock) + f_session_endpoint
- tds_connector DB migration: boot/db/dacli/0814_tds_connector_add_session.sql
- ConnectorController 新增 PUT /{id}/PullSession 端点: 由 TDC K8sSandboxClient 调用, 返回
{connectorId, partyRole, datasetCode, sessionEndpoint, token, expiry, localDataDir, attestation}
- 验证: 两 VM curl /healthz 返 {ok:true,component:connector-session}; Python 算正确 token POST handshake 返 200 + 元数据; j7node2 attestation tofu-recorded
build 坑: macOS cross-compile linux ELF 时 build cache 状态污染导致 ELF 不完整
('too large section header offset'), 必须 rm -f bin && go clean -cache && go build -v (10MB ELF 才正常)
|
2026-08-14 09:37:52 +08:00 |
|
admin
|
a25ac818ba
|
build(scard): connector-linux-amd64 重打 (修 MockTPM) + attestation-policy 自动登记 J7NODE-002
- connector-linux-amd64 md5: 9fd493def11a0eea22c688ecb4528e3a → 08cb93469f79e45368ee27f31c8fb4d3
- attestation-policy.json 新增 J7NODE-002 entry (server 自动登记, tofu:true, PCR digest 与 J7NODE-001 一致)
- 文件被 scard/.gitignore (scard-data/) 忽略, git add -f 强制入库 (与 0813 d8f82fd 同款做法)
|
2026-08-14 09:26:53 +08:00 |
|
admin
|
092e69bee7
|
0813: j7node 业务栈拉起 + TDS Bridge 内部端点 + TDC/TDS 控制器修复
- j7node: k3s+3Pod(j7-postgres/j7-redis/j7-admin) 业务栈实测通过,
admin/123456 登录 + 真实 tdc/sswflow 端点全绿; VM_DEPLOY.md 据实测校正
(IP 192.168.139.95、§3.1 库初始化、§8 验收矩阵、400 假象澄清)
- TDS Bridge: 新增 TdsBridgeInternalController + SSWFLOW_BINDING.md(V0~V1.5 胶水)
- TDC 去耦: 新增 TdcTdsClient/Noop/Http 抽象、K8sSandboxClient、audit、
TdcAdminApplication; 各 Controller 改走客户端
- TDS: License/Cert/Quota 分页 SQL bug 修复
- 其他: NaxComputeEngine 富化、pom 调整、AGENTS.md、.gitignore 排除 boot/dist
|
2026-08-13 21:43:19 +08:00 |
|
admin
|
3247e9fd15
|
init: ssw-mvp initial commit
- boot/ (Java/Maven, JNPF 7.0) — 移除旧的 boot/.git,源码直接纳入仓库
- web/ (Vue 3 + Vite + Ant Design Vue, pnpm)
- docs/, scard/, nax/
- refs/INDEX.md + refs/国标/(其余 refs/* 开源子仓库不纳入)
- 已忽略: connector_data/, jweb/, log/, web/{dist,node_modules,.pnpm}, boot/*/target/, .DS_Store, .idea, .vscode
|
2026-08-05 18:29:12 +08:00 |
|