File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 6
6
tasks :
7
7
# TODO: Remove this when Red Hat FIPS policy has been updated to allow ed25519 keys.
8
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'
9
+ - when : ansible_facts.os_family == 'RedHat'
10
+ block :
11
+ - name : Check type of key using the file command
12
+ raw : file {{ ssh_private_key_path }}
13
+ delegate_to : localhost
14
+ changed_when : false
15
+ register : ssh_key_check
16
+
17
+ - name : Assert that we are using a supported SSH key
18
+ assert :
19
+ that :
20
+ - ssh_key_check.stdout | regex_search('ed25519', ignorecase=true)
21
+ fail_msg : FIPS policy does not currently support ed25519 SSH keys on RHEL family systems
15
22
16
23
- name : Ensure the cron package is installed on ubuntu
17
24
package :
You can’t perform that action at this time.
0 commit comments