Commit Graph

37 Commits

Author SHA1 Message Date
Paul Lorenz 187aa11f24 Own the metrics wire format in ziti. Fixes #4036
- adds a common/servermetrics package that owns the metrics MetricsMessage wire
  format and the reporting/usage subsystem (message builder, usage registry,
  interval and usage counters), wrapping the openziti/metrics Registry for
  metric collection
- moves the controllers metrics reporter into the router package and removes it
  from the shared metrics package, breaking a common -> router/env import cycle
- repoints controller and router consumers to common/servermetrics; base metric
  collection stays on openziti/metrics
- keeps the proto field numbers and the metrics content-type identical so the
  encoding is byte-compatible across the move, and uses a distinct proto package
  name so ziti's and the library's messages coexist without a global proto
  registry clash
- adds a round-trip test asserting wire compatibility with the library's
  MetricsMessage
- leaves openziti/metrics unchanged, so sdk-golang and the shared xgress data
  plane are unaffected
2026-06-29 22:37:25 -04:00
Paul Lorenz a41344c2ca Emit source_entity_id label on prometheus metrics. Fixes #4035
- adds a source_entity_id label to prometheus metric output when the metrics event carries a source entity id
- distinguishes per-router ctrl channel metrics and per-link metrics that share a single source_id, preventing Prometheus from collapsing them into identical time series and dropping samples
- adds a test verifying the label is emitted per entity and that distinct entities produce distinct series
- records the fix in the changelog
2026-06-25 15:18:03 -04:00
Paul Lorenz 4df6ae564d Update package paths for newly imported storage and ziti-db-explorer packages 2026-04-16 09:18:55 -04:00
Paul Lorenz 90112219a3 Support multi-underlay control channels. Fixes #3550 2026-02-11 14:20:29 -05:00
Paul Lorenz c69b07b74d Remove created/updated/deleted terminator events which are obsoleted by entity change events. Fixes #3531 2026-02-04 11:16:59 -05:00
Paul Lorenz bc26bf58af Cleanup type check error messages 2026-01-28 15:23:51 -05:00
Paul Lorenz da9ef76d19 Optimize imports 2026-01-28 15:01:35 -05:00
Paul Lorenz 2ffc6e1151 Update ziti version to 2.0 2026-01-28 12:34:10 -05:00
Paul Lorenz af09450961 Fix golangci-lint errors 2025-10-17 12:54:25 -04:00
Paul Lorenz 653063767e Add alert events. Fixes #3264 2025-10-15 14:21:07 -04:00
Paul Lorenz 23dc0489d5 Merge pull request #3243 from ffaraone/feat/az_servicebus_evt_logger
Azure Service Bus logger for controller event streaming
2025-09-05 11:56:10 -04:00
Francesco Faraone f0dbcd512a Azure Service Bus logger for controller event streaming 2025-09-03 10:05:37 +02:00
Paul Lorenz 0b5e36c652 Add edge session events for JWT edge sessions. Fixes #3225 2025-09-02 15:37:02 -04:00
Paul Lorenz c4bfd72e22 Add instance id to terminator events. Fixes #3052 2025-05-29 09:57:15 -04:00
Andrew Martinez 0506ef251b fix.3048.auth.events.impropert.chain.flag (#3050)
fixes #3084 adds events and improper chain flag

- splits cert resolution into root, legacy root + intermediate,
  and third-party pool. Allowing the detection of client authentication
  with incomplete chains if root + intermediate succeeds after root only fails
- adds `improperClientCertChain` to API Sessions and Current API Session.
  Added for OIDC and legacy auth. Set to true when a client certificate is used
  that was issued by the network and did not pass the root-only pool.
2025-05-21 11:49:39 -04:00
Paul Lorenz 110446a990 Add doc generator for events. Add event doc. Fixes #2593 2025-01-31 12:23:43 -05:00
Paul Lorenz 71c7f6bb00 Add event source id to all events. Fixes #2619 2025-01-14 12:17:48 -05:00
Paul Lorenz 16f0a858e6 Add controller connect events. Fixes #1835. Fixes #2234 2024-11-01 15:21:01 -04:00
Paul Lorenz 694b9dc18d Add events for JWT session for create/refresh/exchange. Fixes #2119 2024-09-30 15:32:48 -04:00
Kenneth Bingham 9e9f75b64e append newline to stdout events 2024-07-17 13:54:01 -04:00
Paul Lorenz c3b43133d1 Merge fabric and controller model code. Fixes #2205 2024-07-09 16:11:01 -04:00
Paul Lorenz fab81e4cd4 Add terminator chaos testing and fix issues found. Fixes #1794 Fixes #1369 2024-03-12 10:31:36 -04:00
Paul Lorenz 0900e24600 Fix entity event processing panic. Fixes #1725 2024-02-05 18:30:42 -05:00
Paul Lorenz c4abcae949 Link management fixes. Fixes #1692 Fixes #1693 2024-01-19 17:33:21 -05:00
Paul Lorenz a84369a6e9 Consolidate fabric and edge persistence code. Fixes #1555 2023-12-06 17:36:37 -05:00
Andrew Martinez 5ad6bfa9d4 fixes '+Inf' being returned in metrics test if checked too quickly
Thank you @plorenz
2023-10-25 11:36:19 -04:00
Paul Lorenz 4c803d950f stop entity change event loop when controller shuts down. Fixes #1406 2023-10-05 10:03:21 -04:00
Paul Lorenz 73ad4c9c84 Handle fallout from putting and fabric and edge into the same project 2023-09-29 10:51:56 -04:00
Paul Lorenz f3d67b7f49 Update fabric imports 2023-09-28 23:34:28 -04:00
Paul Lorenz 08e51b8166 Merge remote-tracking branch 'fabric/main' into merge-fabric 2023-09-28 23:33:13 -04:00
Paul Lorenz 07da3cd513 Merge remote-tracking branch 'edge/main' into merge-edge
Updated package names
Merged golangci-lint configurations
2023-09-27 16:54:53 -04:00
Paul Lorenz 5763b91d9f Stop entity change loop when controller stops. Fixes openziti/fabric#786 2023-09-01 15:01:13 -04:00
Paul Lorenz a9074719ce Fix namespace conflicts in controller/events 2023-08-30 17:16:10 -04:00
Paul Lorenz 5b59ae13ee Update for moved packages in fabric 2023-08-23 09:40:05 -04:00
Paul Lorenz 509364d908 Remove trace events from dispatcher. Move trace to common 2023-08-16 12:39:42 -04:00
Paul Lorenz 8dbc759d45 move event and events packages to controller 2023-08-10 17:10:17 -04:00
Paul Lorenz 7d6f4ef700 Reorganize code in preparation for merging to ziti repo, first pass. 2023-08-04 09:48:06 -04:00