_FILE option for env-var based secrets is not respected

(#3854) Bug Closed: Fixed self-hosting

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

  1. The pull request fluxer#1421 mentions this post Merged

3 comments

Sign in with Fluxer to comment and vote.
Comment by Rex
RexSystem 1 vote
Status changed from Needs triage to Awaiting confirmation
Services now read secrets such as FLUXER_MEDIA_PROXY_SECRET_KEY from the matching _FILE variable.
Comment by Rex
RexSystem 1 vote
Status changed from Awaiting confirmation to Fixed
The reporter confirmed this works on a newer build.
Comment by glyph
glyph OP1 vote
Confirmed fixed on rev 4194525933c0facdd4d7c96f325713f1a8ef927f