@profullstack/threatcrush 0.13.15 → 0.13.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/daemon.js +33 -0
- package/dist/daemon.js.map +1 -1
- package/dist/index.js +92 -27
- package/dist/index.js.map +1 -1
- package/dist/systemd/threatcrushd.service +6 -1
- package/package.json +1 -1
|
@@ -16,8 +16,13 @@ TimeoutStopSec=10
|
|
|
16
16
|
# Security hardening — adjust as needed
|
|
17
17
|
NoNewPrivileges=true
|
|
18
18
|
ProtectSystem=full
|
|
19
|
+
# ProtectHome is read-only, but the daemon must write its own cloud session
|
|
20
|
+
# dir (it rotates and re-saves the access/refresh token on every refresh).
|
|
21
|
+
# {{CONFIG_DIR}} is the daemon user's ~/.threatcrush, punched back to writable
|
|
22
|
+
# here by `threatcrush install-service`. Without it the token refresh hit
|
|
23
|
+
# EROFS, the heartbeat stopped, and every server showed offline after an hour.
|
|
19
24
|
ProtectHome=read-only
|
|
20
|
-
ReadWritePaths=/etc/threatcrush /var/log/threatcrush /var/lib/threatcrush
|
|
25
|
+
ReadWritePaths=/etc/threatcrush /var/log/threatcrush /var/lib/threatcrush {{CONFIG_DIR}}
|
|
21
26
|
# /var/run is a symlink to /run, which is a tmpfs — anything created there at
|
|
22
27
|
# install time is gone after the next reboot. Listing it under ReadWritePaths
|
|
23
28
|
# then makes the unit fail 226/NAMESPACE on every start. RuntimeDirectory has
|
package/package.json
CHANGED