Repository navigation
Releases
v0.6.0
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.jsonmarker 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 viainternal/pipeline.Config.Metrics←Runner.Metrics; pinned byTestStageLatencyObserved(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-windowdefault flipped from0(fsync-per-append) to2ms(group commit on);-flush-window=0opts out to fsync-per-append;-max-batch-bytesdefault1048576applies whenever a window is active;-internal-flush-windowstays 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.mdre-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).
v0.5.5
No broker behavior change — the broker-wide mutex is no longer held across file-backed (*log.FileLog) fetch reads; FileLog serializes frames through its internal leaf mutex, so concurrent fetches across partitions on one broker now proceed in parallel — the same defect class ADR-014 fixed on the produce side (release broker mutex before file-backed append). The in-memory (MemLog) fetch path keeps the broker mutex as its serializer, as before.
- perf(broker):
Broker.Fetchreleases the broker mutex before reading from a*log.FileLogdriver and re-acquires it only for in-memory logs. - test(federation): widened
ActiveActiveconvergence barrier 30s → 90s (timing guard; no behavior change).
v0.5.4
Crash-loop-on-restart fixed (found by the first live k8s deployment, then by restarting the cluster): firnd created <data-dir>/metadata/ with default umask (0755) and its quorum log files with 0644 — then enforceStoragePermissions() refused to boot on the next start (dir must be 0700, files 0600). Every cluster restart crash-looped forever. internal/quorum now creates both 0700/0600. Permission-mode only; no storage semantics changed (the quorum log is not the FileLog; flagged for review).
Also: deploy examples (compose, Quadlet, install.sh, site docs) use the client-gRPC port in -peers examples — meshPeerAddr() derives the mesh port as gRPC+10, and examples passed the mesh port, dead-locking the quorum with global fencing (the same class of port confusion fixed in the k8s manifests previously).
v0.5.3
Boot-breaking defect fixed (found by deploying the manifests to a real 3-node cluster). The mesh CA loader only parsed the first PEM block, so a CA generated with openssl ecparam -genkey (PEM order: EC PARAMETERS, then EC PRIVATE KEY) was rejected and cluster nodes crash-looped at boot with mesh: cannot ensure mesh CA: firn/meshca: no mesh CA found … — even though the files were present with correct modes. The parser (internal/meshca) now accepts any PEM bundle containing an EC private key; regression test added (TestEnsureAcceptsOpenSSLStyleMultiBlockCAKey).
Also fixed in this tag:
- k8s and Helm manifests: the cluster command is now a single-line string. YAML plain scalars fold newlines but keep backslashes literal, so
\line continuations were mangled into positional arguments — Go's flag parser stopped at the first positional and every pod silently booted as a single-node broker (produce/fetch "worked"; nothing sealed, leased, or replicated, with no clue in the logs). - k8s/Helm:
chmod -R go-rwxon the data dir in the init container — NFS provisioners hand out mode-0777 PVCs, which firnd's startup dir-mode-check (correctly) refuses. Also covers subdirectories (mesh-caat 755 crash-looped the same way). - Docs/scripts: mesh CA generation now recommends
firn-cli mesh-ca init; openssl examples pass-noout(single-block PEM). - Docs: ADR-015 verification notes updated (live cluster test).
v0.5.2
No broker behavior change — the Go sources are identical to v0.5.1 except the version constant. This tag exists so the release pipeline ships inside the tagged tree and the multi-arch image can be pushed from it.
- OCI image published on every tag push:
ghcr.io/rahulkj/firn:v0.5.2(+:latest), multi-arch linux/amd64+arm64, uid 10001,HEALTHCHECKon/healthz— seepackaging/Dockerfile. packaging/install.sh— interactive installer for Linux (systemd) and macOS (launchd); SHA256SUMS-verified release download; single-node vs 3-node cluster prompts (node-id, peers incl. self, mesh CA generate-or-use-existing);--unattendedfor defaults. Never enables-dev.deploy/— plain Kubernetes manifests, Helm chart, OCI Compose (+ rootless Podman Quadlet). Seedocs/adr/015-installation.md.- migration: v0.5.1 → v0.5.2 is a no-op for brokers.
v0.5.1
No broker behavior change — the Go sources are identical to v0.5.0 except the version constant. This tag exists to carry the release pipeline inside the tagged tree, so the release workflow runs on push: tags and its SLSA provenance records refs/tags/v0.5.1 exactly (v0.5.0's attestation, cut via workflow_dispatch, records release.yml@refs/heads/main instead — see docs/distribution.md).
- Release pipeline (v0.5.0+): tag pushes (
v*) and manualworkflow_dispatchnow attest SLSA v1.0 build provenance viaactions/attest@v4, binding each tarball's SHA-256 to the workflow that built it (Sigstore-signed with the workflow's OIDC identity; persisted to the repository attestation store). The Sigstore bundle is attached to each release asprovenance.sigstore.jsonlfor offline verification. Additive to the existing SHA256SUMS + SBOM + grype gate; cosign sign-blob remains a human step. Seedocs/distribution.mdfor verification instructions (gh attestation verify …). - Release workflow guards that the tag matches the version const and that a matching
## vX.Y.ZCHANGELOG section exists (that section is the release notes). - migration: v0.5.0 → v0.5.1 is a no-op for brokers (no flags, wire, or storage changes).
v0.5.0
Headline: cluster mode is now GA for the documented envelope (single-region, fixed-membership, ≥3 voting nodes for HA, full-restart upgrades). Ships with two live-found defects fixed: the replication agent dialed the client gRPC listener with plaintext while ReplicaService lives only on the mesh mTLS listener (no block was ever replicated in v0.4.0), and the DLQ diverter silently dropped poison messages on multi-node clusters (now quorum-creates the DLQ topic on every node and delivers via a new mesh-only RoutedBrokerService; divert failure now fails the claim — at-least-once preserved).
Storage semantics are unchanged for single-node default (-flush-window=0).
- cluster: Replication agent dials mesh mTLS, not the public gRPC listener — mirrors quorum transport identity (
meshBundle.ClientTLSConfig(nodeID)). Fixes "unknown service firn.v1.ReplicaService" fleet-wide. - cluster: Internal topic auto-creates no longer bypass the quorum.
<queue>.dlqnow materializes on every node viaEntryTopicCreate; previously only the creating node had the topic, every subsequent divert failed and its payload was dropped. - cluster: DLQ diverter is no longer fire-and-forget — on a produce/lease failure it now returns the error; source offset is not consumed; at-least-once holds. When this node isn't the DLQ partition lease holder, the record is delivered via the mesh-only
RoutedBrokerService(RoutedProduce). - cluster:
ErrNotLeaseHoldermaps toFAILED_PRECONDITION(wasINTERNAL); client retry logic already treats it as retryable. - cluster: GA status for the documented envelope. 2-node dev/test validated end-to-end (topics, produce/fetch replication catch-up, restart round-trip, queue lifecycle with DLQ diversion through mesh, internal-topic fencing with CLI retry to the holder). Metrics surface realized (ADR-007 consequences):
firn_blocks_sealed_total,firn_block_bytes_sealed_total,firn_blocks_pushed_total{topic,partition,peer,result},firn_blocks_committed_total,firn_lease_grants_total,firn_lease_renewals_total(all observed firing live on a 2-node cluster)./healthznow reports the-flush-windowstate. Docs:README.md"Running a 3-node cluster",docs/install.md,docs/operator.md"Cluster mode (v0.5.0)", ADR-007 status → accepted/GA,docs/configuration.mdcluster notes,docs/adr/012-architecture.mdcluster section. - mesh authz:
FederationServiceon the mesh listener additionally requires a federation-scoped API key (a mesh cert alone used to bypass RBAC there). Replica/Quorum paths remain mTLS-only. Contract now documented and hardened; seeinternal/api/mesh_interceptor_test.go. - produce: broker.Produce recovers fsync-failure panics from the flush-window path into a per-produce error (a single rollback previously killed every in-flight producer process-wide).
- storage: ADR-014 group commit / flush window implemented behind
-flush-window(default 0) — stage frames in memory, one fsync per window, deterministic rollback on failure, one mutex no longer held across the blocking append (measured ~186,000 msg/s durable produce at 256 in-flight producers vs ~370 default). Seedocs/adr/014-group-commit.md(accepted). ADR-014 kill -9 storm test added: SIGKILL mid-produce against a flush-window child; reopened log shows no torn frame and no offset gap. - api: ProduceBatch + AckBatch RPCs — one RPC per batch vs one per record (ProduceBatch, cap 500) and one RPC per join of deliveries (AckBatch, cap 500; unknown ids counted, never fail the batch). Measured durable drain: per-message Ack 196 → 347/s; AckBatch 376 → 2075 deliveries/s.
- ui/session: ADR-013 browser session auth —
POST /ui/sessionissues an HttpOnly SameSite=Strict 12h cookie;/ui/*accepts bearer or cookie; revoking the key kills sessions immediately;allowed_ipsCIDR enforced on the HTTP+bearer path;-anon-rate 0now correctly means unlimited (previously refused everyone despite the help text). - docs: comparison
docs/comparison.mdvs Kafka/Redpanda/Pulsar/RabbitMQ/NATS/Redis/Kinesis/Pub/Sub/SQS (self-verified; honest about gaps).docs/sre.mdlists the full v0.5.0 metric surface including flush-window and cluster metrics. Federation drift corrected;docs/adr/013-unbuilt-features.mdslice C marked delivered. - test: ratelimit/audit packages now have direct unit tests; CIDR allowlist tested on the bearer path; ADR-014 kill -9 storm test added;
TestActiveActiveQueueDeliveryAndDLQConvergequarantined (Ubuntu-latest convergence issue; verified live on a two-node cluster). - migration: upgrading v0.4.0 → v0.5.0 — nothing breaks for single-node; cluster-mode users get the replication fix and the DLQ-divert fix automatically on roll-restart (full cluster stop/start is still the only supported path). No wire changes;
FirnServicegainsProduceBatch/AckBatch; one new mesh-only service (RoutedBrokerService). No flag renames;-flush-windowdefaults to0(v0.4.0 behavior). - storage:
bench/baseline.mdupdated with measured numbers (groups re-fold no longer O(N²)).
Security posture during this release: every mutation path continues to audit-record in every mode; ProduceBatch/AckBatch are metered as one RPC per call (not per record — their value is the batching); no new dependencies; SBOM/cosign/grype unchanged; -flush-window defaults to 0 (v0.4.0 behavior for anyone upgrading).
v0.4.0 — Firn: the durable event broker (MIT-licensed)
Firn v0.4.0 — durable event broker: streaming + queue semantics over one append-only log. This is a breaking release: read the upgrade notes first.
Breaking changes
- Fail-closed boot: a fresh broker with zero keys serves nothing but
/healthz; one-timeBOOTSTRAP TOKENon stderr mints the first admin key, then bearer auth enforces everywhere (opt out with-dev/-allow-open-bootstrapfor development). - Default listener ports moved off the Kafka-derived pair:
:9092 → :9460(HTTP admin),:9093 → :9461(client gRPC), mesh:9103 → :9471(grpc-addr+10). Pin explicitly with-http-addr/-grpc-addr/-mesh-addrto coexist. Firewall/scrape/health-check updates required. /metricsand/ui/require a viewer key by default (-metrics-auth=falseto opt out).
New
- ADR-010 federation (preview): passive one-way replication (byte-identical, sink fenced) and active-active (both-writable, re-origin, echo-filtered); selective topic/queue scoping; queue attempts mirror both ways with re-keying;
firn_federation_cursor_lag_secondsmetric;/ui/federationread-only view;firn federation add-peer|keys|status; cutover runbook (docs/federation-cutover.md). - ADR-012 architecture map published (components, interactions, failure modes; see
docs/adr/012-architecture.md). - Federation control plane: secure peer registration, cursor persistence, client-visible
federation_hwmprogress. - Retention tunable via
-segment-bytes/-block-seal-interval(whole-segment deletes only; verified end-to-end). - Secure-by-default mesh: internal RPCs (ReplicaService, QuorumService, FederationService) on an mTLS-only mesh listener; pre-provisioned shared CA or single-node auto-provisioning (
firn mesh-ca init).
Verification: CI green (vet, tests incl. -race where supported, golangci-lint v2.15.0, build); SPDX SBOM from CI on main; grype fail-on-critical gate.
Assets: 4 tarballs (darwin/arm64, darwin/amd64, linux/amd64, linux/arm64) + SHA256SUMS. Verify with shasum -a 256 -c SHA256SUMS. Cosign signing is an offline operator step per docs/distribution.md — not in the CI pipeline by design.
Upgrade: docs/migration-v0.3-to-v0.4.md (read before restarting; includes listener-port and bootstrap changes).
MIT license; copyright 2026 rahulkj and contributors.
v0.3.0 — Firn: the durable event broker (MIT-licensed)
v0.3.0 — 2026-11-13 (BREAKING) — Firn is the durable event broker
Eventing is now Firn (module rename, no functional change). The rename covers every user-facing identifier; the next release is breaking by design. Note the naming history, kept honest: the project was first renamed to Slipway, then rejected after conflict sweeps found four live software companies under that name (incl. a funded SF AI-onboarding startup in the same space); Firn (compacted snow layers — the compaction/retention metaphor) swept clean in two independent searches.
MIT License added (2026-11-13).
-
Module path
github.com/rahulkj/eventing→github.com/rahulkj/firn -
Binaries
eventingd→firnd,eventing-cli→firn-cli; env varsEVENTING_*→FIRN_*(e.g.FIRN_ADDR) -
Proto package
eventing.v1→firn.v1, serviceFirnService, Go packagefirnpb; stubs regenerated with buf -
Metrics prefix
eventing_*→firn_* -
Zero Kafka/RabbitMQ references anywhere in the tree; README/AGENTS/ADRs rewritten to describe the broker on its own terms
-
Naming: all other candidates from the shortlist are conflicted (Strata→jsedlak/strata; Outbox→pattern keyword; Palimpsest→palimpsest-wal; Wick→Wick streams framework; Gantry/Talus/Ember/Basin/Waymark/Fermata→all live software companies in adjacent spaces). See docs/license-audit.md for the full table
-
docs/license-audit.md: engineering due-diligence showing no code from either incumbent is incorporated (dependency graph + marker scans). Not legal advice. LICENSE landed (MIT); formal trademark clearance for "Firn" still required before public promotion; optional rename of the__consumer_offsetsinternal topic to__group_offsetsto erase the last incumbent-named identifier. -
Quorum liveness fix (see separate commit): per-election re-randomized timeout — equally-timed peers could split votes and never elect a leader after the leader died (observed intermittently under full-suite
-race) -
version constant bumped to 0.3.0
-
Docs consistency pass (post-v0.2.0): ADR status lines aligned with what actually shipped (001–006 delivered v0.1.0; 007 delivered as v0.2.0; 005 amended; 009 validation + gap-fix shipping); ADR-007 lease default corrected to 3s;
docs/api.mdinternal services section now documentsReplicaServiceandQuorumServicewith request/response examples (frame layout, Raft envelope, base64-verified examples) as scoped by ADR-008. Documentation ADR (008) is now fully delivered against its own checklist.