55 Commits

Author SHA1 Message Date
Paul Lorenz
4df6ae564d
Update package paths for newly imported storage and ziti-db-explorer packages 2026-04-16 09:18:55 -04:00
Paul Lorenz
7b4ae12c05
Add CreateCircuitV3 for RDM-authorized circuit creation. Fixes #3721
- adds CreateCircuitV3 message type and handler for routers that have
  already authorized dials locally via RDM, bypassing service session
  tokens in favor of identity ID, service ID, and pre-assigned circuit ID
- renames CreateCircuitRequest/Response to CreateCircuitV2Request/V2Response
  for clarity now that V3 exists
- adds CircuitManager.Reserve to atomically claim circuit IDs before routing,
  preventing collisions on pre-assigned IDs
- extends CreateCircuitParams with GetCircuitId so V3 can supply a
  pre-assigned circuit ID (falls back to UUID generation when empty)
- fixes IsDialableByIdentity which was incorrectly calling IsBindableByIdentity
- extracts V2 handler into its own file create_circuit_v2.go
- adds CreateCircuitV3RequestType/ResponseType (20222/20223) to edge_ctrl protobuf
- registers V3 handler in controller server
2026-03-27 14:41:28 -04:00
Andrew Martinez
fb2034245d
fixes openziti/ziti#3356 adds www-authenticate headers (#3561)
* fixes openziti/ziti#3356 adds www-authenticate headers

- www-authenticate headers are returned on 401s from API requests
- www-authenticate headers are returned during authentication to signal
  addtional JWT bearer tokens needed (secondary ext jwt)
- adds support for additional headers on API errors
- adds SecurityTokenCtx for centralized security header processing
  (legacy, jwt, etc.)
- adds SecurityCtx for centralized identity, auth policy, MFA handling
- refactors existing JWT authentication methods (oidc, legacy) to use
  centralized processing where possible
