Released: TBD Compare: v0.12.0-alpha.8…v0.12.0-alpha.9
Where alpha.8 exposed the business-stream event router and metering hook as a reusable embedding seam, alpha.9 hardens the receive side of that data plane — how a stream decides to trust an inbound SET, and how a receiver builds the TLS trust pool it uses to reach a transmitter’s issuer. Both changes are additive and default-off, and flag-off / unchanged-config streams are byte-for-byte unchanged.
The headline is a per-stream signing-only receive posture (#184, PR #222):
a signingOnly flag that makes the SET’s JWS signature — not a transport bearer
— the trust gate on a purpose: business receive stream. The bearer becomes
optional across all three receive transports (RFC 8935 push, RFC 8936
poll-as-receiver, and SSTP) while signature verification of inbound SETs becomes
mandatory; any bearer that is presented must still be valid. This is the
Model A single-issuer shape: a signing-only stream must carry both an issuer
(Iss) and an issuer JWKS URL as its single trust anchor. It supersedes the now
abandoned signing-only control-stream line (enterprise #41 wontfix; admin
#206/#208 moot) — signing-only is a business-stream concept, not a
control-stream one.
The companion is a receiver TLS trust-pool fix (#220, PR #221). The receiver’s
per-server TLS path (GetTlsConfigForServer) had diverged from the admin
reference implementation: with no per-server certificate it returned a TLS
config carrying system roots only and never loaded the global/dev CA pool, so a
client-credentials token POST to a private-CA issuer (e.g. a Keycloak behind
ca-cert.pem) failed x509: certificate signed by unknown authority, surfacing
as an HTTP 500 on credential PUT /server/{alias}. The fix seeds RootCAs from
the global cert pool and appends per-server certs rather than replacing them,
clearing the receiver-side blocker for admin #271 (credential propagation). The
family continues to ship byte-matched at the tag (v0.12.0-alpha.9).
81c2b1a). New StreamConfiguration.SigningOnly flag (default false),
settable at create/update. Create/update reject signingOnly unless both
Iss and IssuerJWKSUrl are set — the single-issuer trust anchor (Model A)./events/{id}) instead of
from the token.sstpAuthorized gate is bypassed only when no bearer is
presented on a signing-only pair; per-SET errors report via setErrs.ReceiverConfig.RequireSignature
(pkg/goSetPush, pkg/goSetPoll) makes a nil JWKS or a verify failure a hard
reject (jws_signature_failed) rather than accepting an unverified SET.
Error taxonomy: invalid_issuer / jws_signature_failed / invalid_request;
signature failures log at WARN. aud validation is unchanged on all
transports.authentication_failed), not 401 — the RFC 8935 push handler routes all
§2.4 errors through WriteDeliveryError (always 400) and existing tests pin
it; the literal 401 is the SSTP path. The
bearer-always-validated-never-bypassed semantic holds on both.63b1499). GetTlsConfigForServer
(pkg/oauthClient/tls_helpers.go) now seeds RootCAs from the global cert
pool (tlsSupport.GetGlobalCertPool) and appends per-server certs instead
of replacing them, mirroring the admin reference implementation.x509: certificate signed by unknown authority → HTTP 500 on
credential PUT /server/{alias} against a private-CA (Keycloak) issuer, and
clears the receiver-side blocker for admin #271 (credential propagation).wontfix; admin #206/#208 moot) — confirming signing-only is
a business-stream, not a control-stream, concept.CONTEXT.md was clarified to distinguish the
pkg/goSignalsServer admin export surface from the pkg/goSsfServer test
application and to describe the metering posture.go test -race ./... is green module-wide. New coverage includes the push and
SSTP signing-only server tests
(internal/server/test/push_signing_only_test.go,
internal/server/test/sstp_signing_only_test.go), the stream-service
signing-only validation test
(pkg/services/stream_service_signing_only_test.go), the receiver
RequireSignature tests (pkg/goSetPush/push_test.go,
pkg/goSetPoll/poll_test.go), and the expanded TLS helper tests
(pkg/oauthClient/tls_helpers_test.go). Per-PR gates (gofmt -l, go vet,
-race) pass with no new warnings.