admin
|
fdd435cded
|
chore(k8s): image tag v0.7.1 → v0.7.2
v0.7.2 修 wxwork::h_callback 的两个 API 拼装 bug,授权回调链路真能跑通。
|
2026-10-09 18:52:30 +08:00 |
|
admin
|
a0605e4ac6
|
chore(k8s): image tag v0.7.0 → v0.7.1
v0.7.1 包含 api::dispatch 的 strip_query 修复(路由匹配前剥掉 query string),
让 /portal/wxwork/login?redirect=... 这类带参请求不再 404。init container
一起 bump(同样的镜像)。
|
2026-10-09 18:41:54 +08:00 |
|
admin
|
6e9aa29cf6
|
fix(k8s): 容器加 hostPort 28889
i96772757dm.mayishangshu.cn:88 域名解析到 192.168.1.18:28889,K8s NodePort
范围限制 30000-32767,28889 装不进去,改用 hostPort 让 OrbStack 直接把宿主
28889 桥接到容器 18098。
⚠️ 重启后 192.168.1.18:28889 上的 socat 端口转发会丢,需配合 launchd(手动)
或等更上层 L4 反代方案。
|
2026-10-09 18:40:12 +08:00 |
|
 adminandClaude Code
|
f35252e267
|
feat(deploy): 工作台 + 企微 OAuth 部署配置(v0.7.0)
**影响**
- 镜像 tag 升 `ipass-sso-v0.6.1` → `ipass-sso-v0.7.0`,需重建 + push
- pod env 增 5 条 WXWORK_*;SECRET 走 `kubectl set env` 注入(不进 git)
- 域名 `i96772757dm.mayishangshu.cn:88/portal/wxwork/callback` 配到 WXWORK_REDIRECT
- 新增 `nginx ~* ^/WW_verify_.*\.txt$` 静态,文件在 PVC `data/verify/`
**改动**
- `deploy/k8s/ipass-sso.yaml` 镜像 tag 升一档 + container env 加 5 条;SECRET 用占位 `REPLACE_ME_VIA_KUBECTL_SET_ENV`
- `deploy/nginx.conf` env 白名单 5 条;`location ~* ^/WW_verify_` 静态出
- `data-seed/verify/WW_verify_rA7XMVuzBQ7kaXWZ.txt` 占位文件,部署时由 seed-verify.sh 复制到 PVC
- `scripts/seed-verify.sh` 幂等复制脚本(已存在则跳过),不覆盖现场值
- `rust/Cargo.toml` / `Cargo.lock` workspace 增 `ureq` 间接(实际由 plugin-sso 引入)
- `docs/superpowers/specs/2026-10-09-sso-workbench-wxwork-design.md` 设计文档
**设计**
- 校验文件放 PVC 不放镜像(与 tls/ 同思路):换内容不重打镜像
- 部署后第一步:`kubectl -n wuguirong set env deploy/ipass-sso WXWORK_SECRET=<真值>`,触发滚动
- 启动日志若 `wxwork::route` 全部 None(=enabled=false),提示「WXWORK_ENABLED 未开或 SECRET 缺」
Co-Authored-By: Claude Code <[email protected]>
|
2026-10-09 17:43:39 +08:00 |
|
 adminandClaude Code
|
cd4936c9dc
|
fix(deploy): 临时去掉 TLS 以跑通 K8s 部署
影响:
- 之前:nginx -t 因 /usr/local/nginx/data/tls/ 三件套缺失启动即 EMERG,
Pod CrashLoopBackOff
- 现在:明文 HTTP 18098 跑通,OIDC discovery / JWKS / admin / login 全绿
改动:
- deploy/nginx.conf:去掉 listen 18098 ssl + 三条 ssl_certificate 指令;
listen 改回明文 default_server;注释写明 TLS 后续接入
- deploy/k8s/ipass-sso.yaml:image tag v0.6.0 → v0.6.1(强制 IfNotPresent
节点重拉),OAUTH_ISSUER 改 http://,probes 去 scheme: HTTPS,
ports name tls → http
设计:
- 本次部署为明文 HTTP 临时方案;TLS 后续由 PVC sso/tls/ + 外部流程接入
Co-Authored-By: Claude Code <[email protected]>
|
2026-09-30 12:42:04 +08:00 |
|
 adminandClaude Code
