You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
would like to include the mangement api key as docker secret into the container instead of having to expose the password in the environments section of my docker-compose file.
I would imaging using an environments variable like OPENVPNMONITOR_SITES_<INDEX>_PASSWORD_FILE=/run/secrets/mngmt-key to point to the secret.
Since conf.d does not support multiple backends we would need to iterate the environment variables as shown here and call a function like this to expose the correct env-var before calling confd in entrypoint.sh.
Also the key should be ignored in confd/templates/openvpn-monitor.conf.tmpl#L25 (or it needs a name not starting with OPENVPNMONITOR_SITES).
Hi,
would like to include the mangement api key as docker secret into the container instead of having to expose the password in the
environments
section of my docker-compose file.I would imaging using an environments variable like
OPENVPNMONITOR_SITES_<INDEX>_PASSWORD_FILE=/run/secrets/mngmt-key
to point to the secret.Since conf.d does not support multiple backends we would need to iterate the environment variables as shown here and call a function like this to expose the correct env-var before calling
confd
inentrypoint.sh
.Also the key should be ignored in
confd/templates/openvpn-monitor.conf.tmpl#L25
(or it needs a name not starting withOPENVPNMONITOR_SITES
).docker-openvpn-monitor/confd/templates/openvpn-monitor.conf.tmpl
Lines 24 to 26 in 889b784
I can create a PR for this if you want to implement it as suggested.
The text was updated successfully, but these errors were encountered: