Settings can't be provided via environment variables

Aperta
#26 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@gagantrivedi ci sta già lavorando.

Dal 17/10/2026.

  • #27 di @gagantrivedi — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
58/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
docker, rust
Ambito
backend

Direzione di ricerca

Start by reading the Rust proxy's configuration loading and environment-variable handling, then compare the documented settings with the Python proxy behavior referenced in the issue. Reproduce the startup failure with the provided Docker command and check that env vars work both without a config file and when they conflict with config.json; done means env vars take precedence in both cases.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Current behaviour

The Rust proxy only reads settings from config.json. Environment variables such as ENVIRONMENT_KEY_PAIRS or API_POLL_FREQUENCY_SECONDS are ignored:

  • With no config file, the container exits on startup with Failed to read config file.
  • With a config file present, conflicting env vars are silently ignored and the file values are used.

The Python proxy reads both, with env vars taking precedence over the file, and the docs document env var configuration. Deployments configured via env vars can't switch to the Rust image as-is.

Reproduction

docker run --rm \
  -e ENVIRONMENT_KEY_PAIRS='[{"server_side_key":"ser.abc","client_side_key":"abc"}]' \
  flagsmith/edge-proxy-rs:0.2.0
# Error: configuration error: Failed to read config file: No such file or directory (os error 2)

docker run --rm \
  -e ENVIRONMENT_KEY_PAIRS='[{"server_side_key":"ser.abc","client_side_key":"abc"}]' \
  flagsmith/edge-proxy:2.23.0
# starts and polls using client key "abc"

Expected

Same as the Python proxy: settings can be provided via environment variables, taking precedence over config.json.

Lingua principale
Rust
Stelle
3
Fork
1
Merge medio
2g 4h
PR unite (30g)
6

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Flagsmith/edge-proxy-rs

Tutte le issue di Flagsmith/edge-proxy-rs

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.