Commit Graph

272 Commits

Author SHA1 Message Date
eugene 0396a28774 fix win32 2026-04-28 16:45:47 -04:00
eugene 5efcf792e9 ziti-prox-c: check identity configuration writability before subscribing to config events 2026-04-28 14:33:07 -04:00
Paul Lorenz 78068dd7ec ziti-prox-c: persist updated identity config to disk
- subscribes the proxy app to ZitiConfigEvent and writes the updated
  ziti config back to the identity JSON path it was loaded from, so
  controller-list updates learned at runtime survive a restart instead
  of reverting to whatever single controller URL was originally in the
  file
- writes via <path>.tmp + rename so a kill mid-write does not leave a
  half-written identity file on disk
- stores the original identity path on proxy_app_ctx (cstr) so the
  event handler can find it; capture the path in run_proxy when opts
  ->identity is set

(cherry picked from commit d33193bfcfdf49ebbe297dcc72e3d689fc5e0978)
2026-04-28 13:56:41 -04:00
Paul Lorenz bf39e3454e ziti-prox-c: raise listener backlog from 5 to 128
- raises the TCP listen backlog to 128 in update_listener (per-service
  intercept) and run_http_proxy (HTTP proxy mode)
- fixes random client connection failures observed under bursty load
  where the kernel was dropping SYNs once 5 connections were pending
  accept, even though the proxy itself was healthy

(cherry picked from commit 4857af9e1705a6254cf82d6b0a0128f338e2fbae)
2026-04-28 13:53:43 -04:00
Dave Hart 5ef40edc25 Restore key/cert options in sample_enroll usage string 2026-04-06 09:06:41 -04:00
Dave Hart 202eb81309 Accept URL or JWT file as first arg, remove --jwt flag from sample_enroll 2026-04-06 09:02:12 -04:00
Dave Hart aff3b47e29 Add --signer flag to specify ext-jwt-signer by name 2026-04-06 09:02:11 -04:00
Dave Hart efcb629c0e Set default log level in sample_enroll 2026-04-01 23:31:33 -04:00
Dave Hart 5c2744c24e Add enrollment mode support (none/cert/token) 2026-04-01 19:27:00 -04:00
Dave Hart 020aee5862 Rename Ziti_enroll_url to Ziti_enroll_controller 2026-03-31 09:57:03 -04:00
Dave Hart a1b0847dfa Use network JWT to verify controller during URL enrollment 2026-03-31 09:20:10 -04:00
Dave Hart 6a9c1745b9 Add Ziti_enroll_url to zitilib and URL enrollment to sample_enroll 2026-03-29 10:38:26 -04:00
eugene d43bf6e6b3 fix bridge types 2026-03-24 18:30:50 -04:00
eugene bbfa3e262b win32 compat 2026-03-24 14:49:47 -04:00
eugene 46c1b8ebc2 zitilib: non-blocking connect support with IPv6
Refactor the zitilib connect path to support non-blocking sockets:
return EINPROGRESS and let callers poll/select for completion. The app
fd is dup'd so the caller can close it before connect completes.

Replace the Unix socketpair/dup2 bridge mechanism with loopback
listen/accept (matching the Windows approach) and add AF_INET6 support
to both platform implementations.

Also fix ziti_conn_bridge_fds parameter types (uv_os_fd_t -> uv_os_sock_t)
and correct the inverted error check in ziti-fd-client sample.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 14:49:47 -04:00
eugene 5fb8e67cd2 cleanup: use cstr 2026-03-20 17:46:24 -04:00
eugene f0a8ac83f8 add http proxy support to run loop 2026-03-20 17:46:08 -04:00
eugene 3dcb4055f4 implement http proxy 2026-03-20 17:45:11 -04:00
eugene 30d330d6a4 add support for HTTP proxy configuration in ziti-prox-c 2026-03-20 17:34:54 -04:00
eugene 9e1f26570a ziti-prox-c: implement url launch on windows 2026-03-16 17:17:44 +00:00
eugene ff6eac321a mingw: fix ziti-prox-c build 2026-03-12 17:43:12 +00:00
eugene 4e9fd279d3 separate channel TLS context
session x509 credentials only apply to channel TLS
2026-03-05 13:58:54 -05:00
eugene 0a476a114f remove the use of ziti_ctrl in legacy_auth 2026-03-02 14:21:52 -05:00
eugene 2e2a670f89 ziti-prox-c: implement ext signer selection 2026-01-29 11:37:35 -05:00
eugene a5cfd6b5a4 update content type definitions 2025-12-12 09:07:48 -05:00
eugene 9a4f830ae9 fix prox-c build 2025-10-14 21:21:49 -04:00
eugene aa08d13aef fix prox-c build 2025-10-14 21:09:54 -04:00
eugene 6f3035458b ziti-prox-c: do not subscribe to ZitiConfigEvent 2025-09-24 10:35:56 -04:00
Shawn Carey ae856896bd use stdin/stdout handles on win32 2025-09-18 16:12:06 -04:00
ekoby aaaa88dcd5 OIDC login: submit SDK and ENV info 2025-09-02 15:59:28 -04:00
Shawn Carey 68dfb1b5ed fix clang/macOS warnings 2025-08-22 10:10:49 -04:00
ekoby b6d8c1c14c add missing typedef 2025-08-17 16:13:51 -04:00
ekoby 501f9cebc1 make it easier to receive signer names via FFI 2025-08-17 16:13:51 -04:00
ekoby b8a439b93c more cleanup 2025-08-15 12:37:31 -04:00
ekoby 2be41e5345 more cleanup 2025-08-15 11:33:28 -04:00
ekoby 2faef21dcc use proper formatting
check error returns
2025-08-14 16:00:01 -04:00
ekoby 0b7d141829 use proper formatting
check error returns
2025-08-14 15:42:45 -04:00
ekoby 3d87d02bd0 drop version from artifact names 2025-08-14 08:27:55 -04:00
ekoby ec69520f28 zitilib: add support for MFA 2025-08-12 10:36:36 -04:00
ekoby 4bd1a01d06 Zitilib: add support for authentication with external signer 2025-08-10 18:07:47 -04:00
ekoby 8411c269bb Zitilib: access external signers 2025-08-10 18:07:47 -04:00
ekoby bffbc312c0 refactor Zitilib samples 2025-08-10 18:07:47 -04:00
ekoby 3d59e56d90 refactor Zitilib initialization 2025-08-10 18:07:47 -04:00
ekoby 3a341fc63d add device id, and identity cert text to ziti_dump 2025-07-16 11:19:27 -04:00
ekoby 1068e536df avoid invalid CN in CSR 2025-06-18 13:48:45 -04:00
ekoby 2729c98bc2 refactor external authentication handler to accept an optional provider name 2025-05-13 10:55:00 -04:00
eugene 48c46af0dc fix: use correct closing on failed accept 2025-03-26 15:58:16 -04:00
eugene 8ee546d444 HA posture: format and send posture protobuf to edge routers 2025-01-23 12:13:26 -05:00
eugene 291cb3ee61 rename all posture IDs to avoid conflicts and be consistent 2025-01-17 09:49:03 -05:00
eugene 62c410c37b cleanup posture check model 2025-01-17 09:49:03 -05:00