In Docker CE and EE before 18.09.8 (as well as Docker EE before 17.06.2-ee-23 and 18.x before 18.03.1-ee-10), Docker Engine in debug mode may sometimes add secrets to the debug log. This applies to a scenario where docker stack deploy is run to redeploy a stack that includes (non external) secrets. It potentially applies to other API users of the stack API if they resend the secret.
https://www.debian.org/security/2019/dsa-4521
https://security.netapp.com/advisory/ntap-20190828-0003/
https://seclists.org/bugtraq/2019/Sep/21
https://docs.docker.com/engine/release-notes/
http://www.securityfocus.com/bid/109253
http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00084.html