Commit Graph

1206 Commits

Author SHA1 Message Date
Andrew ecc404ab8a Merge pull request #494 from openziti/remove.posture.timer
moves posture data to not time out
2021-02-11 14:12:12 -05:00
Andrew Martinez 6a2c82deca add timeout posture query property, -1 == no timeout
Provides a location for future configurable timeouts and allows
SDKs to detect whether no timeout/timeouts are supported.
2021-02-10 17:13:23 -05:00
Andrew Martinez 2360d44b05 moves posture data to not time out 2021-02-10 16:51:40 -05:00
Michael Quigley e55118d8a2 Redundant cast. (#168) 2021-02-10 11:58:11 -05:00
Andrew Martinez 2c1a9dd82b ignores dupe router startup
A second edge router starting up could offline the original according to
the edge. This would cause issues w/ API Session and Session
distribution.
2021-02-10 10:58:50 -05:00
Michael Quigley aa2d7315a4 Better terminator dial error reporting. (#168) 2021-02-10 10:25:24 -05:00
Andrew Martinez 5b5fe97961 fix ptr to string in error message 2021-02-09 14:01:20 -05:00
Andrew Martinez 9fab8e6ed0 fix formatting message
Some deps altered after a go test ./... and go mod tidy
2021-02-09 13:57:49 -05:00
Andrew Martinez 35fa25d5af use ast.BoolNodeTrue 2021-02-09 13:55:03 -05:00
Andrew Martinez 46166db9cc fixes orphaned ottca enrollments
- deletes ottca enrollment when CA is deleted
- adds API tests
- adds migration to remove currently orphaned ottca enrollments
- migration tested on a v15 database with orphaned ottca enrollments
2021-02-09 13:55:03 -05:00
Michael Quigley 7d653696e9 We don't want smart routing to start unrouting sessions. (#168) 2021-02-09 13:43:08 -05:00
Michael Quigley 6a3f2231df Also screen RouteResultAttemptHeader from peerData. (#168) 2021-02-09 13:39:16 -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
Michael Quigley e86f60dd68 Unhappy path unroute/cleanup improvements. Logging improvements. (#168) 2021-02-09 11:38:26 -05:00
Michael Quigley ba8b1a5826 D'oh. Testing. (#168) 2021-02-09 09:16:54 -05:00
Michael Quigley fecf08a9ed Added new 'network.createSessionRetries' option to control number of session creation attempts. (#175) 2021-02-08 14:14:41 -05:00
Michael Quigley 765e7f30bb Implement non-acting session confirmation receive hander, to prevent future errors with newer routers (#173, openziti/fabric#174) 2021-02-08 14:08:35 -05:00
Michael Quigley ef745ac2e7 Initial 'tearDownTheSuccessful' implementation. (#168) 2021-02-08 13:35:33 -05:00
Michael Quigley cb7a561a39 Up and operational with a version of parallel routing. (#168) 2021-02-08 11:50:57 -05:00
Michael Quigley 3ad20ee31a Manage route senders in network. (#168) 2021-02-08 11:27:04 -05:00
Michael Quigley cd3e31df78 Support for peerData in parallel routing. (#168) 2021-02-08 11:21:42 -05:00
Michael Quigley d36f10b185 More parallel routing logic. (#168) 2021-02-08 11:04:35 -05:00
Michael Quigley 3b3fd803b9 Merge branch 'main' into transwarp_2 2021-02-08 10:13:06 -05:00
Michael Quigley b39a85a5f9 Merge branch 'main' into parallel_route 2021-02-08 10:08:09 -05:00
Paul Lorenz f1c41cfcf8 Clarify failed to buffer msg. Make retransmits debug. Don't send if we know it's going to fail 2021-02-06 15:11:52 -05:00
Paul Lorenz 9aff04e64c Merge pull request openziti/fabric#170 from openziti/fix-terminator-patch
Validation extension points for sessions and terminators
Fix terminator patch to not update/clear peer data unless requested
2021-02-05 15:19:12 -05:00
Michael Quigley a5bc713461 Working out the route sender logic. (#168) 2021-02-05 15:09:16 -05:00
Andrew Martinez c23bf9dbcf fixes os PATCH for posture checks
PATCH requests were clearing OS fields as they were not respecting field
checker results.
2021-02-05 14:56:23 -05:00
Michael Quigley 4ef6853fec Tear down sessions for abandoned route result messages (#168) 2021-02-05 13:47:46 -05:00
Michael Quigley b601068fee More receive handler, network, route sender wiring. (#168) 2021-02-05 13:26:32 -05:00
Michael Quigley 2195476448 Skeleton for route result message handler. 2021-02-05 13:12:10 -05:00
Michael Quigley 925f300351 New route sender state machine skeleton. 2021-02-05 13:04:24 -05:00
Paul Lorenz 783e5d3231 Fix terminator patch to not update/clear peer data unless requested 2021-02-05 12:00:33 -05:00
Michael Quigley 43c90c55ed Use ctrl_msg.RouteResultType as the new route result message. (#168) 2021-02-05 11:49:00 -05:00
Michael Quigley 6092d5acf9 Merge branch 'main' into transwarp_2 2021-02-05 10:46:20 -05:00
Andrew 18513f7ee4 Merge pull request #504 from openziti/api.session.performance
moves hasApiSession lookup to api model and limit 1
2021-02-04 09:32:01 -05:00
Andrew 5b1101bb24 Merge pull request #505 from openziti/fix.484.edge.router.list
fixes #484 adds current identity edge router lookup
2021-02-04 09:28:10 -05:00
Andrew Martinez 65832b8da5 fix missing formatted log call, spelling 2021-02-04 09:24:00 -05:00
Curt Tudor 2c6814aaa4 edge router enhancements for browZer support (#499) 2021-02-04 06:09:46 -05:00
Andrew Martinez e34d25b0dd fixes #484 adds current identity edge router lookup 2021-02-03 15:37:15 -05:00
Andrew Martinez 5c47c31016 moves hasApiSession lookup to api model and limit 1
This move isolates the cost of hasApiSession to the identity endpoint
lookups in the REST API. Being in the model caused this cost to be
shared on all identity lookups for internal logic.

Limit 1 is an attempt to reduce the cost of searching over a large set.
API Sessions do not have an index on identity id so there is still some
cost.
2021-02-03 14:01:53 -05:00
Paul Lorenz e8ff9b7799 Add latency and message metrics to router control channels 2021-02-02 16:28:12 -05:00
Andrew 5de4d629f3 Merge pull request #498 from openziti/add.server.header
fixes #497 send session header
2021-02-01 15:07:24 -05:00
Andrew Martinez df1f2a1a75 fixes #497 send session header
- add server headers during HTTP handler delegation rather than at HTTP
  response time
- remove all old header setting locations
- remove unused status writer and other response code
- add manual set on authentication for session headers
2021-02-01 14:28:29 -05:00
Andrew Martinez cab720ed47 limit public query options to 500 whe "none" is specified 2021-02-01 09:27:55 -05:00
Paul Lorenz f485d4e8c3 Update service poller to use service update callback 2021-01-29 15:32:51 -05:00
Andrew Martinez 252e105f3c add typeId to authQuery 2021-01-26 15:12:22 -05:00
Andrew Martinez ab9e19f485 fix unit tests 2021-01-26 14:33:34 -05:00
Andrew Martinez a4a872c377 remove test sleeps, use const for window size 2021-01-26 14:08:16 -05:00
Andrew Martinez 4051c47dd5 Merge branch 'main' into mfa 2021-01-26 13:52:59 -05:00