|
f3df8b93a5
|
fix(deploy): build 时修正精简版 Dockerfile / nginx.conf 残留
**影响**:build 阶段 (`bash deploy/build.sh --no-push`) 报 Dockerfile COPY 错误,
镜像未生成。修正后镜像 `ipass-sso-v0.6.0` 本地构建成功,nginx -t 通过、
容器启动正常、`/admin/` 与 `/.well-known/openid-configuration` 双 200。
**改动**:
- `deploy/Dockerfile`:
- 删 `COPY deploy/custom/ ...`(精简版无 deploy/custom/ 目录)
- 删 `COPY deploy/legacy/ ...`(精简版无 deploy/legacy/ 目录)
- `EXPOSE 18098 18099` → `EXPOSE 18098`(精简版没 LLM 数据面,18099 用不到)
- `deploy/nginx.conf`:
- 删 `location /static/custom/ {...}`(精简版无 static-custom/)
- 删 `location /legacy/ {...}`(精简版不集成老管理台)
**设计**:上一步 commit 漏了 Dockerfile / nginx.conf 与文件系统的同步:
rsync 自 ipass-all 时连带 rsync 来了 deploy/custom/ 与 deploy/legacy/,
后续又手动 rm 掉了这两个目录,但 Dockerfile 里的 COPY 与 nginx.conf
里的 alias location 没同步清。
Co-Authored-By: Claude Code <[email protected]>
|
2026-09-30 12:05:19 +08:00 |
|
 adminandClaude Code
|
c3689d501e
|
chore: SSO-only 精简版初始提交(从 ipass-all 派生)
**影响**:新建独立仓 ipass-sso 作为 ipass-all 的 SSO-only 精简发行版——
剔除了 domain / llm / apix / cache / waf 5 个插件及对应的 nginx location
与 LLM/域名数据面 server,PLUGINS 数组只剩 sso + core,单 .so 体积与编
译时间同步下降。镜像名沿用 ssw188/nginx(同 repo 加 tag),新 tag
`ipass-sso-v0.6.0`,K8s 部署在 wuguirong ns NodePort 30082,与生产
ipass-all-v0.5.2 (30083/30084/30085) 并存互不干扰。
**改动**:
- `rust/Cargo.toml` + `rust/gateway/Cargo.toml`:删 5 个 plugin path 依赖,
package/lib 重命名为 `ipass-sso-gateway` / `libipass_sso_gateway`
- `rust/gateway/src/lib.rs`:PLUGINS 只剩 `&SsoPlugin` + `&CorePlugin`;
GatewayExt 4 个方法改为 no-op / 返回默认值(无 domain/llm 装饰);
ModuleConfig 只剩 api + iap 两个开关;NGX_HTTP_COMMANDS 数组 11→4 条;
init_process / exit_process 删 llm audit / stats persist 调用;
state_zone_init 删 domain/upstreams/apix 的预装载
- `rust/gateway/src/api.rs`:删除(h_admin_trend 依赖 llm + apix)
- `deploy/nginx.conf`:删 server 498 (LLM) + server 565 (域名);
主 server 删 `/apix/` `/apixp/` `/_apix_probe/` 等 7 个 location;
删 6 条 `proxy_cache_path` 与 8 个 cache location;删 `ipass_audit_dir` 指令
- `deploy/Dockerfile`:删 5 个 plugin named context 的 COPY 块;
.so 文件名改 `libipass_sso_gateway.so`
- `deploy/build.sh`:TAG 默认 `ipass-sso-v0.6.0`;
5 个 plugin build-context 删除;删 collect-legacy.sh 调用
- `data-seed/plugin-config.json`:只保留 `sso` 一个 plugin
- `scripts/collect-plugin-dist.sh`:PLUGINS 默认值改 `sso`
- `scripts/container-entrypoint.sh`:删 cache/audit 目录预创建
- `deploy/legacy/` `tests/` `docs/` `deploy/custom/` `deploy/compose.yml`:
精简版不需要,删除
- `deploy/k8s/ipass-sso.yaml`:新建精简版 K8s manifest
(NodePort 30082 单端口;replicas=1;同 10106 准入 + nginx-data PVC sso/ subPath;
探针用 `/admin/` try_files 兜底,与 ipass-all 同款止血方案)
**设计**:保留 ipass-core("core 是网关身份底座,永不跳过")+ ipass-plugin-sso,
其余插件整链剥离;不再维护 ssow/ssw 时代的多插件装配文档。剔除 ipass_audit_dir
是因为精简版没有 LLM 对话审计,剔除 proxy_cache_path 同理。K8s 部署沿用
nginx-data PVC + subPath 隔离模式(sso/ 与 ipass-all/ 互不干扰)。
**已知约束**:精简版仍是单进程共享内存,pod 重启使所有管理员/用户会话失效
(与 ipass-all 同款代价)。精简版不带单元/E2E 测试,老管理台 iframe 集成
也未引入。
Co-Authored-By: Claude Code <[email protected]>
|
2026-09-30 12:01:38 +08:00 |
|