@profullstack/threatcrush 0.13.31 → 0.13.33

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 CHANGED
@@ -186,7 +186,7 @@ A running daemon picks up `link` and `unlink` within a minute; no restart. It th
186
186
 
187
187
  - uploads detections at or above `[cloud] min_severity` (rule detections, plus events from modules no rule reads, such as dns-monitor), batched (100 events or every 10 s), and every ban and unban the daemon makes;
188
188
  - sends a heartbeat every 60 s with its version and hostname;
189
- - runs the `threatcrush harden` checks a minute after it starts and every 24 h, and uploads the findings (`threatcrush harden` uploads too; `--no-upload` skips it);
189
+ - runs the `threatcrush harden` checks and `threatcrush patches` a minute after it starts and every 24 h, and uploads the findings (both commands upload too; `--no-upload` skips it);
190
190
  - every 15 s, picks up blocks and unblocks queued on the dashboard and applies them through auto-defence, so protected and allowlisted addresses and dry-run apply as they do locally;
191
191
  - every 5 min, adds the organization's IP/CIDR allowlist to the never-block set.
192
192
 
@@ -198,6 +198,20 @@ enabled = true # false: the daemon neither reports to nor takes actio
198
198
  min_severity = "medium" # info | low | medium | high | critical
199
199
  ```
200
200
 
201
+ ## Automatic updates
202
+
203
+ The daemon keeps itself on the latest release. About every 6 hours (plus up to an hour of jitter, so a fleet does not restart in step) it asks the npm registry for `latest`. When a newer version has been published for at least 2 hours, and is on the same major version, it installs it and restarts onto it. The update shows in the live feed as an info event (`auto-update`).
204
+
205
+ Under systemd the unit's sandbox keeps the daemon from writing its own install, so it hands `npm i -g` to a transient unit (`systemd-run`) run as whoever owns the install, then restarts the service. A user-mode daemon runs npm itself. Only the npm global layout the installer produces is updated in place. A daemon running from a pnpm store or a source checkout logs that `threatcrush update` is needed instead. A version that was tried and did not take is not retried for a day.
206
+
207
+ ```toml
208
+ [update]
209
+ auto = true # false (or THREATCRUSH_AUTO_UPDATE=0): upgrade by hand with `threatcrush update`
210
+ interval = "6h" # how often to check (at least 15m)
211
+ min_age = "2h" # how long a release must be public before it is taken
212
+ allow_major = false # true: also move to a new major version
213
+ ```
214
+
201
215
  ## Pricing
202
216
 
203
217
  The CLI is MIT-licensed (see [License](#license)). For pricing, [contact us for a quote](https://threatcrush.com/hire).