Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion etc/kayobe/ansible/cis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
that:
- ssh_key_type != 'ed25519'
fail_msg: FIPS policy does not currently support ed25519 SSH keys on RHEL family systems
when: ansible_facts.os_family == 'RedHat'
when: ansible_facts.os_family == 'RedHat' and rhel9cis_crypto_policy == 'FIPS'
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The variable rhel9cis_crypto_policy is specific to RHEL 9, but this when condition could apply to other RedHat family OS versions. To avoid potential issues and make the condition more explicit, it would be better to also check for the distribution major version.

      when: ansible_facts.os_family == 'RedHat' and ansible_facts.distribution_major_version == '9' and rhel9cis_crypto_policy == 'FIPS'


- name: Ensure the cron package is installed on ubuntu
ansible.builtin.package:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
##############################################################################
# Rocky 9 CIS Hardening Configuration

# NOTE: Using DEFAULT crypto policy in CI. FIPS breaks ed25519 SSH keys, and
# FUTURE breaks wazuh agent repo metadata download.
rhel9cis_crypto_policy: DEFAULT

# Disable shell timeout for inactivity which can be disruptive to
# development work.
rhel9cis_rule_5_4_3_2: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
##############################################################################
# Rocky 9 CIS Hardening Configuration

# NOTE: Using DEFAULT crypto policy in CI. FIPS breaks ed25519 SSH keys, and
# FUTURE breaks wazuh agent repo metadata download.
rhel9cis_crypto_policy: DEFAULT

# Disable shell timeout for inactivity which can be disruptive to
# development work.
rhel9cis_rule_5_4_3_2: false
Expand Down
Loading