Update hivegrid-cloud reference to latest main

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
davidandClaude Fable 5 committed 2026-07-08 16:15:37 +02:00
1 parent e98d38e716
commit 7b21524c86
3781 files changed
+373484 -225607

No files matched your search

@@ -12,7 +12,7 @@ Defense-in-depth model for user-uploaded files. Two layers:
## How it works
The `MagicBytesScanAdapter` in `@toolctrl/storage` reads the first ~4100 bytes
The `MagicBytesScanAdapter` in `@hivegrid/storage` reads the first ~4100 bytes
of an upload buffer and resolves its MIME type via the `file-type` library's
signature database. It then validates the detected type against:
@@ -141,7 +141,7 @@ user — but this is the only legitimate reason to omit `scan`.
named volume for the signature DB. First boot pulls ~250 MB of signatures
via freshclam — the health check's `start_period` is set to 1200 s to
cover that. Subsequent boots pass in under 2 s.
- **`createClamAVStorageScanner(...)`** in `@toolctrl/storage` —
- **`createClamAVStorageScanner(...)`** in `@hivegrid/storage` —
StorageScanner implementation. Talks to clamd over TCP via the `clamscan`
npm package. Pings before every scan; throws `ClamAVUnreachableError`
when clamd is unreachable.
@@ -153,7 +153,7 @@ user — but this is the only legitimate reason to omit `scan`.
back-pointer.
- **`createWorkerScanService(env)`** in `apps/worker/src/scanService.ts` —
wires the scanner + quarantine adapter together via
`createStorageScanService` from `@toolctrl/storage`. Returns `undefined`
`createStorageScanService` from `@hivegrid/storage`. Returns `undefined`
when STORAGE credentials are missing; the worker handler then short-
circuits the scan-file job rather than running blind.
- **`enqueueFileScan(...)`** in `apps/web/app/utils/integrations/
@@ -167,7 +167,7 @@ Layer 2 is **opt-in** via two env knobs:
- `SCAN_QUEUE_ENABLED=true` on both the web and worker processes. On the
web side the producer helper short-circuits without it; on the worker
side `getWorkerQueueNames` appends `toolctrl.file-scan` only when set.
side `getWorkerQueueNames` appends `hivegrid.file-scan` only when set.
- `CLAMAV_HOST` (default `clamav`), `CLAMAV_PORT` (default `3310`),
`CLAMAV_TIMEOUT_MS` (default `30000`). Defaults match the compose
service. Override for staging/prod when ClamAV lives on a separate host.