Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add rules for custom crypto policy sub modules#14050

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
jan-cerny wants to merge8 commits intoComplianceAsCode:master
base:master
Choose a base branch
Loading
fromjan-cerny:RHEL-111896

Conversation

@jan-cerny
Copy link
Collaborator

Description:

This PR adds new rules to RHEL 8 CIS profiles:

  • crypto_sub_policy_sshd_ciphers
  • crypto_sub_policy_sshd_macs
  • crypto_sub_policy_sshd_cbc
  • crypto_sub_policy_weak_macs

These rules are templated by a template that is also introduced in this PR.

All rules configure or check a new sub module for system wide crypto policy.

Rationale:

Resolves:https://issues.redhat.com/browse/RHEL-111896

Fixes TODOs and aligns the rules with RHEL 8 CIS Benchmark version 4.0.0.

Review Hints:

@jan-cernyjan-cerny added this to the0.1.79 milestoneOct 27, 2025
@jan-cernyjan-cerny added bugfixFixes to reported bugs. RHEL8Red Hat Enterprise Linux 8 product related. CISCIS Benchmark related. labelsOct 27, 2025
@openshift-ciopenshift-cibot added the do-not-merge/work-in-progressUsed by openshift-ci bot. labelOct 27, 2025
@openshift-ci
Copy link

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with/test all

@openshift-merge-robotopenshift-merge-robot added the needs-rebaseUsed by openshift-ci bot. labelOct 27, 2025
Adds a new rule crypto_sub_policy_sshd_ciphers that configure a customcrypto sub policy module for SSHD. The new rule is very similar tofips_custom_stig_sub_policy. It configures a new module for systemwide crypto policies that reduces the set of usable ciphers in sshd.This change aligns the RHEL 8 CIS profiles with theCIS RHEL 8 Benchmark v 4.0.0 requirement 5.1.8.Resolves:https://issues.redhat.com/browse/RHEL-111896
We prevent future code duplication by extracting the common ruledescription and OCIL text to new Jinja macros describe_crypto_sub_policyand ocil_crypto_sub_policy. These macros can be used in rules thatuse the crypto_sub_policy template.
The rule crypto_sub_policy_sshd_macs implements the approachfor configuring strong MACs as requested in CIS Benchmark forRHEL 8 version 4.0.0.
The rule crypto_sub_policy_sshd_cbc implements the approachfor disabling CBC ciphers using a custom crypto policy submodule as requested in requirement 1.6.4 in CIS Benchmarkfor RHEL 8 version 4.0.0.
The rule crypto_sub_policy_weak_macs implements the approachfor disabling MACs using a custom crypto policy submodule as requested in requirement 1.6.3 in CIS Benchmarkfor RHEL 8 version 4.0.0.
jan-cerny added a commit to jan-cerny/scap-security-guide that referenced this pull requestOct 30, 2025
Add a new rule `crypto_sub_policies_cis_rhel8` that configures multiplecustom crypto sub policy modules for RHEL 8 CIS. The new rule is verysimilar to `fips_custom_stig_sub_policy`. It configures new modules forsystem wide crypto policies that reduces the set of usable ciphers insshd, MACs, and others.The rule is templated by a new template `crypto_sub_policies` that isalso introduced in this commit so that the code can be reused in othersimilar rules.This change aligns the RHEL 8 CIS profiles in CaC with the CIS RHEL 8Benchmark v4.0.0 requirements. All crypto requirements of this profileare now covered by this single rule. The reason for merging all of thesub module configuration is to prevent overriding crypto policysettings. If there would be multiple rules, each of them would callthe `update-crypto-policies` commands with a different sub policy,overriding each other.This supersedesComplianceAsCode#14050Resolves:https://issues.redhat.com/browse/RHEL-111896
@jan-cerny
Copy link
CollaboratorAuthor

This PR has been superseded by#14066

