-
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
Issue for item 3.9 to 3.14 on v1.3.5 #408
Comments
Thanks for reporting this @zshrine, I'll have a look as soon as possible. |
Thank you! I modified the script as per below to only get the json value. |
I'm not getting the same results as you, sorry to say.
and the result was correct:
|
My apologies. The daemon.json i provided was wrong. The actual daemon.json is as below: "tlscacert":"/var/lib/docker/certs/ca.pem", I have tested according to your sample above and it is parsing the value correctly. Seems like the space missing between json key and value is what causes the values to be parsed wrongly in my environment. In my daemon.json, there was no space between the key and value. |
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
Could you test #409? |
I tested. It is working as per expected. Thanks.
The json results for 3.9 to 3.14 {"id": "3.9", "desc": "Ensure that TLS CA certificate file ownership is set to root:root", "result": "PASS"},
{"id": "3.10", "desc": "Ensure that TLS CA certificate file permissions are set to 444 or more restrictive", "result": "PASS"},
{"id": "3.11", "desc": "Ensure that Docker server certificate file ownership is set to root:root", "result": "PASS"},
{"id": "3.12", "desc": "Ensure that Docker server certificate file permissions are set to 444 or more restrictive", "result": "PASS"},
{"id": "3.13", "desc": "Ensure that Docker server certificate key file ownership is set to root:root", "result": "PASS"},
{"id": "3.14", "desc": "Ensure that Docker server certificate key file permissions are set to 400", "result": "PASS"}, |
Merged. |
Closing since it seems to work after merge. |
Hi,
I have configured my daemon.json as per below snippet.
When I run a scan on the base host, my log shows the below.
I did an echo of $tlscacert and got the below.
In 3_docker_daemon_configuration_files.sh, line 263
if [ -f "$tlscacert" ]; then
will definitely fail since it is checking for the full string oftlscacert:/var/lib/docker/certs/ca.pem
instead of just/var/lib/docker/certs/ca.pem
.Thanks.
The text was updated successfully, but these errors were encountered: