Commit Graph

185 Commits

Author SHA1 Message Date
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 60c4142bf6 Merge pull request openziti/fabric#296 from openziti/inspect-support
Add support for inspect
2021-12-13 09:25:56 -05:00
Paul Lorenz 7a4c831df9 Remove bolt trace which required custom bolt. Remove stackdump_tool, which is moving to ziti-ops 2021-12-10 17:48:27 -05:00
Paul Lorenz 0164e5572e Add support for inspect 2021-12-03 16:13:41 -05:00
Andrew 82b5b023a2 Merge pull request openziti/fabric#295 from openziti/add.router.info.to.already.connected
adds router id and name to already connected error
2021-12-03 09:11:10 -05:00
Paul Lorenz ba43810ffa Remove error return that's always nil 2021-12-01 17:15:27 -05:00
Paul Lorenz 5b6a2eb988 Fix fabric auth and add tests 2021-12-01 17:03:41 -05:00
Andrew Martinez ab4e649d61 adds router id and name to already connected error 2021-12-01 14:45:01 -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 390aef981b Merge pull request openziti/fabric#292 from openziti/fix-potential-deadlock
recieve handlers should never send as they may block forever if the u…
2021-11-30 13:40:54 -05:00
Paul Lorenz b9e87a1597 recieve handlers should never send as they may block forever if the underlying channel closes 2021-11-30 12:55:37 -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 c5d2e481ae Add router ids to link metrics. Fixes openziti/fabric#275. Fix panic on router shutdown if router is stopped before ctrl channel is established 2021-11-10 12:45:54 -05:00
Andrew Martinez d305026980 exposes controller.Identity() to avoid re-parses 2021-10-19 09:38:14 -04:00
Andrew Martinez 90824085a1 fix refactoring of 'config' in strings 2021-10-18 15:39:36 -04:00
Andrew Martinez c6b54e8606 updates to new foundation version
- updated identity module
- centralizes identity references
- removes old parsing logic
2021-10-18 15:25:07 -04:00
Paul Lorenz 79fe8c7ddb Add terminator to service events 2021-10-06 11:25:51 -04:00
Paul Lorenz 7233d18463 Remove HA terminator strategy since it's an incomplete solution 2021-09-13 09:51: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
Paul Lorenz 70c10f0e15 Allow querying terminators by service.name and router.name 2021-08-18 14:55:19 -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
Paul Lorenz cb70e33fa0 Improve link logging. Add destination id to xlink 2021-07-30 10:18:45 -04:00
Paul Lorenz c45e741bbd Add controller health check (#249)
* Add controller health check and make controller and router health checks consistent
2021-06-22 14:01:45 -04:00
Paul Lorenz 375dfd03b4 Add configurable router health check 2021-06-17 12:32:16 -04:00
Michael Quigley fa9da87419 Refactor ctrl_pb.Dial to support both LinkId and RouterId. (#238) 2021-05-14 14:35:12 -04:00
Andrew Martinez ae85cbad0b adds xweb share config validation points, time.ParseDuration
- split xweb/config.go into multiple files by type
- allow api factories to validate shared config
- use time.ParseDuration for duration config values in core xweb options
- add interface documentation for api factories
- merge http.request context values for xweb
2021-05-06 15:22:03 -04:00
Andrew Martinez 68c4d9a030 fixes xweb comments, fixes xweb startup
- fixes multi server startup would block on first server
- fixes comments, goland was complaining
- adds better output for what APIs are starting on what servers/bind
  points
- adds IsHandled() demuxer
2021-05-05 14:11:24 -04:00
Paul Lorenz 0173a633c6 Add nill check on terminator lookup. Fix spelling mistake 2021-04-29 18:56:04 -04:00
Paul Lorenz 478d8c1e0b Remove eXtensible Terminator Validator framework (xtv) as it's now unused.
terminator validation can be done in custom control channel handlers instead
2021-04-29 12:45:07 -04:00
Paul Lorenz 14c632c862 Add events for router online/offline 2021-04-22 11:27:10 -04:00
Andrew Martinez deb46432e1 initial xweb implementation
- adds config structures
- adds server structures
- simplifies interfaces
- removed unused remnants
- refactor work
- adds doc
2021-04-14 13:19:39 -04:00
Andrew Martinez 4d9ea4e504 update cache instead of clearing 2021-04-08 16:00:42 -04:00
Andrew Martinez b9b624a0a0 add ability to clear the cached state of a router from bbolt
Will be used for enrollment extension where the fingerprint has been
updated
2021-04-08 16:00:41 -04:00
Paul Lorenz 270fd077b1 Allow way to notify router of rename 2021-04-07 21:29:25 -04:00
Paul Lorenz d0ceb31274 Change default metrics report interval to 1 minute 2021-03-31 18:48:57 -04:00
Paul Lorenz 1d6bec6a09 Expose IsSystem to the model level as a read-only property 2021-03-26 12:02:44 -04:00