-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.7 false positive when log_opt set #498
Comments
Thanks for creating this issue @dhrapson, I'll have a look as soon as possible. |
Hello @konstruktoid. Wanted to notify you that this fix is not working as expected unfortunately. It now incorrectly work with 2.7 check and not providing positive results at all with some configuration of daemon.json.
I have such configuration of daemon.json and then
Code will return error |
For me I solved issue like this: |
Yeah, the drawbacks of parsing json using shell. |
I'm using this excellent utility to assess compliance. We set the following in our /etc/docker/daemon.json:
Doing this causes check_2_7 to trigger incorrectly because of the logic in this line:
docker-bench-security/tests/2_docker_daemon_configuration.sh
Line 157 in cd1619c
The output is
[WARN] * Docker daemon currently listening on TCP without TLS
when it is not listening on TCP at all.The text was updated successfully, but these errors were encountered: