docker-openvpn-client icon indicating copy to clipboard operation
docker-openvpn-client copied to clipboard

fix detection when AUTH_SECRET is empty

Open cpainchaud opened this issue 1 year ago • 3 comments

cpainchaud avatar May 23 '23 11:05 cpainchaud

In which situations does the original test not work?

On Tue, May 23, 2023 at 6:51 AM Christophe Painchaud < @.***> wrote:


You can view, comment on, or merge this pull request online at:

https://github.com/wfg/docker-openvpn-client/pull/108 Commit Summary

File Changes

(1 file https://github.com/wfg/docker-openvpn-client/pull/108/files)

Patch Links:

  • https://github.com/wfg/docker-openvpn-client/pull/108.patch
  • https://github.com/wfg/docker-openvpn-client/pull/108.diff

— Reply to this email directly, view it on GitHub https://github.com/wfg/docker-openvpn-client/pull/108, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFJCPA4BDECCLOJTZN5YCHLXHSQERANCNFSM6AAAAAAYLYULGI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

wfg avatar May 24 '23 15:05 wfg

If I put no AUTH_SECRET when I created the container (I put credentials in the opvn config file) then this test will fail and will force the use of --auth-user-pass" "/run/secrets/$AUTH_SECRET" which is obviously why this test was put in place I guess

for the record this is how I create my container:

  --network docker1 \
  --name=openvpn \
  --cap-add=NET_ADMIN \
  --device=/dev/net/tun \
  --volume /xxxxxxxxx/config:/config \
  --restart unless-stopped \
  -e ALLOWED_SUBNETS=xxxxxx/24 \
  -e CONFIG_FILE=default.ovpn \
  -e TZ=Europe/Paris \
  ghcr.io/xxxxxxx/openvpn-client

cpainchaud avatar May 24 '23 15:05 cpainchaud

any new on this one @wfg ?

thank you

cpainchaud avatar Aug 02 '23 08:08 cpainchaud