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

Open Beginner friendly
#4,437 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@Maheesh09 is already working on this.

Since Nov 25, 2026.

  • #4456 by @Maheesh09 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript, nodejs
Domain
backend

Research direction

Start in portals/api-portal/src/config/tlsOptions.js, where buildTLSOptions hardcodes the server.https. prefix in every thrown error (around lines 52-118). Check how buildOutboundAgents calls it, then add a section label parameter so the message names http_client.tls for outbound values. Reproduce by calling buildTLSOptions with ecdh_curves set to X448 and confirm the message names the outbound section.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Go
Stars
85
Forks
142
Avg merge
1d 6h
Merged PRs (30d)
250

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from wso2/api-platform

All issues in wso2/api-platform

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.