Repository navigation
Releases
felix-gateway v0.10.1
Changed
- Built on and tested against Felix 0.7.3: felix-client and felix-wire 0.7.3, and the dev stack runs the 0.7.3 images. Idempotent producers resume about 8.5 s after a leader election without the control plane, instead of 18 to 36 s.
Fixed
dev/up.shwaits one broker heartbeat after the fleet accepts theatomic_commitfinalize before it reports ready (#78). The tests no longer start against a broker that still refuses commits.
Install
docker pull ghcr.io/getfelix/felix-gateway:0.10.1
cargo install felix-gateway --version 0.10.1
npm install felix-gateway-client@0.10.1docs/configuration.md covers the settings and the scope file.
Image
ghcr.io/getfelix/felix-gateway:0.10.1 is sha256:a01379f90473ec119ba0dfa655266165073a6631819d03935a0145e00d5e79c9, signed with cosign:
cosign verify ghcr.io/getfelix/felix-gateway@sha256:a01379f90473ec119ba0dfa655266165073a6631819d03935a0145e00d5e79c9 \
--certificate-identity-regexp '^https://github.com/GetFelix/felix-gateway/' \
--certificate-oidc-issuer https://token.actions.githubusercontent.comfelix-gateway v0.10.0
Added
- One gateway can serve several namespaces of its tenant (#70). List them with
namespaces = [...]at the top of the scope file, and ajoinnames one with
"namespace". The gateway refuses a namespace it does not list, and the
session's Felix token is narrowed to the scope in that namespace, so Felix
grants each person only the namespaces their roles reach. A scope file without
namespacesservesGATEWAY_NAMESPACEonly, as before. - A publish resent after a reconnect is no longer appended twice (#74). With the
idempotent_publishfeature, ajoinnames asessionthat the page keeps
across reconnects and eachpublishcarries aseq. The gateway publishes
through Felix's idempotent producer and answers a resentseqit already
acknowledged without sending it. The npm client'spublishtakes theseq.
Changed
- Built on and tested against Felix 0.7.2: felix-client and felix-wire 0.7.2, and the dev stack runs the 0.7.2 images.
Fixed
- A session that was already signed in can rejoin while the control plane is
down (#73). The gateway keeps the Felix token the control plane issued for an
ID token and scope, and reuses it only when the control plane cannot be
reached (no connection, a timeout, or a 502, 503 or 504) and only until the
earliest of the Felix token's expiry, the ID token's expiry and
GATEWAY_REJOIN_MAX_S(default 900) after the control plane issued it. Any other join is refused at once instead of waiting for the control
plane: control-plane requests now time out after 3 seconds to connect and 10
in all. See "When the control plane is down" in docs/configuration.md.
Install
docker pull ghcr.io/getfelix/felix-gateway:0.10.0
cargo install felix-gateway --version 0.10.0
npm install felix-gateway-client@0.10.0docs/configuration.md covers the settings and the scope file.
Image
ghcr.io/getfelix/felix-gateway:0.10.0 is sha256:04e27f3a327381140219b157c51687652eb863ee61dbc7c8817d1c45410fffbb, signed with cosign:
cosign verify ghcr.io/getfelix/felix-gateway@sha256:04e27f3a327381140219b157c51687652eb863ee61dbc7c8817d1c45410fffbb \
--certificate-identity-regexp '^https://github.com/GetFelix/felix-gateway/' \
--certificate-oidc-issuer https://token.actions.githubusercontent.comfelix-gateway v0.9.0
This release uses Felix 0.7.0 and needs a Felix 0.7 broker and control plane. It
builds on the felix-client and felix-wire 0.7.0 crates, where Client is
the cluster client. The browser protocol and the scope file format are
unchanged.
Changed
- Built on and tested against Felix 0.7.0: felix-client and felix-wire 0.7.0, and the dev stack runs the 0.7.0 images.
Fixed
- The release workflow now checks
changelog.din the tagged commit for leftover fragments, not the one on the branch it runs from.
Install
docker pull ghcr.io/getfelix/felix-gateway:0.9.0
cargo install felix-gateway --version 0.9.0
npm install felix-gateway-client@0.9.0docs/configuration.md covers the settings and the scope file.
Image
ghcr.io/getfelix/felix-gateway:0.9.0 is sha256:2c8327da8b1a50ac0cd0140ebb7e8ed391166328f8f9bc490dffce0090f373d0, signed with cosign:
cosign verify ghcr.io/getfelix/felix-gateway@sha256:2c8327da8b1a50ac0cd0140ebb7e8ed391166328f8f9bc490dffce0090f373d0 \
--certificate-identity-regexp '^https://github.com/GetFelix/felix-gateway/' \
--certificate-oidc-issuer https://token.actions.githubusercontent.comfelix-gateway v0.8.0
Tested against Felix 0.6.2. Four opt-in additions, each turned on by naming it
in the features of join:
cache_versionslets a browser write or delete a cache entry only if nobody
changed it since it read it.past_endanswers a read or subscribe beyond the end of a log with a code
and the log's tail.principalhashellotell a session who Felix knows it as.timefinds a shard's offset for a wall-clock time.
state_get also takes a shard, under the shards feature from 0.7.0.
Sessions that do not ask for these features see no change.
Added
- The
cache_versionsfeature:cache_valuecarries the entry's version, andcache_put_ifandcache_delete_ifwrite only if the entry is absent or still at the version the browser read, answered withcache_put_resultandcache_delete_result.cacheGetVersioned,cachePutIfandcacheDeleteIfin the browser client and its fake. Cache watches carry no versions yet; that needs a change in Felix (GetFelix/felix#1736) (#46). state_gettakes ashardunder theshardsfeature, andstate_valueechoes it. A browser no longer has to guess how a stream routes entity keys: theas_ofandversionit gets are offsets of the shard it named, which areadorsubscribeon that shard understands (#45).- The
past_endfeature: areador asubscribefrom an offset beyond the end of the log is answered with the codepast_endand the log'stail, instead of a message to match (#45). - The
principalfeature:hellonames the session's Felix principal, the stringstamp_senderwrites in front of its records, so a page can tell its own records from the rest. The browser client'sHellohas it asprincipal(#47). - The
timefeature:offset_for_timeanswers, as anoffsetmessage, the first offset of a durable stream's shard appended at or after a time, so a browser can seek by wall-clock time in one lookup. It needssubscribeon the stream and shares the 4 requests a session may have waiting withread(#48).
Fixed
- The join pattern in the protocol reference could hang a browser against a Felix 0.6.0 cluster: a
livesubscribe reports the raw log tail there, which can sit past a generation-start record that is never delivered. The reference now has a worked example and a runnablecatchUpfunction for the join, takes the catch-up target from the replay'ssubscribed, says whatlive_offsetpromises, and notes that 0.6.1 and later report a tail a browser can wait for (#43).
Changed
- The protocol reference says that
as_ofandversionare offsets of the shard that answered, and that areadofas_ofon that shard succeeds at once, barring a leader change (#45). - Built on and tested against Felix 0.6.2: felix-client and felix-wire 0.6.2, and the dev stack runs the 0.6.2 images.
Install
docker pull ghcr.io/getfelix/felix-gateway:0.8.0
cargo install felix-gateway --version 0.8.0
npm install felix-gateway-client@0.8.0docs/configuration.md covers the settings and the scope file.
Image
ghcr.io/getfelix/felix-gateway:0.8.0 is sha256:0aab6b6039086e2865047c00caea301f17d1a5f24e4fd943321cb19fef3019c5, signed with cosign:
cosign verify ghcr.io/getfelix/felix-gateway@sha256:0aab6b6039086e2865047c00caea301f17d1a5f24e4fd943321cb19fef3019c5 \
--certificate-identity-regexp '^https://github.com/GetFelix/felix-gateway/' \
--certificate-oidc-issuer https://token.actions.githubusercontent.comfelix-gateway v0.7.0
Tested against Felix 0.6.0-preview.9. One opt-in addition: the shards feature
lets subscribe follow any shard of a stream. Sessions that do not ask for
shards see no change.
Added
- The
shardsfeature:subscribetakes an optionalshard, so a browser can follow any shard of a stream, one slot per shard.subscribedand errors about the subscription echo it when named. Asubscribewithout it follows shard 0 as before (#34).
Install
docker pull ghcr.io/getfelix/felix-gateway:0.7.0
cargo install felix-gateway --version 0.7.0
npm install felix-gateway-client@0.7.0docs/configuration.md covers the settings and the scope file.
Image
ghcr.io/getfelix/felix-gateway:0.7.0 is sha256:01e85b45bb0a42006308c0e8895314891ac8f71b1e5feb44e30d2b2cad7f3334, signed with cosign:
cosign verify ghcr.io/getfelix/felix-gateway@sha256:01e85b45bb0a42006308c0e8895314891ac8f71b1e5feb44e30d2b2cad7f3334 \
--certificate-identity-regexp '^https://github.com/GetFelix/felix-gateway/' \
--certificate-oidc-issuer https://token.actions.githubusercontent.comfelix-gateway v0.6.0
Tested against Felix 0.6.0-preview.9. One opt-in addition: the read feature
reads a range of a durable stream's log without subscribing. Sessions that do
not ask for read see no change.
Added
- The
readfeature:readanswers one page of a durable stream's records between two offsets, without subscribing, as arecordsmessage. It needssubscribeon the stream (#29).
Changed
- Built on and tested against Felix 0.6.0-preview.9.
Install
docker pull ghcr.io/getfelix/felix-gateway:0.6.0
cargo install felix-gateway --version 0.6.0
npm install felix-gateway-client@0.6.0docs/configuration.md covers the settings and the scope file.
Image
ghcr.io/getfelix/felix-gateway:0.6.0 is sha256:15514ec3a8429cdd0628f42c3d00282c06cd546d406d575ef2f1a114f959d205, signed with cosign:
cosign verify ghcr.io/getfelix/felix-gateway@sha256:15514ec3a8429cdd0628f42c3d00282c06cd546d406d575ef2f1a114f959d205 \
--certificate-identity-regexp '^https://github.com/GetFelix/felix-gateway/' \
--certificate-oidc-issuer https://token.actions.githubusercontent.comfelix-gateway v0.5.0
Tested against Felix 0.6.0-preview.7. Two opt-in additions: the state
feature reads the keys a Felix atomic commit writes, and a scope file resource
can be shared by every scope. Sessions that do not ask for state, and
scope files that do not say shared, see no change.
Added
- The
statefeature:state_getreads a key of a stream's state, the keys a Felix atomic commit writes with its event, and answers its value, the offset of the commit that wrote it and the offset the answer is as of. It needssubscribeon the stream (#26). shared = trueon a scope file resource: its name has no{scope}, and every scope reaches the same stream, cache or counter (#26).
Install
docker pull ghcr.io/getfelix/felix-gateway:0.5.0
cargo install felix-gateway --version 0.5.0
npm install felix-gateway-client@0.5.0docs/configuration.md covers the settings and the scope file.
Image
ghcr.io/getfelix/felix-gateway:0.5.0 is sha256:4f4d4e14db1af50c98a67a3c02fbdb2b2af83509ded49e7df084bafee3fc5f8c, signed with cosign:
cosign verify ghcr.io/getfelix/felix-gateway@sha256:4f4d4e14db1af50c98a67a3c02fbdb2b2af83509ded49e7df084bafee3fc5f8c \
--certificate-identity-regexp '^https://github.com/GetFelix/felix-gateway/' \
--certificate-oidc-issuer https://token.actions.githubusercontent.comfelix-gateway v0.4.0
Tested against Felix 0.6.0-preview.7. Two optional protocol features for
game-shaped traffic: binary_events sends events as binary frames that carry
the gateway's receive and send times, and slots lets one connection hold
several subscriptions on a stream. Sessions that do not ask for them see no
change. A custom BrowserConnection must now implement send_binary.
Added
- The
binary_eventsfeature: events arrive as binary WebSocket frames, a 40-byte header with the subscription, offset and the gateway's receive and send times, then the payload as published. No base64, and no JSON parse per event (#23). - The
slotsfeature:subscribetakes an optionalslot, so one connection can hold a live subscription and a replay of the same stream at once (#23). event_relayinGET /metrics: per stream, the time from an event's arrival from Felix to its write to the WebSocket (#23).
Changed
BrowserConnectionhas asend_binarymethod for event frames. A custom transport must implement it (#23).
Security
- rustls 0.23.46, which fixes RUSTSEC-2026-0346 to 0349 (TLS secrets in
Debugoutput, a ServerHello downgrade to classical key exchange, ECH rejection, and unbounded brotli certificate decompression).
Install
docker pull ghcr.io/getfelix/felix-gateway:0.4.0
cargo install felix-gateway --version 0.4.0
npm install felix-gateway-client@0.4.0docs/configuration.md covers the settings and the scope file.
Image
ghcr.io/getfelix/felix-gateway:0.4.0 is sha256:a251e481d41ab99ab8e4b3c9a5462e2c41acc7be5e716f948c3e51e0d76af1ae, signed with cosign:
cosign verify ghcr.io/getfelix/felix-gateway@sha256:a251e481d41ab99ab8e4b3c9a5462e2c41acc7be5e716f948c3e51e0d76af1ae \
--certificate-identity-regexp '^https://github.com/GetFelix/felix-gateway/' \
--certificate-oidc-issuer https://token.actions.githubusercontent.comfelix-gateway v0.3.3
Tested against Felix 0.6.0-preview.7. Shared connections open with a
connection-only broker token, so the gateway's principal needs only
token.delegate and no placeholder broker grant. Shared connections now need
Felix 0.6.0-preview.7 or later; per-session connections are unaffected.
Changed
- Shared connections open with a connection-only broker token: the gateway
exchanges for{"audience": "felix-broker", "requested": [], "permissions": []}, which Felix 0.6.0-preview.7 mints with no permissions for a principal
holdingtoken.delegate. The gateway's principal no longer needs a broker
grant, anddev/seed.mjsno longer grants a placeholdercache.read. A
control plane before preview.7 answers403no permissions; the gateway
logs that as a setup error naming the version it needs, and joins answer
unavailable. Upgrade Felix before the gateway, or keep the old grant
until then (it does no harm). Built against Felix 0.6.0-preview.7, and
dev/runs it.
Install
docker pull ghcr.io/getfelix/felix-gateway:0.3.3
cargo install felix-gateway --version 0.3.3
npm install felix-gateway-client@0.3.3docs/configuration.md covers the settings and the scope file.
Image
ghcr.io/getfelix/felix-gateway:0.3.3 is sha256:64a8e256c24af3ed8f88e45c4fb5869a0887e75ec3bcc64956d851d86ba175f6, signed with cosign:
cosign verify ghcr.io/getfelix/felix-gateway@sha256:64a8e256c24af3ed8f88e45c4fb5869a0887e75ec3bcc64956d851d86ba175f6 \
--certificate-identity-regexp '^https://github.com/GetFelix/felix-gateway/' \
--certificate-oidc-issuer https://token.actions.githubusercontent.comfelix-gateway v0.3.2
Tested against Felix 0.6.0-preview.5. A browser session whose network drops
without a close is now closed by a heartbeat timeout, which frees its
session-cap slot for a person rejoining.
Fixed
- A session whose network drops without a close is now closed after 30
seconds without a word from the browser, pong included, instead of when the
operating system gives up on the connection minutes later. It no longer
holds asessions_per_principalslot meanwhile, so a person rejoining is
not refused. The gateway already pinged every 5 seconds to measure
browser_rtt;GATEWAY_PING_INTERVAL_SandGATEWAY_PING_TIMEOUT_Sset
both times, and 0 turns either off.Confighas a newheartbeatfield
(#16).
Install
docker pull ghcr.io/getfelix/felix-gateway:0.3.2
cargo install felix-gateway --version 0.3.2
npm install felix-gateway-client@0.3.2docs/configuration.md covers the settings and the scope file.
Image
ghcr.io/getfelix/felix-gateway:0.3.2 is sha256:0ce3481d9bc87c05cbbbf4f8a442d164399f02d5e9a37f85bf23401b870199e2, signed with cosign:
cosign verify ghcr.io/getfelix/felix-gateway@sha256:0ce3481d9bc87c05cbbbf4f8a442d164399f02d5e9a37f85bf23401b870199e2 \
--certificate-identity-regexp '^https://github.com/GetFelix/felix-gateway/' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com