Skip to content

Commit

Permalink
fix: Add some security to the service
Browse files Browse the repository at this point in the history
  • Loading branch information
dadav committed Jul 1, 2024
1 parent a3dfaf1 commit 7ae21f8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions gorge.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@ Description=Gorge is a puppet forge server written in Go
[Service]
Type=simple
ExecStart=/usr/bin/gorge --config /etc/gorge.yaml serve
Restart=on-failure
NoNewPrivileges=yes
PrivateTmp=yes
DevicePolicy=closed
ProtectControlGroups=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
RestrictNamespaces=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
MemoryDenyWriteExecute=yes
LockPersonality=yes
ProtectClock=yes
ProtectHostname=yes
PrivateUsers=yes

[Install]
WantedBy=multi-user.target

0 comments on commit 7ae21f8

Please sign in to comment.