DarkIsDude / tor-server

:whale: An efficient and secure Tor relay server Docker image based on Debian Jessie
https://hub.docker.com/r/chriswayg/tor-server/
GNU General Public License v2.0
7 stars 4 forks source link

Add unattended upgrades and automatic reboot configuration for Tor relay Docker image #9

Closed julienheinen closed 5 months ago

julienheinen commented 5 months ago

This pull request aims to improve the Tor relay Docker image by adding unattended upgrades and automatic reboot configuration. By doing so, the image will benefit from better security and maintenance, as it will automatically apply updates and restart when necessary.

The changes include:

  1. Installing the required packages for unattended upgrades: unattended-upgrades and apt-listchanges.

  2. Adding the configuration file 50unattended-upgrades to define the update origins and package blacklist. This file is specific to Debian and allows updates from the TorProject repository.

  3. Adding the configuration file 20auto-upgrades to set the update frequency, enable unattended upgrades, and enable automatic reboots when necessary.

  4. Updating the Dockerfile to include these new configuration files and install the required packages.

With these changes, the Tor relay Docker image will be more secure and easier to maintain, as it will automatically apply updates and restart when necessary. This will ensure that the relay is always running the latest version of Tor and associated packages, improving its overall security and stability.

julienheinen commented 5 months ago

no problem, could you update the docker image you published on Docker hub? https://hub.docker.com/r/doudou34/tor-server As I use your image for my relays, it would allow me to update them. Thanks again Sincerely

DarkIsDude commented 5 months ago

@julienheinen it's already done, I did it just after the merge with the tag latest and 0.4.8.10-1 ? I didn't reuse the tag 0.4.8.10 to don't impact other users potentially 🙏