@profullstack/threatcrush 0.13.64 → 0.13.66
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 +14 -1
- package/dist/daemon.js +720 -126
- package/dist/daemon.js.map +1 -1
- package/dist/index.js +851 -251
- package/dist/index.js.map +1 -1
- package/dist/systemd/threatcrushd.service +5 -2
- package/package.json +1 -1
|
@@ -25,7 +25,10 @@ TimeoutStopSec=10
|
|
|
25
25
|
NoNewPrivileges=true
|
|
26
26
|
ProtectSystem=full
|
|
27
27
|
# ProtectHome is read-only, but the daemon must write its own cloud session
|
|
28
|
-
# dir (it rotates and re-saves the access/refresh token on every refresh).
|
|
28
|
+
# dir (it rotates and re-saves the access/refresh token on every refresh). When
|
|
29
|
+
# local command-history protection is enabled, install-service also punches
|
|
30
|
+
# writable holes for supported interactive users' home directories so a
|
|
31
|
+
# symlinked history file can be replaced safely.
|
|
29
32
|
# {{CONFIG_DIR}} is the daemon user's ~/.threatcrush, punched back to writable
|
|
30
33
|
# here by `threatcrush install-service`. Without it the token refresh hit
|
|
31
34
|
# EROFS, the heartbeat stopped, and every server showed offline after an hour.
|
|
@@ -36,7 +39,7 @@ ProtectHome=read-only
|
|
|
36
39
|
# ban. ProtectSystem=full makes /etc read-only, so every ban failed with EROFS
|
|
37
40
|
# and read like a permissions problem. The leading '-' tells systemd to skip
|
|
38
41
|
# the entry on boxes with no /etc/fail2ban instead of failing 226/NAMESPACE.
|
|
39
|
-
ReadWritePaths=/etc/threatcrush /var/log/threatcrush /var/lib/threatcrush {{CONFIG_DIR}} -/etc/fail2ban
|
|
42
|
+
ReadWritePaths=/etc/threatcrush /var/log/threatcrush /var/lib/threatcrush {{CONFIG_DIR}} {{HISTORY_PATHS}} -/etc/fail2ban
|
|
40
43
|
# /var/run is a symlink to /run, which is a tmpfs — anything created there at
|
|
41
44
|
# install time is gone after the next reboot. Listing it under ReadWritePaths
|
|
42
45
|
# then makes the unit fail 226/NAMESPACE on every start. RuntimeDirectory has
|
package/package.json
CHANGED