juju4 / ansible-MISP

ansible role to setup MISP, Malware Information Sharing Platform & Threat Sharing
BSD 2-Clause "Simplified" License
51 stars 21 forks source link

Present the 'misp_webserver_harden' variable #15

Closed egypcio closed 1 year ago

egypcio commented 1 year ago

Description

Present the misp_webserver_harden variable, so we avoid depending on juju4/ansible-harden-apache, should we plan to have a clean setup also serving HTTPS.

Motivation and Context

templates/apache2-misp.conf.j2 was set to enforce the use of https://github.com/juju4/ansible-harden-apache, should we ended up setting the MISP role to serve HTTPS traffic by default. There was no option available to disable the inclusion of a particular configuration file which hardens the Apache virtual host.

Here we work that out, and present misp_webserver_harden (set to true by default), which gives folks an option to disable that if they want to.

How Has This Been Tested?

After changing the misp_base_port to 443 (which would require setting up TLS certificates), we:

Types of changes

Checklist:

juju4 commented 1 year ago

LGTM