-
Notifications
You must be signed in to change notification settings - Fork 14
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
rewrite of SV-204392 #201
base: main
Are you sure you want to change the base?
rewrite of SV-204392 #201
Conversation
…ocess Signed-off-by: Emily Rodriguez <[email protected]>
Signed-off-by: Emily Rodriguez <[email protected]>
Signed-off-by: Emily Rodriguez <[email protected]>
Signed-off-by: Shivani Karikar <[email protected]>
…g the delta update, such as adding a ref tag, updating rule id, adding a nist id, or so on, not requiring logic change Signed-off-by: Emily Rodriguez <[email protected]>
…flow Signed-off-by: Shivani Karikar <[email protected]>
…d describe block updates Signed-off-by: Emily Rodriguez <[email protected]>
format using SAF CLI
Signed-off-by: Shivani Karikar <[email protected]>
Signed-off-by: Shivani Karikar <[email protected]>
Signed-off-by: Shivani Karikar <[email protected]>
…40445 Signed-off-by: Emily Rodriguez <[email protected]>
Signed-off-by: Emily Rodriguez <[email protected]>
Signed-off-by: Emily Rodriguez <[email protected]>
Signed-off-by: Shivani Karikar <[email protected]>
Signed-off-by: Shivani Karikar <[email protected]>
Signed-off-by: Shivani Karikar <[email protected]>
Signed-off-by: Shivani Karikar <[email protected]>
Signed-off-by: Shivani Karikar <[email protected]>
Signed-off-by: Shivani Karikar <[email protected]>
Signed-off-by: Sumaa Sayed <[email protected]>
Signed-off-by: Shivani Karikar <[email protected]>
Signed-off-by: Shivani Karikar <[email protected]>
Signed-off-by: Shivani Karikar <[email protected]>
Signed-off-by: Shivani Karikar <[email protected]>
Signed-off-by: Shivani Karikar <[email protected]>
Signed-off-by: Shivani Karikar <[email protected]>
Signed-off-by: Shivani Karikar <[email protected]>
Signed-off-by: Eugene Aronne <[email protected]>
Signed-off-by: Emily Rodriguez <[email protected]>
Signed-off-by: Emily Rodriguez <[email protected]>
Signed-off-by: Emily Rodriguez <[email protected]>
Signed-off-by: Emily Rodriguez <[email protected]>
…ontrol Signed-off-by: Emily Rodriguez <[email protected]>
Signed-off-by: Emily Rodriguez <[email protected]>
Remove input checking
… spun up rhel7 docker container it ended up processing 15k-ish files and creating 45k-ish tests. printing out a lot of debugging output that will be changed later. changed the inputs around to match the new interpretation of the control and got rid of the exception that we had in there for /etc/issue. Signed-off-by: Amndeep Singh Mann <[email protected]>
… COMMIT Signed-off-by: Amndeep Singh Mann <[email protected]>
^ this is a json output from running the new control against a plain old rhel7 docker container # spin up the image since the container needs to be running to do the magic
docker pull registry.access.redhat.com/rhel7:7.9-1011
docker run -it --rm registry.access.redhat.com/rhel7:7.9-1011
# run inspec (on my wsl box)
time docker run -it --rm -v "$(pwd):/share" -v /var/run/docker.sock:/var/run/docker.sock chef/inspec exec . --target docker://ca407406c83f --reporter=cli json:customresu
lts.json --input-file=kitchen.inputs.yml --chef-license=accept-silent --controls=SV-204392 |
…l be more false pass/fails cause of the ec2-user stuff but it's whatever Signed-off-by: Amndeep Singh Mann <[email protected]>
Signed-off-by: Amndeep Singh Mann <[email protected]>
…goes to maybe speed things up Signed-off-by: Amndeep Singh Mann <[email protected]>
^ the above but now skipping for any files specified in the packages that don't actually exist on disk for whatever reason. |
Signed-off-by: Amndeep Singh Mann <[email protected]>
Signed-off-by: Amndeep Singh Mann <[email protected]>
lol misleading runtime numbers - the subtests did manage to find actual findings tho. I think they were all file permissions/mode issues, and not the owner or group being wrong but I feel like those might come up in a more established box as opposed to the ones we were spinning up for testing that haven't had users exist in them. |
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.
Talked about this PR as a go-back during standup:
Todo:
- Reduce the total number of subtests by doing it per package overall and not per assessment type per file.
- As part of that put the listings of misconfigured files (and presumably the means through which they were misconfigured) in the message body of each subtest.
This a) removes all the positives which we don’t really care about, b) makes it easier to apply the fix text (which fixes it on the package level), and c) hopefully reduces the time-to-test.
resolves #200
takes a very long time but that's cause on my spun up rhel7 docker container it ended up processing 15k-ish files and creating 45k-ish tests. printing out a lot of debugging output that will be changed later.takes a highly variable amount of time depending on what 'rpm --verify' marks as being an issue. changed the inputs around to match the new interpretation of the control and got rid of the exception that we had in there for /etc/issue.steps to take before merge:
Signed-off-by: Amndeep Singh Mann [email protected]