Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Debian package: homeserver.yaml is world-readable #6364

@lanerussell

Description

@lanerussell

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/.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-PackagingOur Debian packages, docker images; or issues relevant to downstream packagersSecurityT-TaskRefactoring, 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 contributionz-p2(Deprecated Label)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions