This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Mode parameter for listeners only supports decimal #16302
Labels
A-Config
Configuration, or the documentation thereof
A-Docs
things relating to the documentation
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Minor
Blocks non-critical functionality, workarounds exist.
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Description
When setting a mode in the listener config when listening on a unix domain socket, the mode needs to be specified in decimal. That isn't very obvious from the documentation: https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#listeners
The documentation says it defaults to 666, however it actually defaults to 0o666 or rather 438. This leads the reader to believe they can specify a different mode like 660, however they would need to specify 432. Specifying octal does not work with the yaml parser synapse uses (0o660 is parsed as a string).
It would be good if the documentation mentioned that or required the mode to be passed as a string.
Steps to reproduce
Homeserver
neko.dev
Synapse Version
1.92.0_rc1
Installation Method
Other (please mention below)
Database
postgres, one db
Workers
Multiple workers
Platform
Gentoo
Configuration
No response
Relevant log output
when mode 660 is specified.
The text was updated successfully, but these errors were encountered: