Commit graph

427 commits

Author SHA1 Message Date
dev-sec CI
5015cda4f0 update nginx_hardening readme 2024-10-22 07:18:55 +00:00
dev-sec CI
532b7a70ea update ssh_hardening readme 2024-10-22 07:18:52 +00:00
dev-sec CI
8d336bcdfa update os_hardening readme 2024-10-22 07:18:45 +00:00
dev-sec CI
8fffcde096 update mysql_hardening readme 2024-10-22 07:18:42 +00:00
Martin Schurz
f70a74f99f Add variable to set name_format for auditd
Signed-off-by: Martin Schurz <Martin.Schurz@telekom.de>
2024-10-22 08:46:23 +02:00
rndmh3ro
8619b26b75 Prettified Code! 2024-10-13 19:42:40 +00:00
Sebastian Gumprich
7b112dcf87
feat(ssh): add alpine support (#809)
Signed-off-by: Sebastian Gumprich <rndmh3ro@users.noreply.github.com>
2024-10-13 21:42:28 +02:00
dev-sec CI
08dfeedbc0 update os_hardening readme 2024-10-13 18:15:50 +00:00
dev-sec CI
759b746429 update ssh_hardening readme 2024-10-13 18:15:43 +00:00
dev-sec CI
e6ea4f0b4c update mysql_hardening readme 2024-10-13 18:15:40 +00:00
dev-sec CI
19ac284200 update nginx_hardening readme 2024-10-13 18:12:08 +00:00
Sebastian Gumprich
141efbc516
fix(ssh_hardening): test setting kex to false, remove wrong default (#808)
Signed-off-by: Sebastian Gumprich <rndmh3ro@users.noreply.github.com>
2024-10-13 20:11:47 +02:00
rndmh3ro
cfd4536868 Prettified Code! 2024-10-13 10:35:08 +00:00
seven-beep
a97a54dc30
Provide granular noop for ssh configuration (#789)
* Provide granular noop for shh configuration

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 <ebn@entreparentheses.xyz>

* Provide granula noop for ssh configuration

We would like to have more fine grained options on applying or not specific configurations.

This commit let the user choose to disable configurations for `ssh_host_key_config`,
`ssh_ciphers_config`, `ssh_host_key_config`, `ssh_macs_config` by setting them
to False.

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 <ebn@entreparentheses.xyz>

---------

Signed-off-by: seven beep <ebn@entreparentheses.xyz>
2024-10-13 12:34:52 +02:00
dev-sec CI
be5a98bce5 update mysql_hardening readme 2024-10-10 11:39:07 +00:00
dev-sec CI
1464ee7693 update nginx_hardening readme 2024-10-10 11:39:01 +00:00
dev-sec CI
ba1991b4c1 update os_hardening readme 2024-10-10 11:39:00 +00:00
dev-sec CI
a234d23d77 update ssh_hardening readme 2024-10-10 11:38:59 +00:00
vmpr
27aa081889
fixing missing quotes for ssh_permit_tunnel parameter in argument_specs.yml
ssh_permit_tunnel needs quotes otherwise we will end up with an error:
```
TASK [devsec.hardening.ssh_hardening : Create sshd_config and set permissions to root/600] **********************************************************************************************************************
fatal: [vampdock02]: FAILED! => {"changed": false, "checksum": "fe6b74e30b1a653f83c2cbe1dd1332c14bd55833", "exit_status": 255, "msg": "failed to validate", "stderr": "/home/debian/.ansible/tmp/ansible-tmp-1728530891.493071-72386-149151737175948/source line 123: bad PermitTunnel argument True\r\n", "stderr_lines": ["/home/debian/.ansible/tmp/ansible-tmp-1728530891.493071-72386-149151737175948/source line 123: bad PermitTunnel argument True"], "stdout": "", "stdout_lines": []}
```
2024-10-10 15:50:17 +08:00
rndmh3ro
d6d2624e4d Prettified Code! 2024-10-09 12:40:26 +00:00
Sebastian Gumprich
62947a6ea2
fix(docs): add 'become: true' to example playbooks. fix #787 (#804)
Signed-off-by: Sebastian Gumprich <rndmh3ro@users.noreply.github.com>
2024-10-09 14:40:08 +02:00
T.O.
9c069ff8e8
feat: Corrected package name (#799)
`policycoreutils-python` does not exist and was corrected to
`policycoreutils-python-utils`. Only tested with debian
2024-10-08 08:29:52 +02:00
schurzi
437546f4a9 Prettified Code! 2024-10-05 07:48:38 +00:00
dev-sec CI
5ef0c42d64 update os_hardening readme 2024-10-04 13:22:42 +00:00
Martin Schurz
2e3d5e916b Remove unused files and variables
Signed-off-by: Martin Schurz <Martin.Schurz@telekom.de>
2024-10-04 13:29:16 +02:00
dev-sec CI
3250d179bc update nginx_hardening readme 2024-08-06 11:37:20 +00:00
dev-sec CI
caaae61322 update mysql_hardening readme 2024-08-06 11:12:00 +00:00
dev-sec CI
c5935d38e5 update os_hardening readme 2024-08-06 11:11:58 +00:00
dev-sec CI
0989606757 update ssh_hardening readme 2024-08-06 11:11:57 +00:00
schurzi
69ab9e47ad
Update Debian compatibility (#784)
* Update Ubuntu compatability

Signed-off-by: Martin Schurz <Martin.Schurz@telekom.de>

* reload systemd when disabling ssh socket

Signed-off-by: Martin Schurz <Martin.Schurz@telekom.de>

* manage systemd files

Signed-off-by: Martin Schurz <Martin.Schurz@telekom.de>

* Create privsep directory for Debian

Signed-off-by: Martin Schurz <Martin.Schurz@telekom.de>

* Use working Ubuntu 24.04 image for vm tests

Signed-off-by: Martin Schurz <Martin.Schurz@telekom.de>

* Remove deprecated Debian 10

Signed-off-by: Martin Schurz <Martin.Schurz@telekom.de>

---------

Signed-off-by: Martin Schurz <Martin.Schurz@telekom.de>
2024-08-06 13:11:32 +02:00
schurzi
2ff44f2145 Prettified Code! 2024-07-28 11:45:51 +00:00
Martin Schurz
f23d5d8eaf Remove deprecated rebuild of initrd
Signed-off-by: Martin Schurz <Martin.Schurz@telekom.de>
2024-07-28 13:17:49 +02:00
Sevan
0233bfe543
Ensure that ssh is installed (#774)
Signed-off-by: Sevan Murriguian-Watrin <git@byh0ki.fr>
2024-07-02 20:41:07 +02:00
dev-sec CI
ed85a70105 update ssh_hardening readme 2024-07-02 16:20:50 +00:00
Martin Schurz
77de9435fa remove freebsd12
Signed-off-by: Martin Schurz <Martin.Schurz@telekom.de>
2024-07-02 17:31:22 +02:00
dev-sec CI
c068979b91 update os_hardening readme 2024-06-24 08:41:24 +00:00
dev-sec CI
b705cd95dc update ssh_hardening readme 2024-06-24 08:41:00 +00:00
dev-sec CI
7f51a49265 update nginx_hardening readme 2024-06-24 08:40:57 +00:00
dev-sec CI
aaaedee1cd update mysql_hardening readme 2024-06-24 08:40:50 +00:00
Sebastian Gumprich
c02b5d9c3a add arg-spec for new variable ssh_server_service_enabled
Signed-off-by: Sebastian Gumprich <rndmh3ro@users.noreply.github.com>
2024-06-24 10:28:53 +02:00
Sevan
b0488e86d4
ssh: explicitly enable or disable the service at boot (#771)
Signed-off-by: Sevan Murriguian-Watrin <git@byh0ki.fr>
2024-06-24 10:26:55 +02:00
Sebastian Gumprich
19ca997bd6
disable systemd socket activation (#769)
* disable systemd socket activation

Signed-off-by: Sebastian Gumprich <rndmh3ro@users.noreply.github.com>

* move start to after deactivation so it can start

---------

Signed-off-by: Sebastian Gumprich <rndmh3ro@users.noreply.github.com>
2024-06-18 15:56:09 +02:00
rndmh3ro
26ecb3f5ea Prettified Code! 2024-06-04 08:16:33 +00:00
dev-sec CI
b0f968af21 update nginx_hardening readme 2024-05-31 10:21:00 +00:00
Sebastian Gumprich
85aa1b22b3
do not force type of ssh_gateway_ports (#765)
* do not force type of gatewayports-var

this way it can be a bool or a string. we also now test for it

Signed-off-by: Sebastian Gumprich <rndmh3ro@users.noreply.github.com>

* replace yum with dnf

Signed-off-by: Sebastian Gumprich <rndmh3ro@users.noreply.github.com>

---------

Signed-off-by: Sebastian Gumprich <rndmh3ro@users.noreply.github.com>
2024-05-31 12:20:00 +02:00
dev-sec CI
4af40129c6 update ssh_hardening readme 2024-05-31 09:42:36 +00:00
dev-sec CI
eb972f63f7 update os_hardening readme 2024-05-31 09:42:33 +00:00
dev-sec CI
b6be42c3a0 update mysql_hardening readme 2024-05-31 09:42:13 +00:00
Sebastian Gumprich
296f46cc80
centos7 is eol, remove it (#767)
* centos7 is eol, remove it

Signed-off-by: Sebastian Gumprich <rndmh3ro@users.noreply.github.com>

* change workflow to update readmes when meta/main.yml is changed

Signed-off-by: Sebastian Gumprich <rndmh3ro@users.noreply.github.com>

* remove mention of centos 7 from readme

Signed-off-by: Sebastian Gumprich <rndmh3ro@users.noreply.github.com>

---------

Signed-off-by: Sebastian Gumprich <rndmh3ro@users.noreply.github.com>
2024-05-31 11:25:01 +02:00
Sebastian Gumprich
346ead4455 fix spelling
Signed-off-by: Sebastian Gumprich <rndmh3ro@users.noreply.github.com>
2024-05-30 15:07:27 +02:00