restic / rest-server

Rest Server is a high performance HTTP server that implements restic's REST backend API.
BSD 2-Clause "Simplified" License
958 stars 141 forks source link

Improve security of systemd service rest-server.service by restricting network access #246

Closed eriksjolund closed 1 year ago

eriksjolund commented 1 year ago

What is the purpose of this change? What does it change?

Improve security of rest-server.service by restricting network access.

This patch improves the overall security assessment score given by systemd-analyze security rest-server.service from "1.3 OK" to "0.6 SAFE" (when using systemd-analyze version 253)

Was the change discussed in an issue or in the forum before?

Yes, in the forum:

https://forum.restic.net/t/using-none-instead-of-af-inet-af-inet6-for-restrictaddressfamilies-in-systemd-unit-rest-server-service/6448

Checklist