refactor: 将 ipass-core 内核外置为 deps/ipass 子模块,本仓库仅保留 SSO

- 新增 git submodule deps/ipass(指向 ipass/ipass,pin 9c46e27),内核与通用能力插件统一收归子模块
- 删除仓库内 crates/ipass-core、vendor/ngx-rust、crates/plugin-domain
- source/rust/Cargo.toml 改为 members=[plugin-sso, gateway] + exclude=[../../deps/ipass],ngx/nginx-sys/ipass-core 改为 ../../deps/ipass/... 的 path 依赖
- gateway 移除 plugin-domain 装配:PLUGINS=[SsoPlugin, CorePlugin],去除 ipass_proxy 指令 / domain 开关 / set_flag_domain
- plugin-sso 新增 compat.rs 兼容层,重建被主线内核移除的 4 个 http 辅助函数(body_object/json_body/send_ct/redirect),scim/cas/portal/reset.rs 改走 crate::compat
- 删除 tests/domain-e2e.sh,run-local-e2e.sh 的域名测试调用一并移除(e2e 由 7 套降为 6 套)
- 更新 README/CLAUDE/docs 反映子模块结构;构建已验证:cargo build --release 通过,产出 libsso_gateway.dylib
This commit is contained in:
ssw committed 2026-09-21 15:17:35 +08:00
1 parent d63beeb15d
commit f9c2324c47
149 files changed
+212 -18100

No files matched your search

+4 -9
View File
@@ -214,7 +214,7 @@ for i in $(seq 1 30); do
done
# ---------------------------------------------------------------------------
# 跑测试(五套,各自独立计分)
# 跑测试(六套,各自独立计分;域名/LLM 等通用插件 e2e 见 deps/ipass 子模块)
# ---------------------------------------------------------------------------
RC=0
set +e
@@ -239,13 +239,9 @@ echo "############### [5/6] 管理接口:账号批量维护 ###############"
bash "$ROOT/tests/admin-users-batch-e2e.sh" "$HOST_IDP" "$DATA_DIR" "$HOST_IAP_DEMO"
RC5=$?
echo
echo "############### [6/6] 域名插件:申请 / 审核 / 转发 ###############"
bash "$ROOT/tests/domain-e2e.sh" "$HOST_IDP" "$HOST_DOMAIN" "$DATA_DIR"
RC6=$?
echo
echo "############### [7/7] MaxKey P1/P2 新增能力(SCIM/CAS/密码重置/同步/LDAP) ###############"
echo "############### [6/6] MaxKey P1/P2 新增能力(SCIM/CAS/密码重置/同步/LDAP) ###############"
bash "$ROOT/tests/maxkey-p1p2-e2e.sh" "$HOST_IDP" "$DATA_DIR"
RC7=$?
RC6=$?
set -e
[ "$RC1" != "0" ] && RC=1
[ "$RC2" != "0" ] && RC=1
@@ -253,10 +249,9 @@ set -e
[ "$RC4" != "0" ] && RC=1
[ "$RC5" != "0" ] && RC=1
[ "$RC6" != "0" ] && RC=1
[ "$RC7" != "0" ] && RC=1
echo
echo "## [summary] 基线 rc=$RC1 互通/接入 rc=$RC2 管理接口 rc=$RC3 RS256/JWKS rc=$RC4 账号批量维护 rc=$RC5 域名插件 rc=$RC6 P1/P2 新增 rc=$RC7"
echo "## [summary] 基线 rc=$RC1 互通/接入 rc=$RC2 管理接口 rc=$RC3 RS256/JWKS rc=$RC4 账号批量维护 rc=$RC5 P1/P2 新增 rc=$RC6"
if [ "$KEEP" = "1" ]; then
echo "## [done] 测试完成 (rc=$RC);进程保留,手动排查:"
echo " kill $NGX_PID $DEMO_PID"