Commit Graph

121 Commits

Author SHA1 Message Date
Paul Lorenz d21b405a21 Fix panic. Fixes #1055 2022-06-14 21:52:02 -04:00
Paul Lorenz 0d758b4a37 Merge pull request #1028 from openziti/fix-create-terminator-race-condition
If conn is closed after terminator create, remove terminator.
2022-06-06 10:34:31 -04:00
Paul Lorenz 366b60428d Tidy tunneler code a bit. Remove Start method. Have service contain related fabric provider 2022-06-03 15:01:00 -04:00
Paul Lorenz bfdb275fd0 If conn is closed after terminator create, remove terminator.
Also clean up some logging and make sure terminatorId is handled
in a threadsafe manner. Fixes #1027
2022-06-03 14:54:05 -04:00
Paul Lorenz ee39c789d9 Fix panic if close callback isn't set yet. Fixes #1025 2022-06-02 23:27:40 -04:00
Paul Lorenz 7cf9dc135d Initial support for raft and command style architecture 2022-06-01 23:52:07 -04:00
Andrew Martinez 7381423974 use cmap generics, update fabric 2022-05-27 11:02:51 -04:00
Paul Lorenz ca56e6814a Update for fabric api name change 2022-05-20 11:05:11 -04:00
Paul Lorenz 5a7e1a8cab Add goroutine pool metrics 2022-05-13 14:29:12 -04:00
Cam Otts e5d1982785 threaded timeout from fabric (#974)
* threaded timeout from fabric

* pr comments

* fix timing

* removed utc on deadline check

* small updates

* updated fabric version and add zero check to timeoutdeadline

* fix wrong fabric version

* Update deps

Co-authored-by: Cam Otts <cam@Cams-MacBook-Pro.local>
Co-authored-by: Paul Lorenz <paul.lorenz@netfoundry.io>
2022-05-13 11:11:25 -05:00
Paul Lorenz b690993263 Update to latest protobuf library 2022-05-10 14:55:54 -04:00
Paul Lorenz 2b2726ca32 Update to go 1.18 and transport/v2 2022-05-10 13:11:12 -04:00
Cam Otts bae2b2afda added small logging on successful terminator removal (#997)
* added small logging on successful terminator removal

* update logging
2022-05-06 13:42:03 -05:00
Paul Lorenz b755b40605 Restablish router/tunneler hosting when the ctrl ch reconnects 2022-05-02 17:20:30 -04:00
Paul Lorenz 8d9dd97bb4 Update for fabric api changes 2022-05-02 17:19:47 -04:00
Paul Lorenz 9ac717e168 Update deps and fix test 2022-04-19 22:30:37 -04:00
Paul Lorenz 01bea19e1f Update to use transport and storage libs. Use fabric config instead of foundation/config 2022-03-30 22:49:46 -04:00
Paul Lorenz fe51eb7b2c remove unused lined 2022-03-30 16:36:43 -04:00
Cam Otts f3a1fcbff5 Route error codes (#933)
* added local address forwarding to controller

* added error wrapping for dial erros

* updated fabric req

* added some invalid terminator errors

* remove some error wrapping
2022-03-29 08:53:21 -05:00
Paul Lorenz 329d1eb4d1 Update deps and fix test 2022-03-28 18:19:14 -04:00
Paul Lorenz 9d5ba0ccec Update test for fabric changes 2022-03-23 15:47:42 -04:00
Paul Lorenz f02d31aed8 Update deps and adjust for update channel API 2022-03-11 13:20:17 -05:00
Paul Lorenz ce3b70ce2f Update for link changes 2022-03-07 14:23:35 -05:00
gberl002 ada7cdd348 Updating test to work with the latest global config constants 2022-03-03 15:14:19 -05:00
Andrew Martinez 3e5f08c99f adds cert authenticator extension endpoint
- adds endpoint POST /edge/management/v1/authenticator/{id}/extend
- adds endpoint POST /edge/management/v1/authenticator/{id}/extend-verify
- adds endpoint POST /edge/client/v1/authenticator/{id}/extend
- adds endpoint POST /edge/client/v1/authenticator/{id}/extend-verify
- add logic that allows a client endpoint to extend the valid period for
  their current certificate authenticator
- requires clients to use their existing client cetificate for extension
- requires clients to verify they have received the new public key
- allows clients to use a new private key if desired
- allows only 1st party certificate authenticators to extend
- adds authenticatorId to apiSession for persistence, model, api model
- add session cert to already authenticated session on extend
- removes empty test stub
2022-03-02 09:20:08 -05:00
Paul Lorenz abec09180f Fix cert checker tests to account for daylight savings time 2022-02-17 13:44:13 -05:00
Paul Lorenz 06679b93a9 Remove fabric callback that are no longer needed 2022-02-17 11:13:15 -05:00
Paul Lorenz f14ff5e0ed Update xgress edge to updated channel library/api 2022-01-31 22:24:38 -05:00
Paul Lorenz a6428df622 Update for channel api and xgress api updates 2022-01-31 15:55:19 -05:00
Paul Lorenz 3b75094429 Update router side to use channel library for control channel 2022-01-28 15:48:15 -05:00
Paul Lorenz 5be9095e60 Update to use channel library 2022-01-28 11:35:15 -05:00
Paul Lorenz fd866e7f3d Cache tunnel sessions in LRU cache to avoid creating extraneous sessions 2022-01-13 12:38:54 -05:00
Andrew Martinez 97773f5917 update log messages w/ router context 2021-12-20 09:20:10 -05:00
Andrew Martinez dae084f61c alters router/controller enrollment extension logic
- routers propertly wait on certs that are about to expire
- routers no longer send multiple extension requests
- routers now request cert verification
- routers now verify new certs before saving
- controller now supports verification requests
2021-12-20 09:19:10 -05:00
Paul Lorenz 66638077b4 More logging tidying around terminators 2021-12-15 13:05:55 -05:00
Paul Lorenz c5c2af9737 Only match terminator if the id also matches 2021-12-11 00:35:24 -05:00
Paul Lorenz bfcb037783 Initial pass at fabric rest api working (#838)
* Update for fabric rest controller changes
2021-11-30 16:30:17 -05:00
Andrew 62ae85539f Merge pull request #819 from openziti/gosec.improvements
fixes gosec output of a few items
2021-11-02 09:05:22 -04:00
Curt Tudor 91badfd2e8 make xgress_geneve compile on MacOS (#820) 2021-10-22 13:57:41 -04:00
Andrew Martinez c8de8a8fac fixes gosec output of a few items 2021-10-21 17:40:52 -04:00
Andrew Martinez 9c89cb08c2 fix enrollment issues if no previous enrollment exists 2021-10-19 11:25:56 -04:00
Andrew Martinez 6612ad9c14 fix startup timing issues 2021-10-19 10:58:59 -04:00
Andrew Martinez a829f3ae27 fix bad merges w/ build flags on geneve 2021-10-18 16:13:17 -04:00
Andrew Martinez 58fa1887a9 remove debug flag 2021-10-18 16:11:01 -04:00
Andrew Martinez 45158ff864 updates to newest foundation/fabric/sdk-golang 2021-10-18 16:07:33 -04:00
dariuszSki 99f3102c27 linux filename update 2021-10-13 23:50:50 -04:00
dariuszSki 57ff51ff78 added empty gemeve listener for darwin and windows 2021-10-13 23:48:03 -04:00
Paul Lorenz 202fbce026 Update missed hop id. Save hopIds for entity ids 2021-10-12 09:37:37 -04:00
Paul Lorenz 846aae9ec3 Update deps. Only use hopId for entity ids 2021-10-11 22:28:55 -04:00
Paul Lorenz d0de60901c Add xgress control/traceroute support 2021-10-11 22:28:53 -04:00