Commit Graph

193 Commits

Author SHA1 Message Date
Andrew Martinez 3380807334 adds ext-jwt authenticator
- enables /authenticate?method=ext-jwt
- adds ext-jwt to OpenAPI schema
- rebase to main, squash
2022-03-08 10:01:38 -05:00
Cam Otts 4dcd0281ab added handling for allow traversal flag (#905)
* added handling for allow traversal flag

* Refactor allowTraversal to be flipped to noTraversal

* updated fabric deps
2022-03-02 14:12:49 -06: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
Cam Otts 141ef27526 Router cost (#899)
* Added cost to routers and handled in edge

* moved transit router cost to base

* updated fabric dependency

* removed some import changes and made cost required on update

* small whitespace diff
2022-02-25 09:27:26 -06:00
Paul Lorenz dbac831bee Add edge router events test 2022-02-17 15:58:25 -05:00
Paul Lorenz 06679b93a9 Remove fabric callback that are no longer needed 2022-02-17 11:13:15 -05:00
Andrew Martinez d40f53d486 update comments, add patch updatedAt test 2022-02-10 11:06:54 -05:00
Andrew Martinez 52b0c7acab alters posture query updateAt to also indicate query state changes
- formerly posture queries only had an updatedAt time copied from the
  source posture check which. For MFA posture checks this is only
  correct when not using promptOnWake/Unlock
- prompt timer reductions due to wake/unlock now update postureQuery
  updatedAt values
- subsequent reconfigurations to the posture check (i.e. patching a
  posture check) is also taken into account - latest time.Time wins
- test for MFA posture check no longer use gabs and instead use the
  relevant input/output rest_model.* structures
2022-02-09 16:30:54 -05:00
Andrew Martinez 6d48a962de adds criteria output to service request failures for MFA posture checks
- adds all criteria for mfa evaluation to failure for model/REST API
2022-02-04 15:23:39 -05:00
Paul Lorenz 5aacc4b247 Split scan from evaluate in posture cache to avoid nested view. Fixes #886 2022-02-02 18:02:16 -05:00
Andrew Martinez 1f784d89ce adds asynchronous eventer to controller
- emits events for processing progress/state for metric instrumentation
- emits events for eventual event backlog state for metrics
- alters Trigger() to return a channel that can be waited upon
- adds ability to add eventual events within a specific bbolt
  transaction
- splits session lookup and delete into view/update transactions
- add eventual event gauge
- use CascadeCreateUpdate
- adds named functions
- documentation for 500us timeout
- grammar fixes
2022-01-18 14:19:36 -05:00
Andrew Martinez cf20c2dfa8 adds api tests 2022-01-03 15:54:51 -05:00
Andrew Martinez 770c7bcd06 adds re-enrollment logic for edge-routers 2022-01-03 09:06:33 -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 bfcb037783 Initial pass at fabric rest api working (#838)
* Update for fabric rest controller changes
2021-11-30 16:30:17 -05:00
Andrew Martinez 027f8673ce patch client cert instead of using verify options 2021-11-05 10:47:45 -04:00
Andrew Martinez ece9e8222a formating directive fix 2021-11-05 10:27:00 -04:00
Andrew Martinez 1f9ca6878a changes client cert validation
- adds test for client cert validation expectations
- adds certificat authenticator create
2021-11-05 10:10:17 -04:00
Andrew 8e53e50fd9 Merge pull request #818 from openziti/identity.enrollment.extension
adds identity cert extension endpoint to client/man API
2021-11-02 13:24:29 -04:00
Paul Lorenz 2d4260e76e Allow using a specific bolt db file for tests 2021-10-26 14:19:24 -04:00
Andrew Martinez a1f7a48cdc adds identity cert extension endpoint to client/man API
- now supports POST /current-identity/authenticators/{id}/extend for
  cert authenticators
- adds test for cert extension endpoint
2021-10-21 15:12:30 -04:00
Andrew Martinez 49006ab9f6 fixes posture check timeouts that sit at 0 after endpoint states 2021-10-07 10:22:57 -04:00
Paul Lorenz 2fd995becb Fix panic if posture data mfa is nil 2021-09-09 11:18:19 -04:00
Paul Lorenz 05fb2e155a Merge pull request #764 from openziti/fix-service-poll-time-check-add-tests
Fix time check on list tunnel. Add policy enforcer test. Add update s…
2021-09-02 11:48:03 -04:00
Andrew Martinez 57b6b70945 add unit tests for timeout logic 2021-09-02 11:00:09 -04:00
Andrew Martinez 4cac5518e9 ensure that lastAccessedAt is set on create, emit logs if not found 2021-09-02 08:57:14 -04:00
Paul Lorenz 782f43cb26 Fix time check on list tunnel. Add policy enforcer test. Add update session test 2021-09-01 16:20:43 -04:00
Andrew Martinez 7e2b97c425 fixes posture check timeouts, tests, service updates
- fixes timeout calculation bugs
- adds timeout calculation unit/api tests
- adds posture response service events
- fixes 0 to -1 values for timeout settings
- fixes abnormally high service updates
2021-08-30 09:05:46 -04:00
Andrew 6ef863711b Merge pull request #747 from openziti/add.timeout.api.tests
adds posture check timout tests using MFA PC
2021-08-10 19:46:16 -04:00
Andrew Martinez a58ba04fb3 adds posture check timout tests using MFA PC 2021-08-10 09:26:20 -04:00
Andrew Martinez 3874cb7b4e formatting call 2021-07-30 14:55:58 -04:00
Andrew Martinez c3df0d9878 on invalid pd ptr use new pd 2021-07-30 14:50:59 -04:00
Andrew Martinez e78f308e16 documentation, fix ignored isPassing bool, log message on invalid pd ptr 2021-07-30 14:49:03 -04:00
Andrew Martinez a7e7b90d0f fix posture data locking panics 2021-07-30 13:47:48 -04:00
Paul Lorenz 7cb0b12d5c Update for JWT lib changes 2021-07-30 10:04:45 -04:00
Paul Lorenz f2670e66a0 Make policy semantic required for POST/PUT. Fix evaluation on policy PUT if semantic not provided 2021-07-30 09:44:21 -04:00
Andrew Martinez 329a18af87 assume legacy unless c-sdk 2021-07-23 09:57:49 -04:00
Andrew 20017f5a08 Merge pull request #721 from openziti/fix.pd.concurrent.map.usage
respect posture data concurrent lock
2021-07-23 09:27:03 -04:00
Andrew Martinez 4112c6d241 respect posture data concurrent lock 2021-07-23 08:49:00 -04:00
Andrew Martinez c6f37bef67 adds wake/unlock timeout unit tests 2021-07-22 14:52:12 -04:00
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
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 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
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 ef8847b34e Delete expired api sessions in batches. Remove some unused methods 2021-06-09 15:40:42 -04:00