Skip to main content
← Back to list
01Issue
BugShippedSwamp CLI
Assigneeskeeb

Relationships

↔ sibling #477

#503 Bundled Deno does not honor the OS/system CA trust store

Opened by nblair2 · 5/31/2026· Shipped 6/1/2026

Description

swamp's bundled Deno runtime validates TLS against its own built-in roots and does not consult the operating-system trust store. In environments that terminate/inspect TLS at a middlebox, or where endpoints present a certificate chaining to a privately-operated root CA installed in the OS trust store, every TLS call (registry + model HTTP APIs) fails with invalid peer certificate: UnknownIssuer. SSL_CERT_FILE is not honored. Working workarounds: DENO_TLS_CA_STORE=system, or DENO_CERT=<ca-bundle>.

Steps to reproduce

  1. Install a private/intermediate root CA into the OS trust store (e.g. a corporate TLS-inspection proxy).
  2. Configure any model against an HTTPS endpoint whose certificate chains to that CA.
  3. Run any method (or any registry call).
  4. Observe invalid peer certificate: UnknownIssuer.
  5. Re-run with DENO_TLS_CA_STORE=system set — it succeeds.

Environment

swamp 20260528.220437.0; Linux.

Proposed fix

Consult the system trust store by default (or merge system roots), and/or honor SSL_CERT_FILE; at minimum document the DENO_TLS_CA_STORE/DENO_CERT requirement for users behind a TLS-inspecting proxy or a private CA.

02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 1 MOREASSIGNED+ 5 MOREREVIEW+ 3 MOREPR_MERGED+ 1 MORECONTRIBUTOR_NOTIFIED

Shipped

6/1/2026, 5:20:23 AM

Click a lifecycle step above to view its details.

03Sludge Pulse
keeb assigned keeb6/1/2026, 4:40:05 AM
keeb linked related to #4776/1/2026, 4:39:21 AM
Editable. Press Enter to edit.

keeb commented 6/1/2026, 5:20:30 AM

Thanks @nblair2 for reporting this! The fix has been merged and a release is on its way. We appreciate your contribution to swamp.

Sign in to post a ripple.