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 new rule accounts_password_pam_pwquality_conf_retry #12888

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

vojtapolasek
Copy link
Collaborator

Description:

  • move rules which are mostly using pam_pwquality to separate group
  • create a new group for rules which strictly use /etc/security/pwquality.conf, this is owned by libpwquality
  • extend the key_value_pair_in_file template to support using XCCDF variable as a value source
  • update relevant macros

Rationale:

  • new rule

Review Hints:

  • add the rule accounts_password_pam_pwquality_conf_retry to some profile and run automatus tests

@vojtapolasek vojtapolasek added the New Rule Issues or pull requests related to new Rules. label Jan 23, 2025
@vojtapolasek vojtapolasek added this to the 0.1.76 milestone Jan 23, 2025
@Mab879 Mab879 self-assigned this Jan 23, 2025
@Mab879
Copy link
Member

Mab879 commented Jan 29, 2025

Please update stable profiles.

@Mab879
Copy link
Member

Mab879 commented Jan 30, 2025

@vojtapolasek @ggbecker This PR needs a rebase.

@vojtapolasek vojtapolasek force-pushed the new_rule_pquality_retry branch from c2faca5 to 094c351 Compare January 31, 2025 08:11
Copy link

github-actions bot commented Jan 31, 2025

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

Click here to see the full diff
New data stream is missing OVAL for rule 'xccdf_org.ssgproject.content_rule_accounts_password_pam_enforce_root'.
New content has different text for rule 'xccdf_org.ssgproject.content_rule_accounts_password_pam_retry'.
--- xccdf_org.ssgproject.content_rule_accounts_password_pam_retry
+++ xccdf_org.ssgproject.content_rule_accounts_password_pam_retry
@@ -233,12 +233,6 @@
 
 [reference]:
 A.11.SEC-RHEL3
-
-[reference]:
-RHEL-09-611010
-
-[reference]:
-SV-258091r1045185_rule
 
 [rationale]:
 Setting the password retry prompts that are permitted on a per-session basis to a low value

ansible remediation for rule 'xccdf_org.ssgproject.content_rule_accounts_password_pam_retry' differs.
--- xccdf_org.ssgproject.content_rule_accounts_password_pam_retry
+++ xccdf_org.ssgproject.content_rule_accounts_password_pam_retry
@@ -4,7 +4,6 @@
   tags:
   - CCE-83569-4
   - CJIS-5.5.3
-  - DISA-STIG-RHEL-09-611010
   - NIST-800-53-AC-7(a)
   - NIST-800-53-CM-6(a)
   - NIST-800-53-IA-5(4)
@@ -30,7 +29,6 @@
   tags:
   - CCE-83569-4
   - CJIS-5.5.3
-  - DISA-STIG-RHEL-09-611010
   - NIST-800-53-AC-7(a)
   - NIST-800-53-CM-6(a)
   - NIST-800-53-IA-5(4)
@@ -50,7 +48,6 @@
   tags:
   - CCE-83569-4
   - CJIS-5.5.3
-  - DISA-STIG-RHEL-09-611010
   - NIST-800-53-AC-7(a)
   - NIST-800-53-CM-6(a)
   - NIST-800-53-IA-5(4)
@@ -244,7 +241,6 @@
   tags:
   - CCE-83569-4
   - CJIS-5.5.3
-  - DISA-STIG-RHEL-09-611010
   - NIST-800-53-AC-7(a)
   - NIST-800-53-CM-6(a)
   - NIST-800-53-IA-5(4)
@@ -264,7 +260,6 @@
   tags:
   - CCE-83569-4
   - CJIS-5.5.3
-  - DISA-STIG-RHEL-09-611010
   - NIST-800-53-AC-7(a)
   - NIST-800-53-CM-6(a)
   - NIST-800-53-IA-5(4)
@@ -458,13 +453,12 @@
   tags:
   - CCE-83569-4
   - CJIS-5.5.3
-  - DISA-STIG-RHEL-09-611010
-  - NIST-800-53-AC-7(a)
-  - NIST-800-53-CM-6(a)
-  - NIST-800-53-IA-5(4)
-  - accounts_password_pam_retry
-  - configure_strategy
-  - low_complexity
-  - medium_disruption
-  - medium_severity
-  - no_reboot_needed
+  - NIST-800-53-AC-7(a)
+  - NIST-800-53-CM-6(a)
+  - NIST-800-53-IA-5(4)
+  - accounts_password_pam_retry
+  - configure_strategy
+  - low_complexity
+  - medium_disruption
+  - medium_severity
+  - no_reboot_needed

@vojtapolasek vojtapolasek force-pushed the new_rule_pquality_retry branch from 094c351 to 1b64881 Compare January 31, 2025 08:53
@vojtapolasek vojtapolasek requested a review from a team as a code owner January 31, 2025 08:53
Copy link
Contributor

@dodys dodys left a comment

Choose a reason for hiding this comment

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

hey @vojtapolasek, I believe the rebase didn't work well. For some reason it is including content from PR #12904 which is already merged into master.

@vojtapolasek vojtapolasek force-pushed the new_rule_pquality_retry branch from 92e3307 to 22ff4ba Compare January 31, 2025 12:26
@vojtapolasek
Copy link
Collaborator Author

Hello @dodys thanks for noticing. I fixed it.

Copy link

codeclimate bot commented Jan 31, 2025

Code Climate has analyzed commit 22ff4ba and detected 2 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 2

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 61.9% (0.0% change).

View more on Code Climate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Rule Issues or pull requests related to new Rules.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants