adminandClaude Code ddc396c992 fix(iap): 4 处 IAP location 补 X-Auth-* 注头 + 文档同步 (v0.7.22)
影响:sso_iap 验签后只设 $auth_* nginx 变量, 不会自动给 proxy_pass 请求加
X-Auth-User 等 5 个头. v0.7.22 前 4 处 IAP location 全部漏, demo app 读
X-Auth-User 拿到空字符串; nginx access log 显示 auth_user=admin ≠ 头已注.
补 5 行后下游 request.headers 正常, /me 端到端返用户身份.

改动:
- deploy/nginx.conf:/proxy/app-crm/{callback,/} + /proxy/app-mobile/{callback,/}
  四段 IAP location 各加 5 行 proxy_set_header X-Auth-* $auth_*.
- deploy/k8s/ipass-sso.yaml:镜像 tag v0.7.21 → v0.7.22; 头部注释记录此坑.
- docs/iap.md §6 坑列表加 #0, 附 5 行注头示例 + 解释 access log 误导.
- docs/integrate-with-iap.md §2.2 注释提醒(不照搬 4 段示例避免冗长);
  §6 ipass-sso 端 checklist + 失败排查表各加一条.

设计:sso_iap 注头责任全在 nginx.conf(不打算让 sso 插件自动改请求头——
保持 $auth_* 变量语义纯粹, 不想动就 $auth_* 直接用; 想要头自己
proxy_set_header, 跟 $arg_XXX / $http_XXX 风格一致).

Co-Authored-By: Claude Code <[email protected]>
2026-10-12 10:52:01 +08:00

ipass-all

iPass 全插件一体网关:内核 + 6 插件(身份 sso / 域名 domain / LLM 代理 llm / API 代理 apix / 制品缓存 cache / WAF waf)编译期装配成单个 nginx 动态模块, 一个容器跑完。单进程、零外部依赖。

端口

端口 承载
18098 管理台 /admin/ · OIDC(/.well-known/openid-configuration)· /api/* · apix(/apix/、/apixp/)· 制品缓存 8 路由(/go/ /cargo/ /pypi/ /npm/ /maven/ /v2/…)· 域名转发(Host: *.ipass.local)
18099 LLM 数据面 <base_url>/<slot>/...(sk_ Key 鉴权,出站换上游真 Key)

快速开始

bash deploy/build.sh                        # 收集前端 + docker build + push 阿里云 CR
kubectl apply -f deploy/k8s/ipass-all.yaml  # wuguirong 租户 ns(NodePort 30083/30084)
curl -fs http://192.168.1.26:30083/.well-known/openid-configuration

首次登录 admin / 123456(立即改密)。各插件能力与配置见管理台对应页。

装配清单与顺序

SsoPlugin → CorePlugin → DomainPlugin → LlmPlugin → ApixPlugin → CachePlugin → WafPlugin → trend

顺序即端点认领顺序:sso 排第一接管身份端点;trend 组合端点由装配根自己提供。

文档

S
Description
SSO 统一认证服务 —— nginx 动态模块 + Rust(自包含 OAuth2/OIDC IdP + IAP 身份注入)
Readme
5.5 MiB
0 Stars 1 Watchers 0 Forks
Languages
HTML 59.9%
Shell 15.4%
Rust 14.3%
Dockerfile 6%
Python 4.4%