network.caCertFile in extraConfigs is silently ignored

Offen
#688 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
Ein halber Tag
Anfängerfreundlichkeit
45/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
clojure
Bereich
networking

Rechercherichtung

Start with network/setup! in the server startup path (main.clj) and config/read-file-configs, which only reads the initial, env and global config. Trace where extraConfigs are merged afterwards, after the SSL context and HTTP client are built. Done means network.caCertFile from an extra config is honored, or the limitation is documented or warned about; test by pointing a file in extraConfigs at a CA bundle and confirming models.dev fetch succeeds.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug

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.

Vorherrschende Sprache
Clojure
Sterne
1k
Forks
82
Ø Merge
2 T. 14 Std.
Gemergte PRs (30 T.)
23

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus editor-code-assistant/eca

Alle Issues in editor-code-assistant/eca

Ähnliche Issues

Weitere Issues zu Clojure

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.