[Bug]: API Portal sign-in code exchange and JWKS fetch ignore [api_portal.http_client.tls]
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, nodejs
- Área
- authentication, security
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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).
- Lenguaje dominante
- Go
- Estrellas
- 85
- Forks
- 142
- Merge medio
- 1 d 7 h
- PR fusionados (30 d)
- 255
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de wso2/api-platform
-
Area/Policies Aspect/API Severity/Major Type/Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
wso2/api-platform#4468 ·
Los mantenedores suelen responder en 1 día
-
Area/Policies Aspect/API Severity/Major Type/Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
wso2/api-platform#4465 ·
Los mantenedores suelen responder en 1 día
-
[Bug]: Invalid [api_portal.http_client.tls] value reports an error naming server.httpsPosiblemente ocupada @Maheesh09 la tomó hace 1 día. AbiertoArea/DeveloperPortal Aspect/Configuration Severity/Minor Type/Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
wso2/api-platform#4437 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Area/DeveloperPortal Aspect/UI Severity/Minor Type/Bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
wso2/api-platform#4369 ·
Los mantenedores suelen responder en 1 día
-
[Bug]: host-rewrite policy documentation lists fewer allowed host characters than the policy acceptsAbiertoArea/Policies Aspect/Other Severity/Trivial Type/Bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 91/100
wso2/api-platform#4355 ·
Los mantenedores suelen responder en 1 día
Todos los issues de wso2/api-platform
Issues similares
-
[inputs.internal] README lists go_version tag on internal_gather instead of internal_agentPosiblemente ocupada @cvas22 la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
influxdata/telegraf#20264 ·
Los mantenedores suelen responder en 1 día
-
[Bug] Standalone migration breaks existing Ingress routes using the envoy-http Service port nameAbiertoaccepted bug wg/enterprise-environment
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
vllm-project/semantic-router#7483 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
stacklok/toolhive-catalog#2076 ·
Los mantenedores suelen responder en 1 día
-
vulncheck or vulndb
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
golang/go#83428 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
gke-labs/kube-agents#7441 ·
Los mantenedores suelen responder en 1 día