9244 Commits

Author SHA1 Message Date
Paul Lorenz f4eee4f480 Merge pull request #4555 from openziti/fix.4552.udp-listener-deadlock
Stop the UDP xgress listeners deadlocking their own event loop
2026-11-05 13:41:01 -05:00
Paul Lorenz 52c8fa69ab Stop the UDP xgress listeners deadlocking their own event loop. Fixes #4552
- 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
2026-11-05 11:23:23 -05:00
Paul Lorenz 81d1199a0a Merge pull request #4593 from openziti/fix.4592.cli-id-name-resolution
Consolidate CLI id-or-name resolution. Fixes #4592
2026-11-05 10:54:57 -05:00
Paul Lorenz cddb0a8574 Consolidate CLI id-or-name resolution. Fixes #4592
- 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
2026-11-05 10:54:20 -05:00
Paul Lorenz d57aec265b Merge pull request #4624 from openziti/fix.4478.ctrl-heartbeat-reconnect
Reconnect the control channel on heartbeat timeout and redial a standalone controller when it closes
2026-11-05 10:45:00 -05:00
Paul Lorenz 9c3c9033b3 Reconnect the control channel on heartbeat timeout and redial a standalone controller when it closes. Fixes #4478
- 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
2026-11-05 10:08:39 -05:00
Paul Lorenz 1f5d37dcf4 Merge pull request #4632 from openziti/backcompat-validation
Run the backward compatibility test in Validation (All) and stop CI fablab runs leaking AWS resources
2026-11-04 20:52:35 -05:00
Paul Lorenz a3f74aec7c Compress large fablab logs on the hosts before CI fetches them
- 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
2026-11-04 16:58:43 -05:00
Paul Lorenz 61d672f25b Log each forwarded payload and acknowledgement at trace rather than debug
- 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
2026-11-04 16:58:43 -05:00
Paul Lorenz 89ac381c72 Update fablab so terraform outlives a cancelled fablab command. For openziti/fablab#596
- 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
2026-11-04 15:27:16 -05:00
Paul Lorenz 2425ba04d5 Gate the smoke test's SDK paths on routers that handle OIDC sessions
- 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
2026-11-04 15:26:30 -05:00
Paul Lorenz 9c673c9bfb Let a manual backward compatibility run pass extra fablab labels
- 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
2026-11-04 15:26:30 -05:00
Paul Lorenz e24fce8297 Gate the smoke test's config and tests on what each router version supports
- 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
2026-11-04 15:26:30 -05:00
Paul Lorenz 50f7656573 Reclaim the AWS resources that cancelled CI fablab runs leave behind
- 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
2026-11-04 15:26:30 -05:00
Paul Lorenz 887db1a950 Run the backward compatibility smoke test as part of Validation (All)
- 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
2026-11-04 15:26:30 -05:00
Paul Lorenz c736772b7e Merge pull request #4609 from openziti/fix.4573.ctrl-list-stale-follower
Stop routers dropping controllers on a follower's stale controller list
2026-11-04 15:13:43 -05:00
Paul Lorenz d930a9b418 Keep channel's info logs out of ziti agent's stderr. Fixes #4737
- 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
2026-11-04 13:41:16 -05:00
Paul Lorenz e9f33732f6 Update changelog. For #4573
- 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
2026-11-04 13:01:07 -05:00
Paul Lorenz 335ff57646 Update dependencies. For #4573
- 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
2026-11-04 12:44:33 -05:00
Paul Lorenz 942d1a72bc Stop routers dropping controllers on a follower's stale controller list. Fixes #4573
- 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
2026-11-04 12:38:24 -05:00
Paul Lorenz 19217f247a Merge pull request #4516 from openziti/fix.4513.policy-eval-scans
Evaluate policies against candidate entities instead of scanning the store
2026-11-04 12:33:40 -05:00
Paul Lorenz a716939dcc Keep a service policy's posture check roles when its type changes. Fixes #4726
- 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
2026-11-04 11:24:11 -05:00
Paul Lorenz 6a0ed68266 Add policy write benchmarks at the store and management API levels. For #4513
- 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
2026-11-04 11:24:11 -05:00
Paul Lorenz 13adb7cda8 Maintain the posture check to service tables from both sides. Fixes #4515
- 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
2026-11-04 11:24:11 -05:00
Paul Lorenz 4d45c45aec Re-evaluate policy links when only the semantic changes. Fixes #4514
- 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
2026-11-04 11:24:11 -05:00
Paul Lorenz f8be418b33 Evaluate policies against candidate entities and policies instead of scanning. Fixes #4513
- 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
2026-11-04 11:24:11 -05:00
Paul Lorenz e321ccfaa9 Merge pull request #4518 from openziti/fix.4509.api-timeout-write-deadline
Return a readable 503 when an API request times out
2026-11-04 11:23:20 -05:00
Paul Lorenz 54bfb3ca21 Return a readable 503 when an API request times out. Fixes #4509
- 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
2026-11-03 23:29:55 -05:00
Paul Lorenz df3b794fd0 Merge pull request #4584 from openziti/fix.4580.terminator-reconcile
Reconcile terminator cost, precedence and peer data after a takeover or update
2026-11-03 21:03:38 -05:00
Paul Lorenz 2349cc921b Record ER/T health check cost and precedence for terminator re-creates. Fixes #4596
- 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
2026-11-03 20:53:57 -05:00
Paul Lorenz 05a6bc23bb Reconcile terminator cost, precedence and peer data after a takeover or update. Fixes #4580
- 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
2026-11-03 20:53:57 -05:00
Paul Lorenz 35a17c1128 Merge pull request #4572 from openziti/delete-existence-in-apply
Decide delete existence in Apply and add DeleteIfExists
2026-11-03 15:55:04 -05:00
Paul Lorenz e86df4f838 Merge pull request #4604 from openziti/fix.4579.hosted-accept-per-conn
Handle each hosted accept on its own goroutine. Fixes #4579
2026-11-03 13:23:27 -05:00
Paul Lorenz 869ff7d3ca Handle each hosted accept on its own goroutine. Fixes #4579
- 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
2026-11-03 10:43:13 -05:00
Paul Lorenz ae367195a4 Decide delete existence in Apply and add DeleteIfExists. Fixes #4571
- 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
2026-11-03 00:50:37 -05:00
Paul Lorenz 3057b1e6fe Merge pull request #4562 from openziti/identity-admin-precondition
Decide identity admin protection inside Apply, gate granular permissions on MFA, and keep the default admin an admin
2026-11-03 00:50:33 -05:00
Paul Lorenz bfeee0cf64 Merge pull request #4520 from openziti/fix.4394.xgress-conn-half-close
Relay an SDK flow-control conn's close to tunneler, proxy and transport xgress conns
2026-10-30 16:50:44 -04:00
Paul Lorenz 70f2c2a91c Half-close the shared xgress conn when the fabric-to-app flow ends. Fixes #4394
- 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
2026-10-30 15:08:59 -04:00
Paul Lorenz 843cfd2375 Merge pull request #4477 from openziti/ha.reconcile-advertise-address
Reconcile the raft advertise address with the controller config on startup. Fixes #3588
2026-10-28 23:18:32 -04:00
Paul Lorenz 7f2f619e88 Reconcile the raft advertise address with the controller config on startup. Fixes #3588
- 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
2026-10-28 20:54:56 -04:00
Paul Lorenz 4ba730569d Merge pull request #4532 from openziti/raft-dispatch-hardening
Validate commands on the raft leader before they enter the log
2026-10-28 20:07:52 -04:00
Paul Lorenz 9ca996e3c4 Validate commands on the raft leader before they enter the log. Fixes #4531
- 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
2026-10-28 19:45:24 -04:00
Paul Lorenz 7ffafc8079 Merge pull request #4539 from openziti/peer-error-encoding
Carry structured API error causes across the peer channel
2026-10-28 18:24:13 -04:00
Paul Lorenz a827bfbe14 Carry structured API error causes across the peer channel. Fixes #4538
- 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
2026-10-28 17:22:07 -04:00
Paul Lorenz 53c05e38ed Merge pull request #4549 from openziti/swallowed-errors
Return errors from identity creation with authenticators and from name validation on update
2026-10-28 17:16:13 -04:00
Paul Lorenz 3b0058ec16 Merge pull request #4496 from openziti/xgress-initiator-half-close-test
Cover an SDK flow-control dialer's half-close to a legacy edge host
2026-10-28 17:14:34 -04:00
Paul Lorenz 993d746bd9 Merge pull request #4492 from openziti/fix.openziti.ziti.4489.link-state-sync-nil-ctrl-channel
Skip the link state sync to an unregistered controller
2026-10-28 14:51:34 -04:00
Paul Lorenz 1659019904 Skip the link state sync to an unregistered controller. Fixes #4489
- 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
2026-10-28 14:36:51 -04:00
Paul Lorenz 6b23d08e4b Merge pull request #4504 from openziti/fix.router-metrics-reporter-spin
Stop the router spinning on metrics while no controller is registered
2026-10-28 14:30:28 -04:00
Paul Lorenz 8136085985 Stop the router spinning on metrics while no controller is registered. Fixes #4503
- 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
2026-10-28 14:23:05 -04:00