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

オープン 初心者向け
#4,437 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Maheesh09 がすでに取り組んでいます。

2026年11月25日 から。

  • #4456 @Maheesh09 による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript, nodejs
領域
backend

調査の方向性

portals/api-portal/src/config/tlsOptions.js から始めてください。buildTLSOptions は、投げられるすべてのエラーメッセージに server.https. という接頭辞をハードコードしています(52〜118行目付近)。buildOutboundAgents からの呼び出し方を確認し、送信側の値に対してメッセージが http_client.tls を示すように、セクションラベルのパラメータを追加してください。ecdh_curves を X448 に設定して buildTLSOptions を呼び出して再現し、メッセージが送信側のセクションを示していることを確認してください。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Go
スター
85
フォーク
142
平均マージ
1日 6時間
マージ済み PR(30日)
250

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

wso2/api-platform のほかの issue

wso2/api-platform の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。