jelmer / xandikos

A CalDAV/CardDAV server backed by Git
https://www.xandikos.org/
GNU General Public License v3.0
411 stars 42 forks source link

Request to add a flag to set unix domain socket permissions #331

Open emilfihlman opened 1 month ago

emilfihlman commented 1 month ago

It would be really good if there was a flag, maybe -m / --mode that would allow us to set the permissions for the unix domain socket. Otherwise the default umask doesn't allow most distribution default setting proxies from accessing the socket xandikos creates.

Ie usage could be for example xandikos --defaults -d /path/to/directory --listen /path/to/socket --mode 666

jelmer commented 1 month ago

Note that this is nontrivial since aiohttp/Python don't expose this:

https://docs.aiohttp.org/en/stable/_modules/aiohttp/web_runner.html#UnixSite

https://github.com/python/cpython/issues/94984