[Config Support]: #18161
Describe the problem you are havingI am trying to use Docker secrets with Frigate 0.15.0 to securely inject the RTSP password into the configuration file using environment variable substitution. The secret file Substitution only works if I hardcode the password in the config file. All attempts to use secrets fail despite the fact that Frigate appears to support reading Steps to reproduce
VersionFrigate 0.15.0-6cb5cfb Frigate config filemqtt: {}
cameras:
ezviz_ty2:
ffmpeg:
inputs:
- path: "rtsp://admin:${FRIGATE_RTSP_PASSWORD}@192.168.1.183:554/h264/ch01/main"
roles:
- detect
- record
detect:
width: 1920
height: 1080
fps: 5
record:
enabled: true
retain:
days: 2
version: 0.15-1Relevant Frigate log output[2025-05-11 10:16:37] ffmpeg.ezviz_ty2.detect ERROR : [rtsp @ ...] method DESCRIBE failed: 401 Unauthorized
[2025-05-11 10:16:37] ffmpeg.ezviz_ty2.detect ERROR : Error opening input file rtsp://*:*@192.168.1.183:554/h264/ch01/main.Relevant go2rtc log outputNo relevant entries — issue is on Frigate’s side before go2rtc usage.Frigate statsNo response Operating systemHome Assistant OS Install methodDocker Compose docker-compose file or Docker CLI commandversion: '3.8'
services:
frigate:
image: ghcr.io/blakeblackshear/frigate:stable
deploy:
replicas: 1
restart_policy:
condition: on-failure
secrets:
- FRIGATE_RTSP_PASSWORD
volumes:
- /etc/localtime:/etc/localtime:ro
- ./config:/config
- ./media:/media
- type: tmpfs
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "5000:5000"
secrets:
FRIGATE_RTSP_PASSWORD:
external: trueObject DetectorCPU (no coral) Screenshots of the Frigate UI's System metrics pagesNo response Any other information that may be helpfulNo response |
Replies: 3 comments 1 reply
This is done to hide the password, * is not what is actually used |
|
In your config file, you should not be specifying a See the official docs: https://docs.frigate.video/configuration/#environment-variable-substitution |
|
Can't believe i spent so much time on trying solving it when it was that mistake, thank you so much for looking into it and spotting it right away! |
In your config file, you should not be specifying a
$before any environment variables.See the official docs: https://docs.frigate.video/configuration/#environment-variable-substitution