[Bug]: Invalid [api_portal.http_client.tls] value reports an error naming server.https
Maintainers usually reply within 1 day
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
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
-
Add to
configs/config.toml:[api_portal.http_client.tls] ecdh_curves = "X448" -
Start the portal.
-
Startup fails with
Error setting up outbound HTTP clientandserver.https.ecdh_curves: unsupported curve "X448" .... Unknownciphers, an emptyecdh_curvesand 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from wso2/api-platform
-
Area/Policies Aspect/API Severity/Major Type/Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
wso2/api-platform#4468 ·
Maintainers usually reply within 1 day
-
Area/Policies Aspect/API Severity/Major Type/Bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
wso2/api-platform#4465 ·
Maintainers usually reply within 1 day
-
Area/DeveloperPortal Aspect/UI Severity/Minor Type/Bug
Difficulty 1/5 Under an hour Newbie friendliness 88/100
wso2/api-platform#4369 ·
Maintainers usually reply within 1 day
-
[Bug]: host-rewrite policy documentation lists fewer allowed host characters than the policy acceptsOpenArea/Policies Aspect/Other Severity/Trivial Type/Bug
Difficulty 1/5 Under an hour Newbie friendliness 91/100
wso2/api-platform#4355 ·
Maintainers usually reply within 1 day
-
[Bug]: A refused request's analytics event and traffic log lose the path the client calledMay be free again A pull request for this issue was closed without being merged. OpenArea/Gateway Aspect/API Severity/Minor Type/Bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
wso2/api-platform#4348 ·
Maintainers usually reply within 1 day
All issues in wso2/api-platform
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
github/github-mcp-server#3960 ·
Maintainers usually reply within 3 days
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
JuliusBrussee/caveman#1594 ·
Maintainers usually reply within 1 day
-
C-bug O-community X-blathers-triaged
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
cockroachdb/cockroach#176264 · 1 comment ·