Skip to content

v0.6.0

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Dec 03:15

Security (ADR-021, opt-in)

  • Encryption at rest shipped (opt-in): -encryption-key-file=PATH (32-byte AES-256 key, hex or raw). Encrypts partition and broker-owned internal log segment frames with AES-256-GCM (per-frame random nonce, stdlib-only); reads authenticate and fail closed on tampering/wrong key. encryption.json marker prevents plaintext/encrypted/wrong-key misopens. Plaintext mode byte-identical to default. Replication transfers plaintext frames over mesh mTLS; nodes re-encrypt at rest with their own key. Threat model and limits in ADR-021.
  • Tests: internal/log/encryption_test.go (round-trip, wrong/missing key, plaintext mismatch, tamper fail-closed, ReadRange plaintext, compaction round-trip).
  • Docs: ADR-021, ADR-011 D-011 amended, plan 005 open item updated, ADR-013 updated, configuration/operator/site docs updated.
  • Pending: mandatory human storage review before merge/release (storage-adjacent: internal/log, internal/broker, compaction/recovery path).

Observability (ADR-018)

  • Per-stage pipeline latency metrics shipped: firn_integration_op_seconds{component="pipeline", op="stage:<stage>"} — every executed pipeline stage (filter/project/map/enrich/route/ai; incl. short-circuits: filter drops, unrouted routes, stage failures, transform fall-through) observes a stage-latency histogram. Wired via internal/pipeline.Config.Metrics ← Runner.Metrics; pinned by TestStageLatencyObserved (internal/pipeline/metrics_test.go).
  • Docs/ADRs updated: ADR-018 (implementation-notes addendum 2026-12-01), plan 009 (slice 3 extended 2026-12-01), docs/integrations.md (metrics list).

Performance / durability posture (ADR-014)

  • -flush-window default flipped from 0 (fsync-per-append) to 2ms (group commit on); -flush-window=0 opts out to fsync-per-append; -max-batch-bytes default 1048576 applies whenever a window is active; -internal-flush-window stays opt-in (never default). Broker/library default (flushWindow == 0) unchanged; in-process brokers keep explicit semantics; startup log adjusted (Info with effective window).
  • Measured (Apple M3 Pro, darwin/arm64; bench/baseline.md re-run): durable produce ~192k msg/s via the default windowed path vs ~350 msg/s via the fsync-per-append opt-out.
  • Docs/ADRs updated with the new numbers and posture: ADR-005 (benchmark bar amendment), ADR-014 (status + acceptance criteria amendment + performance note), ADR-003 (default-flip note), plan 006 (slice 8 added), docs/configuration.md, docs/operator.md, docs/comparison.md, bench/baseline.md, README.md.
  • Pending: mandatory human storage review of the default flip (ADR-014 acceptance criteria §6 amended accordingly; ADR-003 invariants unchanged under the default path).