Commit Graph

32 Commits

Author SHA1 Message Date
Paul Lorenz 77bce93e85 Refactor events subsystem. Add link events. Fixes openziti/fabric#415
Previously we often had two sets of events, one in the network
package, and then another in the events package. We now only
have one, in the events package. Events now have a public API,
 with minimal deps. There's an implementation package which has
the dependencies. This allows the network package to generate
events, without have a circular dependency on the events
implementation package.
2022-07-15 18:31:52 -04:00
Paul Lorenz a731cd9aec Circuit failed events and rename terminator identity -> instanceId 2022-06-22 14:34:32 -04:00
Cam Otts 0c7ff2bd5e threaded a timout through fabric (#356)
* threaded a timout through fabric

* updated default timeout

* pr comments

* fix timing

* applied pr comments

* removed one more utc

* updated to time until and conditionally add deadline

* signed commit


* small proto change

* regenerate pb

* missed extra import
2022-05-12 14:32:18 -05:00
Paul Lorenz 2cdf3f469c Verify router instead of link when getting new link dial 2022-05-10 14:26:55 -04:00
Paul Lorenz 18539faf87 Add dest type to routing so we don't need to overload ids 2022-04-27 11:20:02 -04:00
Cam Otts 405492ce92 Route error codes (#335)
* Initial work on adding route error codes to route responses

* updated messaging

* Split out terminator incrementors
Added handling for Service Errors
Added initial steps at deleting misbehaving terminators

* Added test for destroying and settin gprecedence on terminators
Added handling for terminator errors in routing

* inverted error switch

* cleanup for pr

* PR comments

* refactored conditional printing to account for single node paths that don't have links

* added error log when route status

* added another misconfigured error

Co-authored-by: Paul Lorenz <paul.lorenz@netfoundry.io>
2022-03-23 12:51:49 -05:00
tburtchell 2f8a608c4c Replacing link 'type' with 'protocol' and 'costTags' (#336)
* Replacing link 'type' with 'protocol' and 'costTags'
2022-03-22 09:06:02 -04:00
Paul Lorenz 2b7db10913 Allow routers more control over link management (#318)
* Allow routers more control over link management
2022-03-07 12:22:17 -05:00
Paul Lorenz 291c2df0c5 Allow service name for fabric service requests 2022-03-01 12:01:40 -05:00
Cam Otts be30ee8026 Added cost to routers and relevant persistence and path checking. (#324)
* Added cost to routers and relevant persistence and path checking.

* removed router cost from config

* changed cost to be required on update

* removed some import reorderings and added fingerprint to be required

* missed one line
2022-02-23 10:14:00 -06:00
Paul Lorenz e9133f4a94 Update router side of control channel to use channel library 2022-01-28 12:38:26 -05:00
Andrew Martinez 08e658514a adds newListener and newAddress options for controller ip/hostname move
- ctrl section for fabric now supports newListener addresses, sent on
  router connect
- xweb bindPoints now support newAddress, sent as a header on every
  response
2022-01-27 10:17:53 -05:00
Paul Lorenz 6ba7264ff3 Do additional cert chain and verify links with controller 2021-11-12 15:36:05 -05:00
ziti-ci 23a9da54e7 Allow injecting context into path creation/establishment operations 2021-08-06 16:34:57 -04:00
Paul Lorenz f49e8bac5d Namespace protobufs with ziti 2021-08-05 15:39:53 -04:00
Paul Lorenz 21c261fb19 Rename session -> circuit 2021-08-04 13:17:39 -04:00
Michael Quigley fa9da87419 Refactor ctrl_pb.Dial to support both LinkId and RouterId. (#238) 2021-05-14 14:35:12 -04:00
Michael Quigley 152da46d01 Report idle sessions to controller. (#173) 2021-03-05 13:45:43 -05:00
Paul Lorenz 2b283dcdce Cleanup go-routines on shutdown. Allow Xtrl instances to contribute trace decoders 2021-02-17 20:22:14 -05:00
Michael Quigley 517d6dba8d Add 'ForwardFault to ctrl_pb.Fault. (#184) 2021-02-11 12:42:50 -05:00
Michael Quigley be69649bf1 Attempt encoding support in the route plumbing. Allows the route sender to more accurately handle unhappy scenarios. (#168) Fix for 'UpdateTerminatorRequestType' typo in protobufs. (#176). 2021-02-09 13:36:23 -05:00
Paul Lorenz 9f3182942e Add Xtensible Terminator Validation framework 2020-09-25 11:01:58 -04:00
Paul Lorenz 150f2a112a Add support for addressable terminators 2020-09-25 11:01:58 -04:00
Paul Lorenz c7ae352255 Fix xgress start race condition. Fixes GH-117 2020-08-11 09:19:47 -04:00
Paul Lorenz 414cb52953 Implement update terminator for ctrl channel. Lots of xt fixes. Log level tidying 2020-05-06 14:29:10 -04:00
Paul Lorenz e9575bb717 Integrate Xt into smartrouting/circuit creation. Includes several Xt cleanups (#87)
Integrate Xt into smart routing

For Xt:
* weights -> costs
* drop preferred precedence
* Allow larger cost ranges
* Add failure costs and common cost visitor
2020-04-30 14:50:07 -04:00
Paul Lorenz df0d35e576 Sync terminators when routers connect so invalid terminators can be r… (#86)
* Sync terminators when routers connect so invalid terminators can be removed
2020-04-27 15:56:54 -04:00
ekoby 8c48ac871e relocate metrics to ziti-foundation (#63)
metrics package is now in ziti-foundation
* update and tidy go.mod
* fix: use ziti-foundation/metrics
2020-03-24 18:37:28 -04:00
Paul Lorenz 6fdd5bcda5 Add support for multiple endpoints to services and sync model abstrac… (#53)
* Add support for multiple terminators to services and sync model abstractions with edge

* Add Snapshot to db.Db

* Make API friendly errors

* Add association querying. Consolidate Entity* interfaces
2020-03-19 13:23:16 -04:00
ekoby 7f6fb5e5eb initial support for passing crypto material (#41)
implement passing information between hosting and dialing endpoints (used for crypto key exchange)
2020-02-27 12:57:39 -05:00
Michael Quigley 42307baf3d Fixed. 2020-01-17 13:25:53 -05:00
Michael Quigley d17870d35b Remove stuttered naming. 2019-12-03 12:41:13 -05:00