FS#71951 - [traefik] package has wrong permission of acme.json
Attached to Project:
Community Packages
Opened by aya (gyara) - Monday, 30 August 2021, 11:08 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:02 GMT
Opened by aya (gyara) - Monday, 30 August 2021, 11:08 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:02 GMT
|
Details
Description:
In current version(2.5.1-1)'s pkgbuild file, the permission is 644 (and owner is root), while traefik service need it's permission to be 600 (and thus need it's owner to be traefik). Steps to reproduce: `pacman -S traefik` |
This task depends upon
Closed by Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:02 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/traefik/issues/1
Saturday, 25 November 2023, 20:02 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/traefik/issues/1
1. remove the file creation in PKGBUILD, it creates the file with root so is of no use for us
2. touch and chmod the file in traefik.service:
```
ExecStartPre=/usr/bin/touch /etc/traefik/acme.json
ExecStartPre=/usr/bin/chmod 600 /etc/traefik/acme.json
```
3. for that to work change the path access from just the acme to the whole directory:
```
ReadWritePaths=/etc/traefik
```
```toml
[certificatesResolvers.https.acme]
storage = "/etc/traefik/acme.donotupdate.json"
```