Skip to content

Commit

Permalink
fixup! Fix: The Kubo IPFS service was not hardened
Browse files Browse the repository at this point in the history
  • Loading branch information
hoh committed Sep 26, 2023
1 parent f6880ca commit 679f865
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packaging/aleph-vm/etc/systemd/system/ipfs.service
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ After=network.target

[Service]
# hardening
ReadOnlyPaths="/opt/kubo/"
ReadWritePaths="/var/lib/ipfs/"
NoNewPrivileges=true
ProtectSystem=strict
Expand Down Expand Up @@ -70,8 +71,7 @@ TimeoutStartSec=infinity
Type=notify
User=ipfs
Group=ipfs
StateDirectory=ipfs
Environment=IPFS_PATH="${HOME}"
Environment=IPFS_PATH="/var/lib/ipfs"
ExecStart=/opt/kubo/ipfs daemon --init --migrate --init-profile=server
Restart=on-failure
KillSignal=SIGINT
Expand Down

0 comments on commit 679f865

Please sign in to comment.