progmaticltd / homebox

A set of ansible scripts to build a personal mail server / private cloud / etc.
https://homebox.space/
GNU General Public License v3.0
465 stars 52 forks source link

cert-perms: set www-data access per playbook #275

Closed fredericmoulins closed 4 years ago

fredericmoulins commented 4 years ago

Set wwww-data access to the certificates using the cert-perms role in each playbook needing it.

Use import_role to call the cert-perms role.

arodier commented 4 years ago

I will check this tomorrow, it is a big one ;-)

fredericmoulins commented 4 years ago

it is a big one ;-)

Yes, it is :)

In the certificate role, the task removed set the ACL for www-data on all the certificate directories. It is not setting the default ACL, so it works on Stretch because the certificates files created by certbot are world readable. I don't know if nginx can read the certificates in Buster as they should'nt be world readable anymore.

About the changes:

I hope I did not miss any.

arodier commented 4 years ago

I will launch the CI on this, let's see if it breaks anything. It worked on my side.