Commit Graph

374 Commits

Author SHA1 Message Date
Andrew Martinez 6a522893fc adds timeoutRemainingSeconds for posture queries 2021-07-21 14:20:26 -04:00
Paul Lorenz f34d540765 Update pfxlog to 0.5.1 2021-07-16 15:24:14 -04:00
Andrew Martinez a35e088e8e fixes an issue where posture timeouts would not be enforced for 1st sess 2021-07-16 09:25:53 -04:00
Paul Lorenz d7c1dc038d Allow searching on role sets 2021-07-15 09:35:41 -04:00
Andrew 22d5d46554 Merge pull request #709 from openziti/add.mfa.options
add mfa options
2021-07-10 00:05:12 -04:00
Andrew Martinez bb4dbd90b9 adjust for c-sdk 0.25.0 release 2021-07-09 17:32:36 -04:00
Andrew Martinez 0dbd5e515b adds unit tests for legacy version mfa checks 2021-07-09 15:51:57 -04:00
Andrew Martinez efcb90c033 add all sdk version info to posture data 2021-07-09 15:27:23 -04:00
Andrew Martinez 983fbaacfc fixes #641 enables ?limit=x&offset=x on list association endpoints
Endpoints such as /current-identity/edge-routers would internally use a
ListAssociations(...) that would not respect the original query
parameters of limit/offset. Instead they would only respect the filter
parameter.

