Replace vector-archiver with logarchiver #308
Reference in New Issue
Block a user
Delete Branch "benvin/logarchiver-swap"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The Vector archiver leg wrote gzip NDJSON to S3 with no index or encryption. logarchiver replaces it with a Go service that seals raw logs to S3 as zstd + OpenPGP objects and indexes each object in ClickHouse (
logs.archive_index), acking JetStream only after the object is stored and indexed.Changes
git.unkin.net/unkin/logarchiver:v0.1.0), ConfigMap, and dedicated ServiceAccount, reusing the archiver's NATS (log-consumer/ durablearchiver/ARCHIVE_SUBJECTS=logs.k8s.vault.>), S3 (logs-archive-s3), ClickHouse (clickhouse-credentials) andvault-cawiring.logarchivegpg public key, fetched from the gpg engine via k8s auth (rolelogging_logarchiver, projected vault-audience token).ack_wait(5m) > batchmax_age(2m) so messages aren't redelivered mid-batch.logs.archive_indexDDL to the clickhouse-schema bootstrap Job (no TTL — outliveslogs.raw).Cross-repo: apply terraform-vault #106 (gpg key + role/policy) before this syncs, or the pod can't fetch the public key. Sequencing: apply after #306 (already merged).
https://claude.ai/code/session_015ur3i7D2azsMAWTSVABApv