dev-sec.os-hardening

Ansible Collection - devsec.hardening

devsec.os_hardening devsec.os_hardening VM devsec.ssh_hardening devsec.ssh_hardening BSD devsec.ssh_hardening with custom tests devsec.nginx_hardening devsec.mysql_hardening

Description

This collection is designed to improve the security of:

  • Linux operating systems:
    • CentOS 9
    • Rocky Linux 8/9
    • Debian 11/12
    • Ubuntu 20.04/22.04/24.04
    • Amazon Linux (some roles available)
    • Arch Linux (some roles available)
    • Fedora 39/40 (some roles available)
    • Suse Tumbleweed (some roles available)
  • MySQL
    • MariaDB versions >= 5.5.65, >= 10.1.45, >= 10.3.17
    • MySQL versions >= 5.7.31, >= 8.0.3
  • Nginx version 1.0.16 or later
  • OpenSSH version 5.3 or later

This hardening process aligns with Inspec DevSec Baselines:

Looking for old roles?

The previous roles are now included in the hardening collection. Old versions of the os-hardening role are still available in this repository; you can find them by checking older tags. The last standalone version was 6.2.0.

Other roles are in separate repositories:

Minimum required Ansible version

  • Ansible version >= 2.9.10

Included content

Currently in progress, not yet functional:

Installation

To install the collection, use ansible-galaxy:

ansible-galaxy collection install devsec.hardening

Using this collection

Refer to the examples in the role readme files for guidance.

For more details, see Ansible Using collections.

Contributing to this collection

Please check the contributor guideline.

Release notes

View the changelog.

Roadmap

Planned tasks:

More information

For general information:

Licensing

This collection is licensed under the Apache License, Version 2.0 (the "License"). You cannot use this file except in compliance with the License. A copy of the License can be found at

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

Unless required by applicable law or agreed to in writing, software released under the License is provided "AS IS," without any guarantees or conditions of any kind. See the License for detailed information regarding permissions and limitations.

Informazioni sul progetto

This role provides numerous security-related configurations, providing all-round base protection.

Installa
ansible-galaxy install dev-sec.os-hardening
Licenza
apache-2.0
Download
3.1M
Proprietario
Security + DevOps: Automatic Server Hardening