Skip to content

debian12: allow yescrypt and SHA512 for CIS rule 5.4.1.4 - #15164

Merged
jan-cerny merged 1 commit into
ComplianceAsCode:masterfrom
cristianchiriac:debian12-cis-password-hashing
Oct 19, 2026
Merged

jan-cerny merged 1 commit into
ComplianceAsCode:masterfrom
cristianchiriac:debian12-cis-password-hashing

Conversation

@cristianchiriac

Copy link
Copy Markdown
Contributor

Description:

  • Add a cis_debian12: YESCRYPT|SHA512 option to var_password_hashing_algorithm.
  • Select it for control 5.4.1.4 in controls/cis_debian12.yml, and drop the note "Rule allows either SHA512 or YESCRYPT", which the selector now implements.

Rationale:

Review Hints:

  • The OVAL check pattern-matches the ENCRYPT_METHOD value against the variable, so YESCRYPT|SHA512 accepts both. The bash remediation already takes the first |-separated value, so it still sets YESCRYPT, unchanged from before.
  • I checked that controls/cis_debian12.yml loads with ssg.controls.Policy and that 5.4.1.4 now resolves to var_password_hashing_algorithm: cis_debian12. tests/unit/ssg-module/test_variables.py passes.
  • I didn't build the Debian 12 data stream or run the Automatus test scenarios locally. The rule's existing default_multivalue*.sh scenarios cover multi-value selectors.

Debian 12 ships /etc/login.defs with ENCRYPT_METHOD SHA512, and the CIS
control note says the rule allows either SHA512 or YESCRYPT, but the control
selected var_password_hashing_algorithm=yescrypt, so a default system failed
5.4.1.4. Add a cis_debian12 selector (YESCRYPT|SHA512) like cis_debian13 and
the Ubuntu benchmarks use, and drop the now redundant note.

Fixes #15151
@openshift-ci openshift-ci Bot added the needs-ok-to-test Used by openshift-ci bot. label Oct 5, 2026
@openshift-ci

openshift-ci Bot commented Oct 5, 2026

Copy link
Copy Markdown

Hi @cristianchiriac. 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.

Details

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.

@jan-cerny jan-cerny added this to the 0.1.83 milestone Oct 19, 2026
@jan-cerny jan-cerny added the Debian Debian product related. label Oct 19, 2026
@jan-cerny jan-cerny self-assigned this Oct 19, 2026
@jan-cerny
jan-cerny merged commit 37f9873 into ComplianceAsCode:master Oct 19, 2026
61 of 62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Debian Debian product related. needs-ok-to-test Used by openshift-ci bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Debian 12 CIS 5.4.1.4: set_password_hashing_algorithm_logindefs fails ENCRYPT_METHOD SHA512, although the control allows SHA512 or YESCRYPT

2 participants