2026-02-24 10:01:36 -05:00
Paul Lorenz
45bf527441
Provide more error context to SDKs for terminator errors. Fixes #3524 2026-02-04 14:36:21 -05:00
Paul Lorenz
2ffc6e1151
Update ziti version to 2.0 2026-01-28 12:34:10 -05:00
Andrew Martinez
bb5cc51a97
adds posture cache, instance, instance data, and event hooks (#3267)
* adds posture cache, instance, instance data, and event hooks

- reworks router security
- abstracts api session and service sessions
- use connection tracker instead of various maps
- doc
- adds service sessions as always JWTs
- addes token logging fields
- removes multiple connection tracking fields
- adds support for router specific posture data/respones
- adds support for router posture check evaluation
- defer dial/bind posture checking for legacy to controller
- fix double session event emitting
- fix session event missing id
2025-10-15 14:01:56 -04:00
Paul Lorenz
981df8269d
Support xgress flow control from the SDK. Fixes #2986 2025-04-30 10:27:43 -04:00
Paul Lorenz
e647d67325
Update to channel/v4 2025-04-02 15:28:59 -04:00
Andrew Martinez
78605a0955
fix #2865 remove fingerprint checks from controller (#2866)
* fix #2865 remove fingerprint checks from controller

- on their own fingerpint checking does not provide any additional
  security as the underlying certificate is not verified
- fingerprint based checking will not work with spiffeid generated
  certificates or x509 claims
- routers still support sending fingerprints for old controller support
2025-03-04 10:21:38 -05:00
Paul Lorenz
3c9861ca3b
Update deps and changelog. Update for SDK changes 2025-02-10 15:35:17 -05:00
Paul Lorenz
d84292cfd9
Fix tests 2025-01-07 19:22:47 -05:00
Paul Lorenz
cccf0c06af
Update to channel/v3. Fixes #2390 2024-09-09 12:23:25 -04:00
Paul Lorenz
0945427320
Migrated edge router tunneler code to use the router data model. Fixes #2121 2024-07-26 17:06:01 -04:00
Paul Lorenz
c3b43133d1
Merge fabric and controller model code. Fixes #2205 2024-07-09 16:11:01 -04:00
Paul Lorenz
a0245e5cd3
Allow ER/T to intercept services w/out sessions when in HA mode. Fixes #1942 2024-04-16 15:11:00 -04:00
Andrew Martinez
09542c7728
consolidated ha changes 2024-02-29 09:27:56 -05:00
Paul Lorenz
744ae68bbd
Fix controller crash. Fixes #1736 2024-02-08 21:55:48 -05:00
Paul Lorenz
26c6263fa3
Fix terminator id race condition. Fixes #1685 2024-01-19 11:31:32 -05:00
Paul Lorenz
f3d67b7f49
Update fabric imports 2023-09-28 23:34:28 -04:00
Paul Lorenz
07da3cd513
Merge remote-tracking branch 'edge/main' into merge-edge
Updated package names
Merged golangci-lint configurations
2023-09-27 16:54:53 -04:00
Paul Lorenz
5b59ae13ee
Update for moved packages in fabric 2023-08-23 09:40:05 -04:00
Paul Lorenz
dba0fb6f7c
Move protobufs to common 2023-08-04 17:01:15 -04:00
Paul Lorenz
f31f849344
Fix panic removing terminator with invalid session. Fixes #1512 2023-06-02 10:52:41 -04:00
Paul Lorenz
f28722cfa6
Handle nil terminator when getting circuit tags 2023-04-27 12:16:09 -04:00
Paul Lorenz
7d6901be3d
Add edge code needed for entity change events. Fixes #629 2023-04-25 22:34:02 -04:00
Paul Lorenz
43fc1e96fe
Get tests running and do some cleanups 2023-04-25 13:26:19 -04:00
Paul Lorenz
bd1b25f60c
Update presentation layer for api changes 2023-04-25 13:26:03 -04:00
Paul Lorenz
83bca6a0ba
Update for storage and fabric api changes 2023-04-25 13:26:02 -04:00
Paul Lorenz
d8e50ba43e
Make session edge-router check more efficient. Fixes #1418 2023-04-12 15:54:17 -04:00
Paul Lorenz
fd8d41204a
Fix error, should be invalid session, not invalid api session. Fixes #1366 2023-03-23 10:43:52 -04:00
Paul Lorenz
2d55b5cc28
Don't delete sessions on failed terminator create 2023-03-23 09:51:14 -04:00
Andrew Martinez
e192f271ba
remove old "sessionCert" (not ApiSessionCert) bit rot 2023-03-20 18:04:21 -04:00
Paul Lorenz
4abeaa0c0a
xgress_edge_tunnel create terminator perf improvements. Fixes #1270
* Make terminator creation asynchronous
* Make terminator creation idempotent
* Improve logging
* Add some timer logging and metrics.
    * controller and router will both log their respective views of how long the terminator create took
    * the router has a new xgress_edge_tunnel.terminator.create_time timer metric
2022-12-15 17:29:29 -05:00
Paul Lorenz
63c161224a
Add linter and fix issues found by linter 2022-10-10 16:56:51 -04:00
Paul Lorenz
32c197e5e1
Update to channel v2 2022-09-26 18:20:00 -04:00
Paul Lorenz
1f71f952d7
Update to usage v3 2022-09-16 12:41:36 -04:00
Paul Lorenz
387d54adb1
Handles changes to UpdatedFields and EntityManager. Consolidate bolt
sink/source to edgeEntity. Make patch conversion method optional
2022-07-27 11:33:37 -04:00
Paul Lorenz
bae7e40b61
Update for foundation changes 2022-07-01 15:55:30 -04:00
Paul Lorenz
91ea3816b8
Update for terminator terminology changes 2022-06-22 16:24:01 -04:00
Paul Lorenz
2f6a3bc828
Update handler -> manager for base types and config 2022-06-02 00:05:54 -04:00
Paul Lorenz
7cf9dc135d
Initial support for raft and command style architecture 2022-06-01 23:52:07 -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
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
5be9095e60
Update to use channel library 2022-01-28 11:35:15 -05:00
Paul Lorenz
3f69bfdd43
Update for control channel API changes 2022-01-19 08:37:40 -05:00
Paul Lorenz
0d66f75eb8
Add additional fields and make field names more consistent 2021-12-14 09:58:24 -05:00
Paul Lorenz
84d36337ad
Fix panic when service not found 2021-09-08 15:59:35 -04:00
Paul Lorenz
23c98c2d5a
Add more tracing and allow enabling debug for specific identities for path selection/establishment 2021-08-09 11:20:51 -04:00
Paul Lorenz
b82b92684b
Rename fabric session to circuit 2021-08-04 14:39:27 -04:00
Paul Lorenz
4205482e58
If we create a new session but don't have a chance to return it, delete it before sending error 2021-08-03 13:16:34 -04:00