-
Notifications
You must be signed in to change notification settings - Fork 171
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
What is correct tag for rules 1.1.[3-7].1? #244
Comments
Hi @boris-stojnev, The second question, can the run tag be specified with the audit? This is a harder problem to solve but we do have something that should help with this. In the defaults/main.yml you have the two variables rhel8cis_level_1 and rhel8cis_level_2 that are intended to help with this. These variables don't tie into any of the remediation tasks (Ansible role tasks), but what they are used for is toggling the built-in audit tasks. When you run the audit from the remediation role (Ansible role) there is a task that copies all of the variables you have set in Ansible to be variables in the audit. So if you disabled section2 via an extra var using the rhel8cis_section2 variable that will also disable the checks for section2 in the audit. This is how the rhel8cis_level_1 and rhel8cis_level_2 toggles works, using a variable to help set the audit settings. Since the Ansible run/skip tags can't be passed along to the audit tool, these two variables in defaults/main.yml was implemented to help with that. Let me know if that answers the question. it's a bit of a confusing issue/situation so the explanation probably is a bit confusing. -George |
@georgenalen thanks for such a quick answer. Ah, sorry for the confusion here. Everywhere I wrote level1 I meant level1-server, and everywhere I wrote level2 I meant level2-server. It was just a slip of the tongue. To be more precise with an example, I’m running with tag level1-server, but tasks 1.1.3.2, 1.1.3.3, 1.1.3.4 are skipped, because So the question here is, should we mark 1.1.3.1 with level1-server as well, or should we change the condition statement in 1.1.3.2, 1.1.3.3, 1.1.3.4. All of this can be said for other tasks mentioned in my first post. For the second question, yes I understand and I’m using
1.1.7.4 and 1.1.7.5 are marked with
in the Audit, but I’m seeing them in the audit post scan as failed. Maybe this is going to we fixed with the first question resolving. |
@boris-stojnev Once I get the changes for the problem with the variable sorted I will circle back to the audit side. Thanks for getting back so quick. -George |
Signed-off-by: George Nalen <georgen@mindpointgroup.com>
I have the fixes in for the first set of questions, I'll work on merging that into devel by tomorrow. The other question about the audit is an issue with the audit itself. The way those checks are written are as if they are all level 1, however they are a mix so the "if" usage with that level 1/2 variable needs to be updated to address that. So I think the issues here are resolved, I will work on getting those addressed on the audit side. -George |
Thank you sir. Looks good. Regarding Audit, maybe it’s better to open a separate ticket. Just for the sake of conversation, let me post here. One more thing, for enhancement, because you didn’t predict that someone may put a label on partitions, so they will not end with ')' in mount -l command output :)
|
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
Thank you again for this issue, i believe that these have now been addressed in both this repo and the audit repo. They have both had releases against them. many thanks uk-bolly |
Question
I'm not sure if this is a bug or not. What is correct behavior? Should tasks in CIS mentioned below be tagged with level1 or level2?
Can run tag be specified with Audit, because Audit is reporting failed tasks for level2, when CIS is only run against level1?
In RHEL8-CIS several tasks with tag level1-server will be skipped while running with tag level1-server due to condition not true.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: