Replace TCP sockets for our services with Unix sockets #87

Closed
opened 2022-01-04 22:53:40 +00:00 by a · 8 comments
Owner

Since everything is on one machine, we can use Unix sockets which are faster and more secure. I know that Mastodon supports Unix sockets but I'm not sure how to get it set up.

Since everything is on one machine, we can use Unix sockets which are faster and more secure. I know that Mastodon supports Unix sockets but I'm not sure how to get it set up.
a added the
security
enhancement
labels 2022-01-04 22:53:40 +00:00
a added this to the (deleted) project 2022-01-04 22:53:40 +00:00
Author
Owner

I configured Mastodon and nginx to use Unix sockets with 39753357f5 but I don't think I have the permissions tight enough.

I configured Mastodon and nginx to use Unix sockets with https://git.exozy.me/exozyme/nginx/commit/39753357f5d9f65a3f59549237efaa26ce5dc23d but I don't think I have the permissions tight enough.
Author
Owner

I made Redis and PostgreSQL only listen on Unix sockets and it took forever to fix all our configs to make that work out. The good thing is that we don't need to use password authentication anymore!

I made Redis and PostgreSQL only listen on Unix sockets and it took *forever* to fix all our configs to make that work out. The good thing is that we don't need to use password authentication anymore!
Author
Owner

I tightened permissions on the Unix sockets' directories using systemd's RuntimeDirectoryMode.

I tightened permissions on the Unix sockets' directories using systemd's `RuntimeDirectoryMode`.
Author
Owner

Jellyfin supports Unix sockets but can't configure permissions for them: https://github.com/jellyfin/jellyfin/issues/5311

Jellyfin supports Unix sockets but can't configure permissions for them: https://github.com/jellyfin/jellyfin/issues/5311
Author
Owner

This is the corresponding issue for PeerTube: https://github.com/Chocobozzz/PeerTube/issues/1951

This is the corresponding issue for PeerTube: https://github.com/Chocobozzz/PeerTube/issues/1951
Author
Owner

Jellyfin supports Unix sockets but can't configure permissions for them: https://github.com/jellyfin/jellyfin/issues/5311

Patching Jellyfin right now...

> Jellyfin supports Unix sockets but can't configure permissions for them: https://github.com/jellyfin/jellyfin/issues/5311 Patching Jellyfin right now...
a closed this issue 2022-01-22 04:17:46 +00:00
Author
Owner
See this upstream issue: https://github.com/jellyfin/jellyfin/pull/7202
Author
Owner

Upstream is now fixed and Jellyfin is confirmed working with a Unix socket! 🎉

Upstream is now fixed and Jellyfin is confirmed working with a Unix socket! 🎉
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: exozyme/exozyme#87
No description provided.