No description
Find a file
Daya Adianto eef8708918
Add full support for Debian 11 (#538)
* Include Debian 11 into Molecule test suites (#527)

Signed-off-by: Daya Adianto <dayaadianto@cs.ui.ac.id>

* Fix Ansible Lint GitHub Action version (#527)

Signed-off-by: Daya Adianto <dayaadianto@cs.ui.ac.id>

* Update .gitignore

Signed-off-by: Daya Adianto <dayaadianto@cs.ui.ac.id>

* mysql_hardening: Use Python 3 as Ansible interpreter (#527)

Signed-off-by: Daya Adianto <dayaadianto@cs.ui.ac.id>

* Note Debian 11 support for os_hardening & nginx_hardening (#527)

Signed-off-by: Daya Adianto <dayaadianto@cs.ui.ac.id>

* Fix lint issues & Ansible Lint configuration in CI

Signed-off-by: Daya Adianto <dayaadianto@cs.ui.ac.id>

* Try to fix YAML lint issues, again

Re-ordered YAML comments at the end of `.yamllint` file.

Signed-off-by: Daya Adianto <dayaadianto@cs.ui.ac.id>

* rm debian9 from tests, add debian 11 where missing

Signed-off-by: Sebastian Gumprich <sebastian.gumprich@t-systems.com>

* fix mysql molecule tests

Signed-off-by: Sebastian Gumprich <sebastian.gumprich@t-systems.com>

Signed-off-by: Daya Adianto <dayaadianto@cs.ui.ac.id>
Signed-off-by: Sebastian Gumprich <sebastian.gumprich@t-systems.com>
Co-authored-by: Sebastian Gumprich <rndmh3ro@users.noreply.github.com>
Co-authored-by: Sebastian Gumprich <sebastian.gumprich@t-systems.com>
2022-08-16 15:02:27 +02:00
.config fix linting 2022-07-07 16:12:06 +02:00
.github Add full support for Debian 11 (#538) 2022-08-16 15:02:27 +02:00
meta add a runtime.yml to declare minimum ansible version (#363) 2020-12-26 21:27:19 +01:00
molecule Add full support for Debian 11 (#538) 2022-08-16 15:02:27 +02:00
roles Add full support for Debian 11 (#538) 2022-08-16 15:02:27 +02:00
.gitattributes update changelog 2017-06-28 16:00:41 +02:00
.gitignore Add full support for Debian 11 (#538) 2022-08-16 15:02:27 +02:00
.gitmodules remove os submodule 2020-11-07 21:49:25 +01:00
.prettierignore add restart handler variable for mysql role (#399) 2021-02-10 15:54:57 +01:00
.yamllint fix linting 2022-07-07 16:12:06 +02:00
CHANGELOG.md update changelog 2022-08-15 14:03:51 +00:00
CONTRIBUTING.md Prettified Code! 2020-11-08 10:20:25 +00:00
galaxy.yml add posibility to run ssh_hardening as unprivileged user (#561) 2022-08-15 13:19:07 +02:00
LICENSE Create LICENSE 2021-08-06 13:08:55 +02:00
OS_HARDENING_CHANGELOG.md fix changelog generation (#341) 2020-12-15 09:58:19 +01:00
README.md Add full support for Debian 11 (#538) 2022-08-16 15:02:27 +02:00
requirements.txt move jmespath installation into github workflow 2021-04-01 21:16:04 +02:00

Ansible Collection - devsec.hardening

devsec.os_hardening devsec.os_hardening VM devsec.ssh_hardening devsec.nginx_hardening devsec.mysql_hardening

Description

This collection provides battle tested hardening for:

  • Linux operating systems:
    • CentOS 7/8
    • Rocky Linux 8
    • Debian 9/10
    • Debian 11 (some roles supported)
    • Ubuntu 16.04/18.04/20.04/22.04
    • Amazon Linux (some roles supported)
    • Arch Linux (some roles supported)
    • Fedora (some roles supported)
    • Suse Tumbleweed (some roles supported)
  • MySQL
    • MariaDB >= 5.5.65, >= 10.1.45, >= 10.3.17
    • MySQL >= 5.7.31, >= 8.0.3
  • Nginx 1.0.16 or later
  • OpenSSH 5.3 and later

The hardening is intended to be compliant with the Inspec DevSec Baselines:

Looking for the old roles?

The roles are now part of the hardening-collection. We have kept the old releases of the os-hardening role in this repository, so you can find the them by exploring older tags. The last release of the standalone role was 6.2.0.

The other roles are in separate archives repositories

Minimum required Ansible-version

  • Ansible >= 2.9.10

Included content

In progress, not working:

Installation

Install the collection via ansible-galaxy:

ansible-galaxy collection install devsec.hardening

Using this collection

Please refer to the examples in the readmes of the role.

See Ansible Using collections for more details.

Contributing to this collection

See the contributor guideline.

Release notes

See the changelog.

Roadmap

Todos:

More information

General information:

Licensing

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.