This repository was archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Debian package: homeserver.yaml is world-readable #6364
Copy link
Copy link
Closed
Labels
A-PackagingOur Debian packages, docker images; or issues relevant to downstream packagersOur Debian packages, docker images; or issues relevant to downstream packagersSecurityT-TaskRefactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.Z-Help-WantedWe know exactly how to fix this issue, and would be grateful for any contributionWe know exactly how to fix this issue, and would be grateful for any contributionz-p2(Deprecated Label)(Deprecated Label)
Description
Description: Restrict permissions of homeserver.yaml and other sensitive files.
By default, it seems that homeserver.yaml has ownership of 644. Given that this file can contain the registration key, turn secret, or other sensitive info, I believe this file should not be readable by all system users.
In addition, the homeserver.signing.key has permissions of 644, also making it readable by all system users.
I would suggest restricting the visibility of this file only to the user who needs to be able to read it (matrix-synapse on Ubuntu).
note: This is the default behaviour I've observed when installing matrix-synapse on Ubuntu 18.04 via the repo at https://packages.matrix.org/debian/.
aaronraimist and nodiscc
Metadata
Metadata
Assignees
Labels
A-PackagingOur Debian packages, docker images; or issues relevant to downstream packagersOur Debian packages, docker images; or issues relevant to downstream packagersSecurityT-TaskRefactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.Z-Help-WantedWe know exactly how to fix this issue, and would be grateful for any contributionWe know exactly how to fix this issue, and would be grateful for any contributionz-p2(Deprecated Label)(Deprecated Label)