jan-cerny added a commit to jan-cerny/scap-security-guide that referenced this pull requestOct 31, 2025
Add a new rule `crypto_sub_policies_cis_rhel8` that configures multiplecustom crypto sub policy modules for RHEL 8 CIS. The new rule is verysimilar to `fips_custom_stig_sub_policy`. It configures new modules forsystem wide crypto policies that reduces the set of usable ciphers insshd, MACs, and others.The rule is templated by a new template `crypto_sub_policies` that isalso introduced in this commit so that the code can be reused in othersimilar rules.This change aligns the RHEL 8 CIS profiles in CaC with the CIS RHEL 8Benchmark v4.0.0 requirements. All crypto requirements of this profileare now covered by this single rule. The reason for merging all of thesub module configuration is to prevent overriding crypto policysettings. If there would be multiple rules, each of them would callthe `update-crypto-policies` commands with a different sub policy,overriding each other.This supersedesComplianceAsCode#14050Resolves:https://issues.redhat.com/browse/RHEL-111896
jan-cerny added a commit to jan-cerny/scap-security-guide that referenced this pull requestNov 3, 2025
Add a new rule `crypto_sub_policies_cis_rhel8` that configures multiplecustom crypto sub policy modules for RHEL 8 CIS. The new rule is verysimilar to `fips_custom_stig_sub_policy`. It configures new modules forsystem wide crypto policies that reduces the set of usable ciphers insshd, MACs, and others.The rule is templated by a new template `crypto_sub_policies` that isalso introduced in this commit so that the code can be reused in othersimilar rules.This change aligns the RHEL 8 CIS profiles in CaC with the CIS RHEL 8Benchmark v4.0.0 requirements. All crypto requirements of this profileare now covered by this single rule. The reason for merging all of thesub module configuration is to prevent overriding crypto policysettings. If there would be multiple rules, each of them would callthe `update-crypto-policies` commands with a different sub policy,overriding each other.This supersedesComplianceAsCode#14050Resolves:https://issues.redhat.com/browse/RHEL-111896
jan-cerny added a commit to jan-cerny/scap-security-guide that referenced this pull requestNov 5, 2025
Add a new rule `crypto_sub_policies_cis_rhel8` that configures multiplecustom crypto sub policy modules for RHEL 8 CIS. The new rule is verysimilar to `fips_custom_stig_sub_policy`. It configures new modules forsystem wide crypto policies that reduces the set of usable ciphers insshd, MACs, and others.The rule is templated by a new template `crypto_sub_policies` that isalso introduced in this commit so that the code can be reused in othersimilar rules.This change aligns the RHEL 8 CIS profiles in CaC with the CIS RHEL 8Benchmark v4.0.0 requirements. All crypto requirements of this profileare now covered by this single rule. The reason for merging all of thesub module configuration is to prevent overriding crypto policysettings. If there would be multiple rules, each of them would callthe `update-crypto-policies` commands with a different sub policy,overriding each other.This supersedesComplianceAsCode#14050Resolves:https://issues.redhat.com/browse/RHEL-111896
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@matusmarhefkamatusmarhefkaAwaiting requested review from matusmarhefkamatusmarhefka will be requested when the pull request is marked ready for reviewmatusmarhefka is a code owner

@Mab879Mab879Awaiting requested review from Mab879Mab879 will be requested when the pull request is marked ready for reviewMab879 is a code owner

@vojtapolasekvojtapolasekAwaiting requested review from vojtapolasekvojtapolasek will be requested when the pull request is marked ready for reviewvojtapolasek is a code owner

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

bugfixFixes to reported bugs.CISCIS Benchmark related.do-not-merge/work-in-progressUsed by openshift-ci bot.RHEL8Red Hat Enterprise Linux 8 product related.

Projects

None yet

Milestone

0.1.79

Development

Successfully merging this pull request may close these issues.

2 participants

@jan-cerny@openshift-merge-robot

[8]ページ先頭

©2009-2025 Movatter.jp