Edit history

_FILE option for env-var based secrets is not respected has not been edited, so there are no earlier versions.

Current version | Original by glyph
Show

_FILE option for env-var based secrets is not respected

Reproduction steps

Run FLUXER_SVC_MODE=shard FLUXER_SVC_SHARD_ID=0 FLUXER_MEDIA_PROXY_ENDPOINT=http://localhost:8080 FLUXER_MEDIA_PROXY_SECRET_KEY_FILE=test.txt /path/to/fluxer-unfurl

Observed behaviour

Documentation states: "Any setting a Fluxer service reads for its configuration can come from a file instead, such as a Docker secret. Set the variable’s name with _FILE appended to the file’s path, and leave the variable itself empty." Starting an unfurl service in shard mode with FLUXER_MEDIA_PROXY_SECRET_KEY_FILE set fails with
thread 'main' (4024962) panicked at fluxer_unfurl/src/shard_impl.rs:47:17:
media proxy endpoint configured without FLUXER_MEDIA_PROXY_SECRET_KEY: http://localhost:8080

Build information

Local build from rev 973aaced96098b77b8dd58c29405905bc999cd5a

Platform

Self-hosting