How to use secrets within the value

Greetings,
i have this config how can i insert secret variable here?

    ffmpeg:
      inputs:
        - path: rtsp://<username>:<password>@192.168.5.31:554/cam/realmonitor?channel=1&subtype=0&authbasic=

put the URL in the secret

i.e.

[secrets.yaml]
ffmpeg_camera1: rtsp://<username>:<password>@192.168.5.31:554/cam/realmonitor?channel=1&subtype=0&authbasic=<---redacted--->

and then

    ffmpeg:
      inputs:
        - path: !secret ffmpeg_camera1

PS> You might want to change your password as the authbasic= token you’ve included is the BASE64 encoded password which can very easily be decoded https://www.base64decode.org/

2 Likes

Thank you, nah its fine, its closed system and the password is unique. If i can ask, remove from your post thats enough.
THank you very much, didn’t realise to put everything there xD :smiley: