Skip to content

Commit acc84e0

Browse files
authored
Merge pull request #190 from vielmetti/patch-1
add logging warning to paranoid.md
2 parents 9d1c90c + 6028a2b commit acc84e0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/paranoid.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ EasyRSA will generate 4096 bit RSA keys when the `-e EASYRSA_KEY_SIZE=4096` argu
3636
docker run -e EASYRSA_KEY_SIZE=4096 -v $OVPN_DATA:/etc/openvpn --rm -it kylemanna/openvpn ovpn_initpki
3737
docker run -e EASYRSA_KEY_SIZE=4096 -v $OVPN_DATA:/etc/openvpn --rm -it kylemanna/openvpn easyrsa build-client-full CLIENTNAME nopass
3838

39+
## Logging and stdout
40+
41+
Because you are running within Docker, remember that any command that generates output to stdout may also log that output through Docker's log-driver mechanism. That may mean that e.g. keying material generated by `ovpn_getclient` will be logged somewhere that you don't want it to be logged.
42+
43+
A simple way to avoid having Docker log output for a given command is to run with `--log-driver=none`, e.g
44+
45+
docker run -v $OVPN_DATA:/etc/openvpn --log-driver=none --rm kylemanna/openvpn ovpn_getclient USER > USER.ovpn
46+
3947
## Additional Resources
4048

4149
Have a look at the [Applied-Crypto-Hardening](https://github.com/BetterCrypto/Applied-Crypto-Hardening/tree/master/src/configuration/VPNs/OpenVPN) project for more examples.

0 commit comments

Comments
 (0)