Skip to content
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

Fix ansible remediation of configure_ssh_crypto_policy #11008

Conversation

ggbecker
Copy link
Member

Description:

Rationale:

@ggbecker ggbecker added Ansible Ansible remediation update. STIG STIG Benchmark related. labels Aug 22, 2023
@ggbecker ggbecker added this to the 0.1.70 milestone Aug 22, 2023
@github-actions
Copy link

Start a new ephemeral environment with changes proposed in this pull request:

rhel8 (from CTF) Environment (using Fedora as testing environment)
Open in Gitpod

Fedora Testing Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

@github-actions
Copy link

This datastream diff is auto generated by the check Compare DS/Generate Diff

Click here to see the full diff
ansible remediation for rule 'xccdf_org.ssgproject.content_rule_configure_ssh_crypto_policy' differs.
--- xccdf_org.ssgproject.content_rule_configure_ssh_crypto_policy
+++ xccdf_org.ssgproject.content_rule_configure_ssh_crypto_policy
@@ -2,7 +2,7 @@
   lineinfile:
     dest: /etc/sysconfig/sshd
     state: absent
-    regexp: ^\s*(?i)CRYPTO_POLICY.*$
+    regexp: ^(?i)\s*CRYPTO_POLICY.*$
   tags:
   - CCE-80939-2
   - DISA-STIG-RHEL-08-010287

@codeclimate
Copy link

codeclimate bot commented Aug 22, 2023

Code Climate has analyzed commit 2592332 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 53.3% (0.0% change).

View more on Code Climate.

@marcusburghardt marcusburghardt requested a review from Mab879 August 22, 2023 12:03
@Mab879 Mab879 self-assigned this Aug 22, 2023
@Mab879
Copy link
Member

Mab879 commented Aug 22, 2023

Automatus tests pass locally in a VM.

Copy link
Member

@Mab879 Mab879 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Mab879 Mab879 merged commit fa5de55 into ComplianceAsCode:master Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ansible Ansible remediation update. STIG STIG Benchmark related.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Formatting error with RHEL8 configure_ssh_crypto_policy
2 participants