You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We would like to have more fine grained options on applying or not specific configurations.
This commit let the user choose to noop some configuration with a few new
boolean variables.
Motivation for theses options are we may configure ourselves some (ssh host key
regeneration in a templating system) or we are not ready for others (ssh_kex
will break dist-upgrades, letting the operator without ssh).
Signed-off-by: seven beep <[email protected]>
Copy file name to clipboardExpand all lines: roles/ssh_hardening/README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,6 +138,11 @@ For more information, see [this issue](https://github.com/dev-sec/ansible-collec
138
138
- Description: Specifies whether challenge-response authentication is allowed (e.g. via PAM).
139
139
- Type: bool
140
140
- Required: no
141
+
- `ssh_ciphers_config`
142
+
- Default: `true`
143
+
- Description: Whether or not configuring the ciphers of the server.
144
+
- Type: bool
145
+
- Required: no
141
146
- `ssh_ciphers`
142
147
- Default: ``
143
148
- Description: Change this list to overwrite ciphers. Defaults found in `defaults/main.yml`
@@ -238,6 +243,11 @@ For more information, see [this issue](https://github.com/dev-sec/ansible-collec
238
243
- Description: Host certificates to look for when starting sshd
239
244
- Type: list
240
245
- Required: no
246
+
- `ssh_host_key_config`
247
+
- Default: `true`
248
+
- Description: Whether or not configuring the host keys of that the server offers.
249
+
- Type: bool
250
+
- Required: no
241
251
- `ssh_host_key_algorithms`
242
252
- Default: ``
243
253
- Description: Host key algorithms that the server offers. If empty the default list will be used. Otherwise overrides the setting with specified list of algorithms. Check `man sshd_config`, `ssh -Q HostKeyAlgorithms` or other sources for supported algorithms - make sure you check the correct version
@@ -258,6 +268,11 @@ For more information, see [this issue](https://github.com/dev-sec/ansible-collec
258
268
- Description: Set to `true` if SSH has Kerberos support.
259
269
- Type: bool
260
270
- Required: no
271
+
- `ssh_kex_config`
272
+
- Default: `true`
273
+
- Description: Whether or not configuring the kexs of the server.
274
+
- Type: bool
275
+
- Required: no
261
276
- `ssh_kex`
262
277
- Default: ``
263
278
- Description: Change this list to overwrite kexs. Defaults found in `defaults/main.yml`
@@ -273,6 +288,11 @@ For more information, see [this issue](https://github.com/dev-sec/ansible-collec
273
288
- Description: specifies the time allowed for successful authentication to the SSH server.
274
289
- Type: str
275
290
- Required: no
291
+
- `ssh_macs_config`
292
+
- Default: `true`
293
+
- Description: Whether or not configuring the macs of the server.
294
+
- Type: bool
295
+
- Required: no
276
296
- `ssh_macs`
277
297
- Default: ``
278
298
- Description: Change this list to overwrite macs. Defaults found in `defaults/main.yml`
0 commit comments