[Bug]: API Portal sign-in code exchange and JWKS fetch ignore [api_portal.http_client.tls]
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 55/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- javascript, nodejs
调研方向
Start with the passport-oauth2 strategy setup in portals/api-portal/src/middlewares/passportConfig.js (around line 104) and getJwksResolver in src/utils/jwksResolver.js (around line 33), then read buildOutboundAgents in src/config/httpClientOptions.js to see how the shared agent is built. Done means the code exchange and the JWKS fetch use that same agent, so a narrowed http_client.tls setting applies to them as it does to token refresh.
由索引模型根据 Issue 内容生成。
描述
Please select the area the issue is related to
DeveloperPortal
Please select the aspect the issue is related to
Aspect/Configuration (Config files, settings, env vars, defaults)
Description
[api_portal.http_client.tls] sets the TLS versions, cipher suites and key-exchange groups for the connections the API Portal opens to other services. In idp authentication mode, two connections to the identity provider don't use it:
- The sign-in authorization code exchange at
auth.idp.token_url. Thepassport-oauth2strategy (passportConfig.js#L104) is created without an agent, so it uses Node's global HTTPS agent. - Fetching signing keys from
auth.idp.jwks_url/jwks_url_template.getJwksResolver(jwksResolver.js#L33) callscreateRemoteJWKSet(new URL(jwksURL))without a custom fetch, so it uses the runtime's defaultfetch.
All other outbound calls take their agent from buildOutboundAgents (httpClientOptions.js): Platform API local login, token refresh (tokenUtil), key managers, billing, the try-it proxy and webhook delivery.
Because these two connections run on runtime defaults:
- Narrowing
minimum_protocol_version,maximum_protocol_version,ciphersorecdh_curves(for example, for compliance) has no effect on them. - They offer
X25519MLKEM768first: the runtime default group list on thenode:24-alpineimage (OpenSSL 3.5). The configured outbound default is the classicalX25519,P-256, so the two connections don't follow it. - Token refresh goes to the same
token_urland does usehttp_client.tls, so the identity provider sees two different TLS profiles from one portal.
This came up while documenting the portal's TLS settings (wso2/docs-api-platform#855, which notes the limitation). It was found by reading the code on main (5be6e920a). I haven't captured it end to end.
Expected
Both connections use the shared outbound agent's TLS options, as the other outbound calls do. For example, strategy._oauth2.setAgent(httpsAgent) for passport-oauth2, and a [customFetch] on createRemoteJWKSet that goes through the same agent.
Steps to Reproduce
-
Run the portal with
auth.mode = "idp"against an identity provider served over HTTPS. -
Add to
configs/config.tomland restart:[api_portal.http_client.tls] maximum_protocol_version = "TLS1_2" -
Sign in through the browser and record the portal-to-IdP TLS handshakes, for example with a packet capture on the identity provider's host or its TLS access log.
-
Observed (expected from the code): the code exchange and the JWKS fetch negotiate TLS 1.3 and offer
X25519MLKEM768, while a later token refresh is capped at TLS 1.2.
Severity Level of the Issue
Severity/Minor (Non-critical functionality. Can be fixed in future releases)
Environment Details (with versions)
main at 5be6e920a; node:24-alpine image (Node 24, OpenSSL 3.5).
- 主要语言
- Go
- 星标
- 85
- 派生
- 142
- 平均合并
- 1 天 7 小时
- 30 天内合并 PR
- 255
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
wso2/api-platform 的其他 Issue
-
Area/Policies Aspect/API Severity/Major Type/Bug
难度 2/5 1-3 小时 新手友好度 76/100
wso2/api-platform#4468 ·
维护者通常 1 天内回复
-
Area/Policies Aspect/API Severity/Major Type/Bug
难度 2/5 1-3 小时 新手友好度 68/100
wso2/api-platform#4465 ·
维护者通常 1 天内回复
-
[Bug]: Invalid [api_portal.http_client.tls] value reports an error naming server.https可能已有人在做 @Maheesh09 于 1 天前认领。 未关闭Area/DeveloperPortal Aspect/Configuration Severity/Minor Type/Bug
难度 2/5 1-3 小时 新手友好度 78/100
wso2/api-platform#4437 · 1 条评论 ·
维护者通常 1 天内回复
-
Area/DeveloperPortal Aspect/UI Severity/Minor Type/Bug
难度 1/5 1 小时以内 新手友好度 88/100
wso2/api-platform#4369 ·
维护者通常 1 天内回复
-
[Bug]: host-rewrite policy documentation lists fewer allowed host characters than the policy accepts未关闭Area/Policies Aspect/Other Severity/Trivial Type/Bug
难度 1/5 1 小时以内 新手友好度 91/100
wso2/api-platform#4355 ·
维护者通常 1 天内回复
查看 wso2/api-platform 的全部 Issue
相似的 Issue
-
[inputs.internal] README lists go_version tag on internal_gather instead of internal_agent可能已有人在做 @cvas22 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 90/100
influxdata/telegraf#20264 ·
维护者通常 1 天内回复
-
[Bug] Standalone migration breaks existing Ingress routes using the envoy-http Service port name未关闭accepted bug wg/enterprise-environment
难度 2/5 1-3 小时 新手友好度 78/100
vllm-project/semantic-router#7483 · 1 条评论 ·
维护者通常 1 天内回复
-
needs-triage
难度 2/5 1-3 小时 新手友好度 64/100
stacklok/toolhive-catalog#2076 ·
维护者通常 1 天内回复
-
vulncheck or vulndb
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
needs-triage
难度 2/5 1-3 小时 新手友好度 78/100
gke-labs/kube-agents#7441 ·
维护者通常 1 天内回复