This repository has been archived by the owner on Feb 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds option to opt-out of RHEL 8 crypto policies
In RHEL 8 these are hard-wired in the service via: ``` EnvironmentFile=-/etc/crypto-policies/back-ends/opensshserver.config EnvironmentFile=-/etc/sysconfig/sshd ``` The `sysconfig` file can override the ones from crypto policies.
- Loading branch information
1 parent
b2dc23a
commit 3a0e7ac
Showing
3 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,6 +94,7 @@ provisioner: | |
- [email protected] | ||
ssh_modulus_min: 3071 | ||
redhat: | ||
ssh_opt_out_crypto_policies: yes | ||
ssh_subsystems: | ||
- name: sftp | ||
command: '/usr/libexec/openssh/sftp-server -f AUTHPRIV -l INFO' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
--- | ||
|
||
- name: opt out of crypto policies | ||
ansible.builtin.lineinfile: | ||
path: /etc/sysconfig/sshd | ||
regexp: CRYPTO_POLICY= | ||
line: CRYPTO_POLICY= | ||
become: yes | ||
when: | ||
- ssh_opt_out_crypto_policies | default(False) | ||
- __ssh_os_version == 'redhat_8' | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
wookietreiber
Author
Member
|
||
|
||
- name: configure sshd in /etc/ssh/sshd_config | ||
ansible.builtin.template: | ||
src: '{{ lookup("first_found", __ssh_sshd_config_templates) }}' | ||
|
can IMHO be for
redhat_9
as well as of e.g.[email protected]
is still default there as of version 8.7-34 on Rocky 9.3 (latest 12th February 24).