Comments (7)
@Nutomic would you like to open a PR to improve it?
from cis-docker-benchmark.
here is the diff (though i'm not sure what container_capadd should be)
diff --git a/sample_attributes.yml b/sample_attributes.yml
index 8392f1c..c3cb15d 100644
--- a/sample_attributes.yml
+++ b/sample_attributes.yml
@@ -4,9 +4,10 @@ registry_cert_path: /etc/docker/certs.d
registry_name: /etc/docker/certs.d/registry_hostname:port
registry_ca_file: /etc/docker/certs.d/registry_hostname:port/ca.crt
container_user: vagrant
-container_capadd: null
+container_capadd: NET_ADMIN,SYS_ADMIN
authorization_plugin: authz-broker
log_driver: syslog
log_opts: /syslog-address/
app_armor_profile: docker-default
selinux_profile: /label\:level\:s0-s0\:c1023/
+benchmark_version: 1.12.0
from cis-docker-benchmark.
Hi @Nutomic thank you for the feedback. The project includes a sample attributes file and you can execute it via:
# run profile on remote host via SSH with sudo and define attribute value
inspec exec cis-docker-benchmark --attrs sample_attributes.yml
It is mentioned in the readme but maybe not prominent enough.
from cis-docker-benchmark.
Right, I only looked at the first examples for running locally, and there is not mention how I can pass the attributes. It worked now, but I still had to edit the sample file. Would be good if it worked out of the box.
from cis-docker-benchmark.
Sorry but I dont have the time.
from cis-docker-benchmark.
Would it be possible to share your updated attributes within this issue?
from cis-docker-benchmark.
fixed in #61
from cis-docker-benchmark.
Related Issues (20)
- splitt controls in components
- rename control titles
- Update to CIS 1.13
- use own control number scheme HOT 1
- check the running daemon for the configuration HOT 1
- Commands in cis-docker-benchmark-5.22 and cis-docker-benchmark-5.23 take too long to execute HOT 2
- docker variable not defined HOT 1
- undefined method `downcase' for nil:NilClass HOT 8
- Test running docker via -t docker:// HOT 9
- load_with_context': undefined method `each' for nil:NilClass (NoMethodError) exception in cis-docker-benchmark-master/controls/container_runtime.rb:194 HOT 2
- Verify enable content trust per-shell or per-invocation check
- uploading cis docker profile to chef compliance HOT 2
- Having all controls be `impact 1.0` or `impact 0.0` makes the data less than useful HOT 3
- method_missing: undefined local variable or method docker HOT 1
- incompatible character encodings: UTF-8 and ASCII-8BIT HOT 3
- Implement latest CIS Benchmark
- Wrong placement of flag in command HOT 4
- Overuse of `describe docker.object(id) do`
- Control docker-4.7 fails when running tests on environment with redhat/ubi9-minimal
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cis-docker-benchmark.