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

Add ansible remediation for UBTU-20-010075 #11069

Conversation

dexterle
Copy link
Contributor

@dexterle dexterle commented Sep 7, 2023

Description:

  • Fix UBTU-20-010075
  • Add Ansible remediation for accounts_passwords_pam_faildelay_delay

Rationale:

Review Hints:

Build the product:

./build_product ubuntu2004

To test these changes with Ansible:

ansible-playbook build/ansible/ubuntu2004-playbook-stig.yml --tags "DISA-STIG-UBTU-20-010075"

Checkout Manual STIG OVAL definitions, and use software like DISA STIG Viewer to view definitions.

git checkout dexterle:add-manual-stig-ubtu-20-v1r9

This STIG can be tested with the latest Ubuntu 2004 Benchmark SCAP. For reference, please review the latest artifacts: https://public.cyber.mil/stigs/downloads/

@openshift-ci openshift-ci bot added do-not-merge/work-in-progress Used by openshift-ci bot. needs-ok-to-test Used by openshift-ci bot. labels Sep 7, 2023
@openshift-ci
Copy link

openshift-ci bot commented Sep 7, 2023

Hi @dexterle. Thanks for your PR.

I'm waiting for a ComplianceAsCode member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@github-actions
Copy link

github-actions bot commented Sep 7, 2023

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

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

Fedora Testing Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

@marcusburghardt marcusburghardt requested review from a team September 8, 2023 07:04
@marcusburghardt marcusburghardt added Ansible Ansible remediation update. SLES SUSE Linux Enterprise Server product related. Ubuntu Ubuntu product related. labels Sep 8, 2023
@marcusburghardt marcusburghardt added this to the 0.1.70 milestone Sep 8, 2023
@dodys dodys self-assigned this Sep 8, 2023
@dodys dodys added the STIG STIG Benchmark related. label Sep 8, 2023
@dexterle dexterle marked this pull request as ready for review September 11, 2023 13:20
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Used by openshift-ci bot. label Sep 11, 2023
Copy link
Contributor

@teacup-on-rockingchair teacup-on-rockingchair left a comment

Choose a reason for hiding this comment

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

Nice improvement 🙇 have nothing to add besides @marcusburghardt note

@dodys dodys added ok-to-test Used by openshift-ci bot. and removed needs-ok-to-test Used by openshift-ci bot. labels Sep 13, 2023
This commit will consolidate the bash remediations into a singular shared bash remediation.
@dexterle dexterle force-pushed the add-remediation-ubtu-20-010075 branch from 34ca7fa to 6fd98ca Compare September 15, 2023 16:59
@github-actions
Copy link

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

Click here to see the full diff
New datastream is missing ansible remediation for rule 'xccdf_org.ssgproject.content_rule_accounts_passwords_pam_faildelay_delay'.

@codeclimate
Copy link

codeclimate bot commented Sep 15, 2023

Code Climate has analyzed commit 6fd98ca 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.8% (0.0% change).

View more on Code Climate.

@dodys
Copy link
Contributor

dodys commented Sep 18, 2023

/retest

@Mab879 Mab879 modified the milestones: 0.1.70, 0.1.71 Oct 2, 2023
@dodys
Copy link
Contributor

dodys commented Oct 19, 2023

@dexterle I wonder if we can change this PR to instead use the bash and ansible remediation from the template. Those were added after both Ubuntu's and Suse's remediation already existed. It might be the time to consolidate everything into the template.
@teacup-on-rockingchair if you could also test using the template remediation on your side ^
I will share my results later

@dodys
Copy link
Contributor

dodys commented Oct 20, 2023

@dexterle I wonder if we can change this PR to instead use the bash and ansible remediation from the template. Those were added after both Ubuntu's and Suse's remediation already existed. It might be the time to consolidate everything into the template. @teacup-on-rockingchair if you could also test using the template remediation on your side ^ I will share my results later

The template seems enough and the tests are still passing

@teacup-on-rockingchair
Copy link
Contributor

@dexterle I wonder if we can change this PR to instead use the bash and ansible remediation from the template. Those were added after both Ubuntu's and Suse's remediation already existed. It might be the time to consolidate everything into the template. @teacup-on-rockingchair if you could also test using the template remediation on your side ^ I will share my results later

The template seems enough and the tests are still passing

@dexterle I wonder if we can change this PR to instead use the bash and ansible remediation from the template. Those were added after both Ubuntu's and Suse's remediation already existed. It might be the time to consolidate everything into the template. @teacup-on-rockingchair if you could also test using the template remediation on your side ^ I will share my results later

Works ok on my setup for SLES 👍

@vojtapolasek vojtapolasek modified the milestones: 0.1.71, 0.1.72 Nov 28, 2023
@marcusburghardt marcusburghardt modified the milestones: 0.1.72, 0.1.73 Jan 29, 2024
@vojtapolasek vojtapolasek modified the milestones: 0.1.73, 0.1.74 Apr 30, 2024
@Mab879 Mab879 modified the milestones: 0.1.74, 0.1.75 Jul 29, 2024
Copy link

openshift-ci bot commented Jul 30, 2024

@dexterle: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/4.16-images 6fd98ca link true /test 4.16-images
ci/prow/4.12-images 6fd98ca link true /test 4.12-images
ci/prow/4.17-images 6fd98ca link true /test 4.17-images

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@jan-cerny
Copy link
Collaborator

ping

@dodys
Copy link
Contributor

dodys commented Aug 2, 2024

dexterle reached out last week about continuing work on this PRs, and I've asked to open new ones for a clean state. Therefore closing this one.

@dodys dodys closed this Aug 2, 2024
@Mab879 Mab879 removed this from the 0.1.75 milestone Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ansible Ansible remediation update. ok-to-test Used by openshift-ci bot. SLES SUSE Linux Enterprise Server product related. STIG STIG Benchmark related. Ubuntu Ubuntu product related.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants