Skip to content

Commit 76bf986

Browse files
committed
ssh_client: update product stability data and fix bash template newline
Update product stability references for ssh client path properties and fix Jinja whitespace trimming in the Ubuntu bash remediation template.\n\nThe template change preserves the newline between variable assignments in the generated shell script and avoids shellcheck failures.
1 parent 470ebe8 commit 76bf986

27 files changed

Lines changed: 53 additions & 1 deletion

File tree

linux_os/guide/services/ssh/ssh_client/ssh_client_use_approved_ciphers_ordered_stig/bash/shared.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# platform = multi_platform_ubuntu
22

33
ssh_approved_ciphers="aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes128-ctr"
4-
{{%- set sshc_cipher_list_config = ssh_client_config_dir ~ "/00-cipher-list.conf" -%}}
4+
{{% set sshc_cipher_list_config = ssh_client_config_dir ~ "/00-cipher-list.conf" %}}
55

66
main_config="{{{ ssh_client_main_config_file }}}"
77
include_directory="{{{ ssh_client_config_dir }}}"

tests/data/product_stability/alinux2.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ init_system: systemd
3939
login_defs_path: /etc/login.defs
4040
nobody_gid: 65534
4141
nobody_uid: 65534
42+
ssh_client_config_dir: /etc/ssh/ssh_config.d
43+
ssh_client_main_config_file: /etc/ssh/ssh_config
4244
pam_faillock_conf_path: /etc/security/faillock.conf
4345
pkg_manager: yum
4446
pkg_manager_config_file: /etc/yum.conf

tests/data/product_stability/alinux3.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ init_system: systemd
3939
login_defs_path: /etc/login.defs
4040
nobody_gid: 65534
4141
nobody_uid: 65534
42+
ssh_client_config_dir: /etc/ssh/ssh_config.d
43+
ssh_client_main_config_file: /etc/ssh/ssh_config
4244
pam_faillock_conf_path: /etc/security/faillock.conf
4345
pkg_manager: yum
4446
pkg_manager_config_file: /etc/yum.conf

tests/data/product_stability/anolis23.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ init_system: systemd
3838
login_defs_path: /etc/login.defs
3939
nobody_gid: 65534
4040
nobody_uid: 65534
41+
ssh_client_config_dir: /etc/ssh/ssh_config.d
42+
ssh_client_main_config_file: /etc/ssh/ssh_config
4143
pam_faillock_conf_path: /etc/security/faillock.conf
4244
pkg_manager: yum
4345
pkg_manager_config_file: /etc/yum.conf

tests/data/product_stability/anolis8.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ init_system: systemd
3838
login_defs_path: /etc/login.defs
3939
nobody_gid: 65534
4040
nobody_uid: 65534
41+
ssh_client_config_dir: /etc/ssh/ssh_config.d
42+
ssh_client_main_config_file: /etc/ssh/ssh_config
4143
pam_faillock_conf_path: /etc/security/faillock.conf
4244
pkg_manager: yum
4345
pkg_manager_config_file: /etc/yum.conf

tests/data/product_stability/debian11.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ login_defs_path: /etc/login.defs
4343
major_version_ordinal: 11
4444
nobody_gid: 65534
4545
nobody_uid: 65534
46+
ssh_client_config_dir: /etc/ssh/ssh_config.d
47+
ssh_client_main_config_file: /etc/ssh/ssh_config
4648
pam_faillock_conf_path: /etc/security/faillock.conf
4749
pkg_manager: apt_get
4850
pkg_system: dpkg

tests/data/product_stability/debian12.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ login_defs_path: /etc/login.defs
4343
major_version_ordinal: 12
4444
nobody_gid: 65534
4545
nobody_uid: 65534
46+
ssh_client_config_dir: /etc/ssh/ssh_config.d
47+
ssh_client_main_config_file: /etc/ssh/ssh_config
4648
oval_feed_url: https://www.debian.org/security/oval/oval-definitions-bookworm.xml.bz2
4749
pam_faillock_conf_path: /etc/security/faillock.conf
4850
pkg_manager: apt_get

tests/data/product_stability/debian13.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ login_defs_path: /etc/login.defs
4444
major_version_ordinal: 13
4545
nobody_gid: 65534
4646
nobody_uid: 65534
47+
ssh_client_config_dir: /etc/ssh/ssh_config.d
48+
ssh_client_main_config_file: /etc/ssh/ssh_config
4749
oval_feed_url: https://www.debian.org/security/oval/oval-definitions-trixie.xml.bz2
4850
pam_faillock_conf_path: /etc/security/faillock.conf
4951
pkg_manager: apt_get

tests/data/product_stability/eks.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ init_system: systemd
4747
login_defs_path: /etc/login.defs
4848
nobody_gid: 65534
4949
nobody_uid: 65534
50+
ssh_client_config_dir: /etc/ssh/ssh_config.d
51+
ssh_client_main_config_file: /etc/ssh/ssh_config
5052
pam_faillock_conf_path: /etc/security/faillock.conf
5153
pkg_system: rpm
5254
platform_package_overrides:

tests/data/product_stability/example.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ init_system: systemd
4040
login_defs_path: /etc/login.defs
4141
nobody_gid: 65534
4242
nobody_uid: 65534
43+
ssh_client_config_dir: /etc/ssh/ssh_config.d
44+
ssh_client_main_config_file: /etc/ssh/ssh_config
4345
pam_faillock_conf_path: /etc/security/faillock.conf
4446
pkg_manager: dnf
4547
pkg_manager_config_file: /etc/dnf/dnf.conf

0 commit comments

Comments
 (0)