Commit Graph

142 Commits

Author SHA1 Message Date
Paul Lorenz 9a344da855 Update to use transport library 2022-03-31 10:36:28 -04:00
Paul Lorenz b35b532d25 Update to use storage library 2022-03-30 16:22:32 -04:00
Paul Lorenz 1ee1c644c5 Don't send egress on re-route, since it will always be ignored 2022-03-30 13:44:58 -04:00
Cam Otts 648d89fb93 lower circuit retries (#342) 2022-03-30 09:24:45 -05:00
Paul Lorenz 84cfedf482 Add circuit inspection. Move ctrl handler pools to use goroutines.Pool 2022-03-24 13:32:56 -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
Geoff Berl b8e2fb4369 Merge pull request openziti/fabric#327 from openziti/add-global-constants
Added global constants for use in this and other projects
2022-03-03 15:14:50 -05:00
gberl002 a934a76732 Removing contstants files and placing them in respective existing files 2022-03-02 17:19:24 -05:00
Cam Otts 725afe13de added allow traversal flag (#326)
* added allow traversal flag

* Added test to verify a single router connection that is marked untraversable fails path creating

* Updated default cost to be one step above the threshold to avoid overflow.

* Updated checks to only care about middle routers. Fixed relevant unit tests and added test with untraversable middle router.

* Refactor allowTraversal to be flipped to noTraversal

* default noTraversal to false
2022-03-02 10:33:04 -06:00
Paul Lorenz 291c2df0c5 Allow service name for fabric service requests 2022-03-01 12:01:40 -05:00
gberl002 ce9dce27a3 Added global constants files for use in this and other projects 2022-02-28 13:51:23 -05:00
Paul Lorenz 6a21f127ff notify route strategy of failure on timeout 2022-02-25 08:43:56 -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 db9e66e222 Merge pull request openziti/fabric#323 from openziti/circuit-event-refactor
Refactor circuit events. All circuit events now show all circuit data…
2022-02-22 13:33:22 -05:00
Paul Lorenz 883312255f address review comments 2022-02-17 15:47:47 -05:00
Paul Lorenz 91585a84b7 Refactor circuit events. All circuit events now show all circuit data. Fixes openziti/fabric#322 2022-02-17 15:37:53 -05:00
Paul Lorenz 5eaa60e236 Use RemoveCB to update cache atomically. Do uncached lookup when updating cache 2022-02-17 15:35:57 -05:00
Paul Lorenz 01fa63e716 Use updated store events. Fixes openziti/fabric#319 2022-02-17 10:41:38 -05:00
Paul Lorenz 675b16ef98 Don't call message sends in control channel bind 2022-02-10 09:20:23 -05:00
Paul Lorenz 84ae5576e1 Update to use channel library 2022-01-27 16:46:21 -05:00
Paul Lorenz 4f5e7b3591 check idle circuits against path 2022-01-24 13:07:14 -05:00
Paul Lorenz c425cc84a8 Move some events/metrics code from foundation to fabric 2022-01-20 17:22:50 -05:00
Paul Lorenz e781e3c713 Update control channel to new channel API 2022-01-19 08:15:33 -05:00
Paul Lorenz a918f1be0d Merge pull request openziti/fabric#301 from openziti/fix-panic-on-missing-router
Fix panic on router missing message. Tidy logging, put more variables…
2022-01-10 16:16:22 -05:00
Paul Lorenz 3c098defb0 Add more router connect error logging (#300)
* Add more router connect error logging, fix cert validity check, handle multiple certs properly
2022-01-03 14:25:30 -05:00
Paul Lorenz eb5e5ab4cc Fix panic on router missing message. Tidy logging, put more variables in fields 2022-01-03 09:34:18 -05:00
Paul Lorenz 0164e5572e Add support for inspect 2021-12-03 16:13:41 -05:00
Paul Lorenz ba43810ffa Remove error return that's always nil 2021-12-01 17:15:27 -05:00
Paul Lorenz 00957fe8e6 Implement router update/patch 2021-11-30 14:26:07 -05:00
Paul Lorenz 5a54c9b041 Add circuit router implementation 2021-11-30 14:05:23 -05:00
Paul Lorenz ea1bac0b17 Add link implementation. Convert link to string from identity.TokenId 2021-11-30 14:05:21 -05:00
Paul Lorenz ee15d29be5 Add initial rest interfaces for links and circuits 2021-11-30 13:57:36 -05:00
Paul Lorenz d4f2d48545 Use 64 bit ids instead of 32 ids for links and circuits 2021-11-30 13:57:36 -05:00
Paul Lorenz 52cfbbbe29 Add REST based management API 2021-11-30 13:57:35 -05:00
Paul Lorenz 3a50999365 Add cache of links by router 2021-11-23 08:24:24 -05:00
Paul Lorenz 3968c268b9 Fix benchmark. Add some additional tuning 2021-11-22 17:35:12 -05:00
Paul Lorenz 1efd4ebb3d Fix routing benchmark 2021-11-22 15:01:25 -05:00
Paul Lorenz 51a4fe8ed9 Import route evaluation with more efficient data structure 2021-11-19 15:17:56 -05:00
Paul Lorenz 4847cf1453 Add routing perf test and fix link cost check 2021-11-19 15:08:29 -05:00
Paul Lorenz 6ba7264ff3 Do additional cert chain and verify links with controller 2021-11-12 15:36:05 -05:00
Paul Lorenz 79fe8c7ddb Add terminator to service events 2021-10-06 11:25:51 -04:00
Paul Lorenz e3fe91a528 Remove unused map. Removed code could panic b/c of race condition 2021-09-09 10:28:20 -04:00
Paul Lorenz 58e159236d Use string id instead of identity where we don't need certs 2021-09-03 14:10:28 -04:00
ziti-ci 23a9da54e7 Allow injecting context into path creation/establishment operations 2021-08-06 16:34:57 -04:00
Paul Lorenz 21c261fb19 Rename session -> circuit 2021-08-04 13:17:39 -04:00
Paul Lorenz bcd1c374e8 Rename circuit to path 2021-08-04 13:16:09 -04:00
Paul Lorenz b6026b0024 Reduce duplicate links by allowing pending links a short window to be completed before we try again 2021-08-04 13:03:47 -04:00
Michael Quigley fa9da87419 Refactor ctrl_pb.Dial to support both LinkId and RouterId. (#238) 2021-05-14 14:35:12 -04:00