i2goSignals

goSignals v0.12.0-alpha.17

Released: TBD Compare: v0.12.0-alpha.16…v0.12.0-alpha.17

Why this release

Four defects, each of which made goSignals silently do nothing rather than fail. All four were found and fixed on release-0.12.0 since v0.12.0-alpha.16 (2026-07-31), and they share a shape worth naming: a SET was accepted, verified, persisted and counted — and then not routed, not verified, or not stored in a form anything else could read. Nothing errored, so nothing alerted.

This alpha also moves the toolchain to Go 1.26.5 and refreshes dependencies against recent CVE advisories.

Changes in this repo

SETs persist in their wire shape (#259, ADR 0030)

goSet.SecurityEventToken and goSet.SubjectIdentifier were persisted by the mongo-driver’s default struct codec, which keys documents by Go field name and ignores the json:",omitempty" tags these types carry. RFC 8417 registered claims were buried in a registeredclaims subdocument under Go names (issuer, audience, expiresat, issuedat, id) instead of appearing at the top level as iss, aud, exp, iat, jti; an opaque subject that is two members on the wire was stored with all ten identifier variants present and empty. The same defect reached subject_filters, whose Subject is a *goSet.SubjectIdentifier too.

pkg/goSet/set_bson.go adds MarshalBSON/UnmarshalBSON on SecurityEventToken, SubjectIdentifier and EventSubject, routing storage through a JSON round-trip so the on-disk shape is the wire shape. Alongside it:

SSTP inbound honours its direction’s RouteMode (#261, ADR 0031)

An SSTP pair carries a mode per direction, SstpModeToRouteMode maps the inbound one onto SstpInbound.RouteMode, and docs/SSTP.md documented that a pair can FORWARD outbound while PUBLISH-ing inbound. The router never read it. HandleEvent flagged sstpInbound = true and returned unconditionally, before the RouteModeImport check — so every SSTP-ingested SET was treated as IMPORT and consumed locally.

The consequence was that A --sstp--> goSignals --sstp--> B never reached B. Hop 2 now happens whenever the A-pair’s inbound direction is FORWARD or PUBLISH. A nil inbound half is treated as IMPORT, matching how persisted records that predate per-direction mode are read. docs/SSTP.md gains an “Inbound mode governs routing, not just signing” section: FORWARD and PUBLISH are identical on the inbound leg — both mean “route onward” — and the verbatim-vs-re-sign choice belongs to each outbound stream at delivery time.

The supported-event catalog is extensible by configuration (#261, ADR 0032)

model.GetSupportedEvents() was a compiled-in list (SCIM/RFC 9967, CAEP, RISC, WISE). Because registration negotiates events_delivered = events_requested ∩ events_supported and the router matches against events_delivered, a URI outside that list intersected to nothing: the stream registered 201, SETs carrying the type were accepted, verified, persisted and counted, and matched no stream. "*" short-circuited to the same catalog, so no registration input could reach a private vocabulary.

New environment variable I2SIG_EVENT_TYPES_EXTRA extends the catalog with event-type URIs this build has no compiled-in knowledge of. Entries are comma- and/or whitespace-separated and must each be an absolute URI; a relative or unparseable entry is skipped with a WARN naming it, empty entries are discarded silently, and duplicates of a built-in (or of each other) are ignored case-insensitively. Extended URIs then behave exactly like built-ins — advertised in events_supported, resolvable from events_requested literally / by pattern / via "*", and fanned out over push, poll and SSTP alike.

Three things are worth reading before enabling it (all detailed in docs/configuration_properties.md):

events_supported is now also correctly honoured as Read-Only on registration.

Unresolved issuer JWKS is retried, not cached (#264, ADR 0033)

StreamService.GetIssuerJwksForReceiver treated entry presence in the per-process receiverStreams map as a cache hit and returned ValidateJwks verbatim — including when it was nil. fetchReceiverJwks collapsed three unrelated outcomes into that same nil: a configured URL whose fetch failed transiently, no URL configured at all, and a disabled SSTP inbound direction. So the transient case logged "Temporary error loading JWKS, will retry" and then never retried; the stream verified nothing until the process restarted.

ADR 0033 makes issuer-JWKS-URL presence the discriminator between “nothing is expected here” and “something is expected and missing”. The fix:

New operator-facing readiness surface. Stream status deliberately keeps reporting enabled for a stream whose issuer JWKS cannot be resolved, so readiness is reported separately and is node-local and derived — never persisted, and not part of the SSF wire-format StreamConfiguration:

Two cluster members may legitimately disagree on readiness during a partial outage, and neither is stale — it describes this node’s reachability, not a property of the stream.

Build and dependencies

Compatibility

The exported library surface is additive — nothing was removed. New in pkg/: the three MarshalBSON/UnmarshalBSON pairs in goSet, ssfModels.JwksReadiness (+ its states and DeepCopy), ssfModels.EnvEventTypesExtra, and StreamService.OverlayJwksReadiness. Consumers re-pinning to this tag recompile without source changes.

Behavioural changes an operator should know about:

Verification

make build, go vet ./... and go test -race ./... are the gate for this tag — assembled by hand, because this repo’s Makefile still exposes only build and has no ci, test, vet, lint or tidy-check target. That gap was called out in the v0.12.0-alpha.16 notes and remains open.