Per internal conversations, we agreed to maintain both paths.
2021-07-07 12:25:02 -04:00
Andrew Martinez 47499bc4f1 add mfa options
- allow timeouts for MFA posture checks
- allow wake/unlocked MFA options
- allow legacy toggle for SDKs that don't supply endpoint state
- supply timeouts on posture checks
- posture data now caches session state
2021-07-07 08:39:39 -04:00
Paul Lorenz 3151d31b7f Handle xweb import change (#697)
* Handle xweb import change. Fix tunnel update/delete terminator handling
2021-06-22 14:18:17 -04:00
Andrew 825c0a327a Merge pull request #685 from openziti/fix.process.multi.patch
fixes issues with process multi's patch
2021-06-14 14:18:56 -04:00
Andrew Martinez 572e606a0b adds posture check patch tests 2021-06-14 11:12:32 -04:00
Paul Lorenz d920dbbd93 Fix sync early exit bug. Track new session during sync. Simplify thre… (#686)
* Fix sync early exit bug. Track new session during sync. Simplify threading and tighten up locking. Add dump api-sessions debug operation

* Address review comments. Remove spurious error message. Fix defaultHostingCost/Precedence field names
2021-06-11 14:01:20 -04:00
Andrew Martinez 271bf051e0 fixes issues with process multi's patch
- NULL output for empty arrays will now be empty array "[]"
- patching no longer clears osType
- patching with the same path between two different OS types no longer
  collides resulting in 1 process being saved
2021-06-10 16:31:26 -04:00
Paul Lorenz ef8847b34e Delete expired api sessions in batches. Remove some unused methods 2021-06-09 15:40:42 -04:00
Paul Lorenz a3dd639981 Fix setting identity service costs/precedences when patching 2021-06-08 12:54:11 -04:00
Paul Lorenz 01ed7b8a1c Add policy engine start back in 2021-06-08 12:42:08 -04:00
Paul Lorenz afa651dd40 Fix Range bug where we only sent to one ER 2021-06-08 12:36:30 -04:00
Paul Lorenz df87ccc9f5 Merge pull request #680 from openziti/fix-router-tunneler-app-data
Make sure identity host data makes it to the tunneler
2021-06-07 09:26:48 -04:00
Paul Lorenz ad9f0f2d72 Make sure identity host data makes it to the tunneler 2021-06-04 16:41:23 -04:00
Andrew Martinez 09b60f3ed8 Debugf to Infof 2021-06-04 12:30:27 -04:00
Andrew Martinez a6e0f4e807 revert defensive logic 2021-06-04 12:24:57 -04:00
Andrew 0d9f609bab Merge pull request #677 from openziti/fix.controller.config.enrollment.defaults
fix durations w/ no units
2021-06-03 11:06:17 -04:00
Andrew Martinez 127de19ce1 remove re-Start() and re-Stop() capabilities 2021-06-03 10:36:49 -04:00
Andrew Martinez 177379aa8e fix durations w/ no units 2021-06-03 08:52:24 -04:00
Andrew Martinez 087c51dd74 fixes rtx double stop panic
- stopping status was being reset causing subsequent stops to panic
- remove stopping atomic bool
- change router disconnect logging from debug to info
2021-06-01 14:00:22 -04:00
Andrew Martinez 93bfce03c2 remove go routine and simply close 2021-05-25 18:19:19 -04:00
Andrew Martinez 5a5fefa092 fixes deadlocks when a router disconnects mid sync or update
- range() of rtx'ers no longer locks, snapshots then loops
- rtx.Send() now checks for stopped/disconnected
- rtx.Send() now respects closeNotify
2021-05-25 16:23:20 -04:00
Paul Lorenz e180d2fa7b Fix updating terminators when cost is omitted 2021-05-20 11:11:25 -04:00
Paul Lorenz 3f3c1318c7 Merge pull request #665 from openziti/fix-app-data-updates
Add appData to filtered jsonfields. Remove unused identity checker field
2021-05-19 13:37:58 -04:00
Paul Lorenz 9af29b5072 Add appData to filtered jsonfields. Remove unused identity checker field 2021-05-18 21:08:19 -04:00
Andrew Martinez 603fdbd772 set base posture check properties for process multi 2021-05-18 14:39:57 -04:00
Andrew Martinez 6ee4f6a8a5 rework CaPems for ca store calculations 2021-05-11 14:18:08 -04:00
Andrew Martinez 74c9611996 add back reading the root identity 2021-05-11 11:16:21 -04:00
Andrew Martinez cc1574fdc9 update /version endpoint
- now reports all versions, api bindings, and api bind points from xweb
- now reports api base urls (http://<bindpoint>/<api path>
- now points 'edge' to 'edge-client' api binding
2021-05-07 10:46:24 -04:00
Andrew Martinez 6625084569 use xweb for Edge Client and Management APIs
- use xweb for run
- use xweb for api tests
- use time.ParseDuration for edge configuration
- use CORS defaults in Client/Management API handlers
2021-05-06 16:45:48 -04:00
Paul Lorenz 18c513034b Ensure routers get full service list, not just first 10 2021-05-06 10:51:30 -04:00
Andrew Martinez b562fb5c07 splits API specs into composible modules
- splits Open API 2.0 (swagger) into client/management APIs
- uses go-swaggers flatten capabilities
- uses newer version of go-swagger (v0.27.0)
- introduces /edge/client/v1, /edge/management/v1
- non-prefixed URLs default to /edge/client/v1
- splits some shared management/client API handlers
- renames some REST models to "client" instead of "limited"
- passes all apitests, fails dataflow upd test (main fails this as well)
- updates generate rest script for powershell
- todo: test generate rest script for bash
- todo: use xweb (different branch)
2021-05-04 11:30:32 -04:00
Paul Lorenz 5fe0091db7 Need to set id on new terminator 2021-04-30 09:21:05 -04:00
Paul Lorenz 57da48f142 Move terminator validation from xtv to control channel handler 2021-04-29 13:46:54 -04:00
Andrew Martinez 1919b6b5a4 Merge branch 'main' into posture.multi.process 2021-04-28 11:08:28 -04:00
Andrew Martinez 41ff14688d add PROCESS_MULTI to posture check types 2021-04-28 11:02:55 -04:00
Paul Lorenz d313d39a80 When empty router name specified, return 4xx error instead of 5xx error 2021-04-23 14:18:40 -04:00
Shawn Carey deef2bba6a Fix issues with host.v1 config type schema (#640)
- require "low", "high" properties in portRange
- fixed allowedAddresses item type in json schema docs
2021-04-23 09:39:29 -04:00
Andrew Martinez 54af8801e7 adds posture check type PROCESS_MULTI
- adds a new posture check for dealing with multiple processes
- supports anyOf and allOf semantics
- does not require new posture responses, current process responses
  suffice
- tests
2021-04-20 08:52:23 -04:00
Paul Lorenz 2a2e380cb7 Add error code reporting to control channel requests 2021-04-19 14:22:07 -04:00
Paul Lorenz 503e320b58 Fix file name 2021-04-14 16:10:22 -04:00
Paul Lorenz fa56d0f487 Add test for cursor on-delete issue 2021-04-14 16:10:21 -04:00
Andrew Martinez 4a9b226f0e adds the ability for router to extend their enrollment
- routers can now opt to extend their enrollment at any time with a
  previous or new key
- adds tests for router enrollment
- adds tests for router enrollment extension
2021-04-14 09:21:59 -04:00