eca icon indicating copy to clipboard operation
eca copied to clipboard

network.caCertFile in extraConfigs is silently ignored

Open shohi opened this issue 1 month ago • 1 comments

To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.

Please avoid AI slops, be concise, and focus on what matters for this issue.

Describe the bug

network.caCertFile set in a file listed under extraConfigs has no effect. Behind a TLS-inspecting proxy, ECA still fails with:

Error fetching models from models.dev: PKIX path building failed ...

The same network block works when placed in the global config.json.

To Reproduce

~/.config/eca/config.json:

{ "extraConfigs": ["~/.config/eca/config.local.json"] }

~/.config/eca/config.local.json:

{ "network": { "caCertFile": "/path/to/ca-bundle.pem" } }

Cause

network/setup! runs once at server start (main.clj) with config/read-file-configs, which only reads the initial config, ECA_CONFIG and the global config file. extraConfigs are merged later, after the SSL context and global HTTP client are already built.

Expected behavior

Apply network settings from extraConfigs, or at least warn/document that they are only read from the global config, ECA_CONFIG or env vars.

Environment

ECA 0.170.0, Windows, eca-emacs

Workaround

Set SSL_CERT_FILE to the CA bundle path.

shohi avatar Nov 04 '26 01:11 shohi

thanks, should be fixed!

ericdallo avatar Nov 05 '26 21:11 ericdallo