Skip to content

Commit 9549f1b

Browse files
authored
Merge pull request #1096 from stackhpc/2023.1-cis-ed25519
CIS: Add a check for ed25519 SSH keys on RHEL family systems
2 parents e035fa7 + 3a4bd49 commit 9549f1b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

etc/kayobe/ansible/cis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44
hosts: overcloud
55
become: true
66
tasks:
7+
# TODO: Remove this when Red Hat FIPS policy has been updated to allow ed25519 keys.
8+
# https://gitlab.com/gitlab-org/gitlab/-/issues/367429#note_1840422075
9+
- name: Assert that we are using a supported SSH key
10+
assert:
11+
that:
12+
- ssh_key_type != 'ed25519'
13+
fail_msg: FIPS policy does not currently support ed25519 SSH keys on RHEL family systems
14+
when: ansible_facts.os_family == 'RedHat'
15+
716
- name: Ensure the cron package is installed on ubuntu
817
package:
918
name: cron

0 commit comments

Comments
 (0)