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

Aperta Adatta ai principianti
#4,437 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Maheesh09 ci sta già lavorando.

Dal 25/11/2026.

  • #4456 di @Maheesh09 — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript, nodejs
Ambito
backend

Direzione di ricerca

Inizia da portals/api-portal/src/config/tlsOptions.js, dove buildTLSOptions inserisce in modo fisso il prefisso server.https. in ogni errore generato (intorno alle righe 52-118). Controlla come buildOutboundAgents lo richiama, quindi aggiungi un parametro per l'etichetta di sezione in modo che il messaggio indichi http_client.tls per i valori in uscita. Riproduci il caso chiamando buildTLSOptions con ecdh_curves impostato su X448 e verifica che il messaggio indichi la sezione in uscita.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Go
Stelle
85
Fork
142
Merge medio
1g 6h
PR unite (30g)
250

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di wso2/api-platform

Tutte le issue di wso2/api-platform

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.