- closes sessions inline when the listener's event loop closes them (expiry scan, failed connect),
instead of queueing a close event that only the loop itself can receive
- keeps Close's blocking queue send for other callers, so a close still reaches the loop ahead of
anything queued after it, and has Close release any QueueRead waiting on the session first
- has QueueRead deliver whenever the read buffer has room and stop waiting once the session is
closed, so the loop cannot block on a reader that has stopped
- marks activity directly in Write rather than queueing an update event per packet, holding the
timeout in an atomic
- matches a transport_udp connect response to the session it was made for rather than the session
now registered at that address, and drops it when a new session has replaced that one, since the
client would take any reply as the answer to its new attempt
- tests that the loop's session calls never wait on the loop, that a close releases a waiting read,
that reads which fit are still delivered while closing, that a close queued before a connect
response is handled first, and that a stale response leaves a replacement session alone
- tests that a proxy-mode virtual UDP connection closes its write conn only when it owns it,
leaving the listener it shares with the service's other clients open, since the tunneler UDP
data flow test no longer exercises that close (the fix for #3540)
- notes the fix in the changelog
- replaces the edge and fabric id-or-name resolvers with one implementation in the api package,
exposed as MapEdgeNameToID, MapEdgeNamesToIDs, MapFabricNameToID and MapFabricNamesToIDs
- requires the colon in the `id:` and `name:` prefixes, so names starting with "id" or "name" are
looked up instead of being taken as literal ids
- reports values that match nothing; fabric delete no longer drops them silently
- reports a name that equals another entity's id as ambiguous instead of resolving it to that id
- returns the prefix hint in the error instead of printing it to stdout
- prints the input value in the ZITI_CLI_DEBUG trace instead of the variable's value
- moves the edge commands onto the shared resolver
- tests the prefix parsing
- notes the fix in the changelog
- adds CtrlChannel.Reconnect: the dial side closes its underlays, and the channel, which survives losing
them all, redials a new group while it and its controller registration stay in place; the listener
side closes so the controller redials
- has the heartbeat check reconnect on the first timeout and close when a second timeout, measured from
the reconnect, passes with no heartbeat answered; the reconnect is not recorded as a response, so the
controller stays unresponsive until it answers
- records each endpoint that reaches a controller, including one refused as a duplicate, while the
controller set is not authoritative, so the close handler can redial a standalone controller on any
of them
- adds an authoritative flag to controller set updates, set only for a leader's list at a newer index;
follower lists, merges, address settings and the endpoints file only add
- refuses to register a controller absent from an authoritative set, and stops retrying a bare endpoint
that reaches one
- tests Reconnect, the heartbeat check, the controller set and which updates are authoritative, and with
integration tests a controller outage exceeding the heartbeat timeout and redialing a standalone
controller after a channel close
- notes the fix in the changelog
- gzips each fablab host's logs over 10 MB before the log archive step pulls them, so a smoketest with debug-level routers can't fill the runner's disk
- warns and fetches the logs as they are if compressing them fails
- moves the forwarder's per-payload and per-acknowledgement lines to trace, so a router running at debug no longer logs a line for every payload and ack it carries
- moves the edge xgress connection's per-message read lines to trace
- updates github.com/openziti/fablab to v0.6.31, which writes terraform's output to a file rather than piping it to fablab, so stopping fablab no longer kills terraform and the stop-fablab action's interrupt lets terraform save its state
- turns the oidc capability from a config switch into a test gate: OIDC stays on, as a 2.x
controller runs it by default, and tests skip SDK client and SDK-hosted paths through routers older
than 1.6, whose OIDC handling had many bugs that 1.6 fixed
- stops defaulting the oidc flag off for old routers, which did nothing once the controller started
binding OIDC by default
- requires OIDC on the client routers for SDK clients, and on the hosting routers alongside SDK hosting
for SDK-hosted services; ERT client and ERT-hosted paths always run
- adds Support.And for checks that span both ends of a path
- adds an optional labels input to the compat workflow's manual dispatch, appended to every job's
fablab labels, so a run can set capability overrides such as capability_oidc=on
- passes the input to the script through the environment rather than interpolating it
- adds a router capability table to the smoke model: controller-managed link config, SDK hosting
against a 2.x controller, and OIDC api sessions, each with the first release that has it
- keeps link config local on routers without managed link config, and defaults OIDC off when any
edge router lacks it, though an oidc label still decides
- adds capability_<name>=on|off labels that override the version check for every router, so a run
can test a floor or exercise the skips on the local build
- skips the SDK-hosted file, iperf, scp and sim tests with the reason when the hosting routers lack
SDK hosting, and leaves those services out of the terminator waits
- tests the version and override checks
- adds a scheduled sweeper that terminates CI fablab instances (Name gh-*) launched more than 7 hours
ago in every enabled region and deletes their VPCs; EC2 records no VPC creation time, so it ages
each VPC from a tag it writes on first sight, and it reports every find as a workflow warning
- adds a stop-fablab action that interrupts the fablab command and terraform a cancelled step left
running, and waits for terraform to save its state; the smoketest, validation, upgrade and
backward compatibility jobs run it before they archive or tear down their environment
- moves the housekeeper's VPC teardown into a file the sweeper shares, and waits on instances already
shutting down before deleting the subnet they hold
- runs the compat matrix against the 2.0 and 1.6 lines, with the old routers on the client side
and, separately, on the hosting side
- resolves each line's newest stable release at run time instead of pinning versions
- makes the compat workflow callable and runs it first in Validation (All); the soak validations
start once it finishes, whatever its result, so the two sets of environments don't share
us-east-1's VPC quota
- keeps link config local on smoke test routers older than the first release that applies
controller-managed link config, since they ignore it and would start with no links
- routes slog's default logger through ziti's logging in the agent CLI, at the Warn level it already
set for logrus, or Debug with --verbose, so channel's info logs no longer reach stderr
- tests that the agent CLI drops info logs from slog by default and enables debug with --verbose
- notes the fix in the changelog
- regenerates the 2.1.0 component updates and bug fixes with ziti-ci update-release-notes, adding the
channel and sdk-golang issues fixed by the dependency update and the ziti issues fixed since the
list was last generated
- keeps the #4138 entry and the release title of #4542, which the scan would otherwise drop or
replace
- updates github.com/openziti/channel/v5 from v5.0.27 to v5.0.39
- updates the other direct and indirect dependencies of the root and zititest modules to their
latest minor and patch releases, among them transport v2.0.228, sdk-golang v2.0.0-pre5,
hashicorp/raft v1.8.0, raft-boltdb v2.4.2 and zitadel/oidc v3.51.17
- keeps pfxlog pinned at v0.6.10
- applies controller lists, leader announcements, controller address changes and index resets on one
goroutine in arrival order, so checking an update's index, applying it and recording it is one
step and no control channel's receive goroutine waits on another controller's update
- lets only a leader's list at a newer index replace the controller set; any other list at or above
the recorded version only adds, merging into the router's stored details and connected controllers
- applies a leader's list at the recorded version as additions, so a router missing controllers
recovers when the leader resends
- keeps an inbound controller's socket address out of the saved endpoints, and fills in a saved
controller that has no endpoints when a later list gives some
- orders leadership claims by raft term: adds a raftTerm field to UpdateCtrlAddresses and
UpdateClusterLeader, which controllers read together with leadership so both describe the same raft
term; claims without one, from older controllers, still apply as they arrive
- folds the cluster leader handler into the same worker
- asks every connected controller for its list while waiting for the leader's, without waiting on a
full send queue, one request run at a time, stopping when the router closes
- bounds the waiting updates: past the bound it drops waiting lists and announcements, keeps each
controller's latest address change, and requests the leader's list
- fixes a router crash applying a controller's new address before any controller details were
stored, and keeps connected controllers the router has no details for
- stops clustered controllers sending the newListener address, which the cluster's controller lists
would undo, warns when it is configured, and notes this in the sample configs
- tests list handling, leadership ordering, overflow, the request loop, address changes and the
controller's raft term read
- notes the fix in the changelog
- writes the posture check roles back after a type change re-links the policy, as it already does for identity and service roles
- tests that a full update and a type-only patch keep the stored roles, and that a posture check created afterwards links by them
- benchmarks policy-evaluating writes at 1K and 10K entities without fsync
- adds a perftests scenario driving the automation create and delete sequence through the typed management API client with concurrent clients
- adds typed management client helpers that delete services, service policies and service edge router policies
- repairs the existing perftests scenario, which no longer compiled
- feeds the posture check to service reference counts from service links as well as posture check links
- gives the service store its own view of those tables, replacing the identity tables as the reverse side
- validates the posture check pairs in the service policy integrity check
- rebuilds the tables and removes posture check ids from the services' identity tables in migration 50
- expands a service's updated event to its identities once per write, not once per posture check
- evaluates every roles field of a policy when its semantic changes
- adds a matrix test driving every role-set and attribute-set transition for each policy type
- selects the entities a policy change can affect from its ids, the entity role attribute index and its current links
- selects the policies an entity change can affect from its current links and the policy role attribute index
- indexes the #all wildcard in the policy role attribute indexes and skips it in the role attribute usage query
- adds DB version 50, which backfills the wildcard entries
- adds transition tests across all three policy types
- extends the per-request write deadline in TimeoutHandler when the server's write timeout would expire before the timeout response can be written, so clients get the 503 instead of a TLS error
- passes the server's write timeout from each API's xweb server config into TimeoutHandler through a shared helper
- carries the request context on REST change contexts and refuses to dispatch a command once that request's deadline has passed
- updates xweb to v3.0.6, whose compression middleware supports http.ResponseController and keeps the response status for Brotli
- tests timeout responses over HTTP/1.1 and h2 for each compression encoding, and the dispatcher deadline check
- records the cost and precedence a health check sends on the router's tunnel terminator, starting from the host config
- builds terminator creates and inspect output from the recorded values, so a re-created terminator keeps the health check's precedence
- notes why the controller leaves cost and precedence alone when a tunnel create targets an existing terminator
- tests that creates carry the configured values until an update replaces them, including an update that fails
- records update bind cost and precedence on the router's terminator, so retries and reconnect re-creates carry them
- sends an update to the controller only for an established terminator with no create outstanding, and otherwise lets a create carry the values
- re-creates a terminator taken over by listener id when the new bind's cost, precedence or peer data differ
- follows a create built from values that have since changed with another create once it completes
- queues a taken-over terminator whose create had not been sent yet, rather than leaving it for the retry scan
- re-creates the terminator when an update to the controller fails
- applies peer data, along with cost and precedence, when a create targets an existing terminator, including one found after losing a concurrent create
- skips the terminator write when a create or update changes nothing, but only on a caught-up leader or a controller without raft, since a follower's copy may be stale
- sends sdk terminator updates to the leader when one is reachable, as creates already are
- dispatches a tunnel create for a terminator the controller already holds unless it is a caught-up leader, since a leader still applying a committed delete would report a deleted terminator as created
- adds router and controller tests for each of these
- hands each conn accepted by the tunnel hosting loop to its own goroutine, so a slow upstream dial or accept completion no longer holds up later dials to the same service
- adds the circuit id to per-connection hosting log lines
- parses a host config's allowed addresses once under a sync.Once, so concurrent dials never see a partially built allowlist
- documents that HostingContext.Dial must be safe for concurrent use
- tests that a stalled dial or accept completion doesn't block conns accepted after it, and that concurrent first address checks see the complete allowlist
- checks the deleting manager's own store for the target inside the delete transaction, before DeleteById, so a child store delete never reaches the parent's record of another type
- moves the edge service manager's fabric-only check from a pre-dispatch read into an ApplyDelete override
- makes IsEntityPresent on an extended child store match FindById, so a router created through the fabric is deletable through the transit router manager, which excludes edge routers explicitly
- adds a flags field to the delete command and DeleteIfExists on the base manager, under which an absent target is a no-op
- routes identity deletes through the base ApplyDelete after the admin precondition, so identities get the presence check and DeleteIfExists
- gives the API session, session and API session certificate managers a direct DeleteIfExists, since they register no delete decoder
- tests cross-type router deletes, the fabric-only check at apply time, base router deletes, and DeleteIfExists on present, absent, fabric-only, wrong-type, identity and local-only targets, at the model level and through the management API
- implements xgress.SignalConnection on xgress_common.XgressConn, so a conn built on it sees the
end of the stream when the far end is an SDK flow-control conn, which signals only with the
xgress EOF. Tunneler intercept, proxy, transport and embedded-SDK initiators now see an SDK
flow-control host finish writing, and tunneler host, transport and edge_transport terminators
see an SDK flow-control client half-close or close, instead of the local read hanging until its
own timeout
- routes the existing FIN-header path and the new EOF path through one idempotent closeWrite,
which falls back to XgressConn's own Close when the underlying conn cannot half-close, so the
xgress teardown that follows does not close it a second time
- removes the never-read writeDone channel and the uncalled IsWriteClosed from XgressConn
- pins XgressConn and edgeXgressConn to SignalConnection at compile time
- updates transport to v2.0.225 in the root and zititest modules, matching the release lines. Its
tcp connection exposes CloseWrite; without that the transport and edge_transport terminators and
the proxy and transport initiators turn a half-close into a full close. The bump also moves
foundation to v2.0.104 and identity to v1.0.143
- adds Test_XgressConnMatrix, which runs the close and half-close conversations across every
initiator conn kind paired with every terminator conn kind, each pair on its own service behind
one shared controller and router. One scenario half-closes the client only after a request and
reply, so an SDK flow-control initiator has processed the terminator's capabilities reply and
sends the xgress EOF rather than the in-band edge FIN
- adds ManagementHelperClient methods that create services, service policies, edge router
policies, service edge router policies and terminators through the typed management client
- returns the started router from CreateEnrollAndStartTunnelerEdgeRouterWithCfgTweaks
- removes the dataflow close and half-close tests that each repeat one cell of the matrix
- adds a startup reconcile that asks the leader to move this node's stored raft address to its configured advertise address, retrying with jittered backoff until the change is visible locally
- wakes the running reconcile on leader events instead of starting a second one, and jitters the first attempt and each wake so controllers reconciling after the same event spread their requests
- keeps checking a node whose copy of the configuration doesn't list it yet, as after a restart before any of the log reached it, instead of treating it as reconciled
- adds an UpdatePeerAddressRequest peer message carrying the member id, the address the node believes is stored and the new address; the leader accepts it only from the node it names and does not forward it
- adds updateMemberAddressAsLeader, which changes a member's address in place, keeping its suffrage, after refusing non-members, addresses held by another member and stale from addresses
- probes the new address as a sanity check, refusing the change if a different controller answers and making it with a warning if the address can't be reached, since some controllers only dial out
- conditions the update on a configuration index read from the raft log and snapshot stores, since GetConfiguration().Index() is always zero in the pinned raft version
- routes AddPeer requests that find an existing member at a new address to the in-place update instead of remove and re-add, identifying the member through GetPeerInfo rather than the request id
- falls back to the member id when the raft transport dials a stored address with no peer connected at it
- adds a probe hello header so probe connections are closed without registering a peer
- excludes self by server id in GetPeerAddresses
- corrects the inverted voter flag in the peer AddPeer log and removes the unused ctrlAddress field
- tests single-node, follower, non-voter and leader address changes, refused and unverified addresses, requests from the wrong sender, membership changes made while a member is offline or during the probe, and configuration lookup across snapshots and log gaps
- tests the reconcile starting on an empty log and waiting until the configuration lists the node
- waits in the HA test harness for a restarted peer's own configuration to list it before restarting it
- adds a changelog entry describing the address update and the leader version requirement
- decodes and validates every command in ApplyTwoPhase, the one path to Raft.Apply for local and forwarded commands, before a rate limiter slot is taken
- adds the same Validatable call to LocalDispatcher.Dispatch so non-HA controllers validate commands too
- halts a member on a committed entry it cannot decode instead of logging and advancing past it, through the hook the critical command path now shares
- passes rate limiter and validation errors from the peer handler through as they are
- states on Validatable that Validate reads only the command and local configuration
- tests the halt, the ordinary error path, the submission check and the local dispatcher
- maps UniqueIndexDuplicateError and ReferenceExistsError in ToApiError, so forwarded duplicate-name creates and referenced deletes return 400 and 409 from a follower instead of 500
- replaces the hand-written error switches in the create, delete, update and patch route helpers with ToApiError
- moves the peer channel API error encoding and decoding into one cause codec registry in the raft package, covering not-found, field, duplicate index, reference exists and schema validation errors
- parses both shapes ValidationErrors marshals to, one error bare or several under Reason and Errors
- sends an unregistered cause as its message on both sides instead of a raw JSON object
- tests each mapping, a round trip for every cause class, and a duplicate-name service create through the API
- skips the queued send when the controller has no channel, leaving the state owed for the next pass
- tests that an unregistered controller is skipped without a panic and synced once it is registered
- adds the changelog entry
- queues metrics messages behind any undelivered ones and returns at the first message no controller accepts, retrying it on the next report instead of looping with no wait
- bounds the undelivered backlog by metrics.messageQueueSize, dropping the oldest messages when it fills
- raises the metrics.messageQueueSize default from 10 to 120 in the router default, the generated router config and the sample configs
- tests that the reporter returns with no controller registered and with every send failing, delivers the backlog in order once a controller accepts, drops the oldest beyond the bound, and propagates exactly one delivered copy