Builds/runs/scans on the Hanzo PaaS (Dockerfile/Nixpacks build + scheduled
'make ci' task) instead of GHA. make ci = build + test + govulncheck + gitleaks
+ CycloneDX SBOM. Platform build env has cross-org (hanzoai+luxfi) git creds, so
private modules resolve without the GHA token workaround. Removes .github/workflows.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The 34 generic-api-key hits are example keys (SHA-256/MD5 of empty string) in
the adiantum/XTS VFS tests + the SQLite C amalgamation — not real secrets.
Hanzo additions (hanzovfs/, cmd/) remain scanned.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
gitleaks-action@v2 requires a paid org license; use the OSS gitleaks binary
instead. govulncheck needs cross-org (luxfi) private-module access — wire
GO_MODULE_TOKEN (falls back to GITHUB_TOKEN) and continue-on-error until the
org provisions it, so secret-scan + SBOM gate while vuln-scan is best-effort.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Adds .github/workflows/security.yml running on push and pull_request:
gitleaks secret scanning, anchore CycloneDX SBOM generation (uploaded as
a build artifact), and (for Go repos) govulncheck vulnerability scanning
with private-module resolution for github.com/hanzoai and github.com/luxfi.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Replaces the in-memory prototype with the real thing: per-database DEK seals
every 4 KiB page with ChaCha20-Poly1305, persisted to a backend dir; the DEK
itself is sealed with luxfi/age PQ-hybrid (ML-KEM-768 + X25519). The full path
tenant page → encrypted block → object is end-to-end post-quantum — recording
ciphertext yields nothing without the ML-KEM identity.
- Config{Dir, Recipients, Identities}; Register(name, cfg); GenerateIdentity().
- Test proves: DEK is age-sealed (never raw), pages carry no plaintext SQLite,
right identity → data durable across reopen, WRONG identity → open rejected.
- Durable PQ bench (arm64): 720K insert/s, 59.6K point-read/s — 2.6x writes /
5x reads vs the FUSE path, and post-quantum.
No FUSE, no cgo, no kludge.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Fork of ncruces/go-sqlite3 (MIT, retained). Renames module to
github.com/hanzoai/sqlite3 (wasm blob stays upstream ncruces/go-sqlite3-wasm)
and adds the hanzovfs package: a pure-Go, no-FUSE SQLite VFS that seals pages
with ChaCha20-Poly1305 (per-tenant DEK, HIP-0302) for per-tenant SQLite ⇒
hanzoai/vfs ⇒ S3.
Deprecates modernc.org/sqlite (no custom-VFS hook) and direct ncruces use.
Benchmarked 3.6x faster writes / ~92x faster point-reads than FUSE; encryption ~free.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>