-
Notifications
You must be signed in to change notification settings - Fork 119
update to CIS Benchmark 1.12, controls 1.1 to 2.16 #19
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
Conversation
Signed-off-by: Patrick Münch <patrick.muench1111@gmail.com>
Signed-off-by: Patrick Münch <patrick.muench1111@gmail.com>
Signed-off-by: Patrick Münch <patrick.muench1111@gmail.com>
Signed-off-by: Patrick Münch <patrick.muench1111@gmail.com>
| ref 'https://docs.docker.com/installation/' | ||
| ref 'https://github.com/docker/docker/releases/latest' | ||
|
|
||
| docker_server_version = command('docker version --format \'{{.Server.Version}}\'').stdout |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am going to add docker.version to inspec/inspec#1566. This should make life easier in future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would result in
describe docker.version do
it { should cmp >= '1.13.1'}
end
then. We can use this syntax, once the PR has been merged. We should not block this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, this is a great solution and makes it easier
controls/docker_host_os_level1.rb
Outdated
| describe auditd_rules do | ||
| its(:lines) { should include('-w /usr/bin/docker -p rwxa -k docker') } | ||
| end | ||
| describe service('auditd') do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it always auditd for the supported operating systems?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes i agree, i test now with debian and will extened this to the other operating systems
|
i will need some time to complete this pr. sorry for a long time running pr |
Signed-off-by: Patrick Münch <patrick.muench1111@gmail.com>
Signed-off-by: Patrick Münch <patrick.muench1111@gmail.com>
Signed-off-by: Patrick Münch <patrick.muench1111@gmail.com>
Signed-off-by: Patrick Münch <patrick.muench1111@gmail.com>
Signed-off-by: Patrick Münch <patrick.muench1111@gmail.com>
Signed-off-by: Patrick Münch <patrick.muench1111@gmail.com>
…key, also update README.md Signed-off-by: Patrick Münch <patrick.muench1111@gmail.com>
Signed-off-by: Patrick Münch <patrick.muench1111@gmail.com>
Signed-off-by: Patrick Münch <patrick.muench1111@gmail.com>
Signed-off-by: Patrick Münch <patrick.muench1111@gmail.com>
chris-rock
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome improvement @atomic111 I have two minor requests
controls/docker_level2.rb
Outdated
| ref 'docker swarm init', url: 'https://docs.docker.com/engine/reference/commandline/swarm_init/' | ||
|
|
||
| describe command('docker info') do | ||
| its('stdout') { should include 'Swarm: inactive' } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need a variable for this request?
| end | ||
| end | ||
|
|
||
| control 'cis-docker-benchmark-2.15' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we externalize this into a swarm.rb, so that we get our normal component structure into our benchmark?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes i agree, but we should include this in the 2.0 release. i opened a issue #21
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @atomic111
Signed-off-by: Patrick Münch <patrick.muench1111@gmail.com>
update the CIS benchmark to 1.12 and add the tags to the controls
this will solve the issue #11 and #8
i will start with the debian and ubuntu test.
right now it is not tested for centos