[Bug]: Invalid [api_portal.http_client.tls] value reports an error naming server.https

Abierto Apto para principiantes
#4,437 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@Maheesh09 ya está trabajando en esto.

Desde el 25/11/2026.

  • #4456 de @Maheesh09 — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
78/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
javascript, nodejs
Área
backend

Línea de trabajo

Empieza en portals/api-portal/src/config/tlsOptions.js, donde buildTLSOptions codifica de forma fija el prefijo server.https. en cada error que lanza (alrededor de las líneas 52-118). Revisa cómo buildOutboundAgents la llama y luego añade un parámetro de etiqueta de sección para que el mensaje nombre http_client.tls en los valores salientes. Reproduce el caso llamando a buildTLSOptions con ecdh_curves establecido en X448 y confirma que el mensaje nombra la sección saliente.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Area/DeveloperPortal Aspect/Configuration Severity/Minor Type/Bug
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

buildTLSOptions in tlsOptions.js validates both [api_portal.server.https] (from server.js) and [api_portal.http_client.tls] (from buildOutboundAgents). Every error message it throws hardcodes the server.https. prefix (L52, L55, L58, L87, L92, L113, L118).

So a bad value in the outbound section stops startup with a message that points at the listener section. The operator may not have changed the listener section at all. The log entry is "Error setting up outbound HTTP client", and its error reads:

server.https.ecdh_curves: unsupported curve "X448" (supported: X25519, P-256, P-384, P-521, X25519MLKEM768)

Expected

The message names the section that holds the bad value, for example http_client.tls.ecdh_curves: unsupported curve "X448" .... One way: pass a section label into buildTLSOptions.

Steps to Reproduce
  1. Add to configs/config.toml:

    [api_portal.http_client.tls]
    ecdh_curves = "X448"
    
  2. Start the portal.

  3. Startup fails with Error setting up outbound HTTP client and server.https.ecdh_curves: unsupported curve "X448" .... Unknown ciphers, an empty ecdh_curves and an inverted version range behave the same way.

Severity Level of the Issue

Severity/Minor (Non-critical functionality. Can be fixed in future releases)

Environment Details (with versions)

main at 5be6e920a. The error text was reproduced by calling buildTLSOptions from that commit directly under Node 24.

Lenguaje dominante
Go
Estrellas
85
Forks
142
Merge medio
1 d 6 h
PR fusionados (30 d)
250

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de wso2/api-platform

Todos los issues de wso2/api-platform

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.