2948 Commits

Author SHA1 Message Date
ekoby 55f0d0df69 Merge pull request #1229 from openziti/gh-oidc-integ
Enroll and log in with an external IdP through zitilib
2026-11-06 12:52:30 -05:00
eugene d7f7a092ca split the interactive login of Ziti_enroll_with_idp into steps
A login with a signer returns ZITI_EXTERNAL_LOGIN_REQUIRED and a handle; Ziti_enroll_login_url,
Ziti_enroll_continue and Ziti_enroll_cancel take it from there. It never started the login before.
2026-11-06 12:23:26 -05:00
eugene cb70c8cdf1 replace the zitilib enroll calls with Ziti_enroll_with_idp
Ziti_enroll_controller and Ziti_enroll_controller_with_token become one call: the
controller is a URL or a network JWT, the idp a signer name or a token.
2026-11-06 12:23:26 -05:00
eugene 4cb2833e50 skip the GitHub token tests on ziti older than 2.0
The signer is created in a session fixture, which runs before the require_ziti
mark is applied, so the v1.6 legs failed in setup on --enroll-to-token.
2026-11-06 12:23:26 -05:00
eugene 7262a9c0d7 add zitilib calls to enroll and log in with an external token
Ziti_enroll_controller_with_token and Ziti_login_with_token let an app that
holds a token (a CI job's OIDC token) skip the interactive login. Integ tests
cover token and cert enrollment with the test idp, and token enrollment with
the GitHub token. #1228
2026-11-06 12:23:26 -05:00
eugene a052e9e7fa test enrollment to token with the GitHub Actions token of the job
Adds ztx-enroll-token-direct-lifecycle and test_github_oidc.py, which skips
without a token. Grants id-token: write to the integ test job and its caller.
2026-11-06 12:23:26 -05:00
ekoby b1dd6efcf6 Merge pull request #1224 from openziti/bind-per-accept-key
skip per-bind e2ee key for routers >= 2.0.5
2026-11-06 12:15:31 -05:00
eugene 1778c1936b skip per-bind e2ee key for routers >= 2.0.5
Routers accept a per-accept key since ziti 2.0.5 (ziti#4374), so bind no longer
sends PublicKeyHeader and process_dial creates the e2ee per dial.
2026-11-05 12:23:16 -05:00
eugene 0af96dd837 split router version and build info in channel
Keep only the version in ch->version and the rest of the hello header
(revision|date|os|arch) in a new build string, shown in zch_dump.
2026-11-05 12:23:16 -05:00
eugene 671428b412 add version_at_least helper 2026-11-05 12:23:16 -05:00
ekoby c0404cb0be Merge pull request #1225 from openziti/fix-oidc-test-provider
fix the oidc integ test to use the controller's /oidc provider
2026-11-05 11:45:48 -05:00
eugene e875e6ce5c check the return values of the oidc client calls in the oidc integ test
Assert oidc_client_init/configure/start/refresh return 0, and register the close DEFER only after init succeeds: oidc_client_close() on a client that failed to init uv_close()s a NULL timer.
2026-11-05 11:45:31 -05:00
eugene c16488e41c fix the oidc integ test to use the controller's /oidc provider
The test passed the identity's /edge/client/v1 url as the provider, which the controller answers with NOT_FOUND; use the controller origin instead.
2026-11-05 11:45:31 -05:00
ekoby 227bb62193 Merge pull request #1226 from openziti/bump-vcpkg-baseline
Bump vcpkg baseline to 2026.11.05 (29718cf)
2026-11-05 14:58:15 +00:00
github-actions[bot] 1eb94ba1b8 Bump vcpkg baseline to 2026.11.05 (29718cf) 2026-11-05 13:25:43 +00:00
ekoby 5ec55ac01b Merge pull request #1219 from openziti/update-edge-protobuf
regenerate edge protobuf with the xgress definitions
2026-11-03 16:28:52 -05:00
eugene 319e0bfa62 regenerate edge protobuf with the xgress definitions
Regenerate edge_client.pb-c from sdk-golang main: xgress header ids and
the XgPayloadFlag, XgHeaderKey, XgCapability, XgControl, XgControlHeader enums.
2026-11-03 16:23:40 -05:00
ekoby 6093c051cd Merge pull request #1212 from openziti/cstr_model
add model support for cstr
2026-11-03 16:21:59 -05:00
eugene 03b063ba46 add model tests for cstr 2026-11-03 16:15:04 -05:00
eugene 9e4a85a019 implement model support for cstr 2026-11-03 16:15:04 -05:00
ekoby ba9245f44f Merge pull request #1220 from openziti/mfa-event-legacy-code
report the time of the last MFA code for legacy sessions
1.21.1
2026-11-03 18:30:36 +00:00
eugene 7fc6f0244f bind an MFA code to the api session its login gets
A code taken before the context holds the api session of its login was bound to whichever session the next MFA event saw. Bind it when the session is installed, and read the code without side effects.
2026-11-03 10:37:35 -05:00
eugene d7e124b3f3 report the time of the last MFA code for legacy sessions
The MFA posture event took last_code_at from the OIDC TOTP token, so it was always 0 on legacy. Record when the controller accepts a code, for any auth method.
2026-11-03 10:37:35 -05:00
ekoby d4bc15e6f0 Merge pull request #1223 from openziti/enable-merge-queue
Add `merge_group` trigger to the CMake workflow
2026-11-03 10:31:36 -05:00
eugene 297f26411f Add merge_group trigger to the CMake workflow 2026-11-03 10:31:20 -05:00
ekoby 55854b76d2 Merge pull request #1218 from openziti/legacy-mfa-reject-crash
fix a crash on a rejected MFA code of an authenticated legacy session
2026-11-03 08:34:36 -05:00
eugene 106b2aece6 fix a crash on a rejected MFA code of an authenticated legacy session
legacy_totp_cb passed a NULL MFA query to ztx_set_partially_authenticated. Report partial authentication only when the session has the query.
2026-11-02 15:19:06 -05:00
ekoby 0fe8f5fd2e Merge pull request #1211 from openziti/fix-list-element-leak
free the elements of a list or array that fails to parse
2026-11-02 10:18:05 -05:00
eugene e27ca40114 fix the cleanup of a string array that fails to parse
It freed the strings like allocated elements, which aborted.
2026-11-02 09:29:11 -05:00
eugene 771b2b5dd1 fix the cleanup of a number or string list that fails to parse
It freed a number as a heap pointer and a string as a pointer to a string, which aborted.
2026-11-02 09:29:11 -05:00
eugene 92bbad6910 free a list element that fails to parse
model_list_from_json leaked the allocated element when its parse failed.
2026-11-02 09:29:11 -05:00
ekoby a787cde28e Merge pull request #1217 from openziti/legacy-session-posture
send posture data of a legacy session to the controller
1.21.0
2026-11-01 10:15:24 -05:00
eugene 11ca22b636 send posture data of a legacy session to the controller (GH-1147)
Routers keep posture data by the token of an OIDC session, and a legacy session sent none to the controller while no router was connected.
Also stop dereferencing the posture query array of a service that has none.
2026-10-30 19:13:18 -04:00
ekoby 4f4cd5ba84 Merge pull request #1216 from openziti/stale-draft-keep-tag
keep the tag of the draft release when marking it stale
2026-10-30 18:34:57 -04:00
eugene c079a83554 keep the tag of the draft release when marking it stale
A body-only PATCH of a draft turned its tag into untagged-<hash>; send tag_name along.
2026-10-30 18:26:56 -04:00
ekoby 4bb5461721 Merge pull request #1215 from openziti/stale-draft-release
mark the draft release stale when main moves
2026-10-30 17:56:48 -04:00
eugene 2faa7d4ca4 mark the draft release stale when main moves
A push to main puts a stale line on top of the draft releases that target main.
2026-10-30 17:55:21 -04:00
ekoby a2235e0425 Merge pull request #1214 from openziti/remove-release-drafter
Remove Release Drafter configuration and workflow
2026-10-30 17:34:49 -04:00
eugene 79ab378b53 Remove Release Drafter configuration and workflow 2026-10-30 17:26:34 -04:00
ekoby 4190c65c09 Merge pull request #1209 from openziti/header-cleanup
remove the unimplemented cert authenticator API and correct the header docs
2026-10-30 15:47:04 -04:00
eugene 394b03fa99 document the controller errors that ziti_service_available can report
service_cb passes on the error of a failed controller request; the @param cb and ziti_service_cb docs named only two codes.
2026-10-30 15:45:53 -04:00
eugene f167668900 drop the dead x509 anchor link from the README
#example-code-configuration never matched a heading, so Doxygen could not resolve it.
2026-10-30 12:59:31 -04:00
eugene 8ebda73e96 use GitHub-style markdown heading ids in the Doxyfile
The README links to its headings with GitHub anchors, which Doxygen's default ids do not match.
2026-10-30 12:59:31 -04:00
eugene 05514770b5 fix two header doc comments that Doxygen warned about
ZITI_TIMEOUT pointed at #DEFAULT_TIMEOUT, which is ZITI_DEFAULT_TIMEOUT now.
The \0 quoting in the string_buf_to_string doc had stray backticks.
2026-10-30 12:59:31 -04:00
eugene 2c6f257477 name BUILD.md in the Doxyfile INPUT
It listed building.md, which does not exist. This also resolves the BUILD.md link in README.md.
2026-10-30 12:59:31 -04:00
eugene 004c774b43 make the ZITI_ERRORS references in the header docs resolve
ZITI_ERRORS was never defined, so Doxygen left its 21 mentions unlinked. errors.h now defines it as a
group, and the #ZITI_ERRORS mentions use @ref because #name does not link to a group.
2026-10-30 12:59:31 -04:00
eugene d9dfecc553 list the return codes that five header docs leave out
ziti_close, ziti_mfa_auth, ziti_set_client_cert, ziti_update_terminator and ziti_send_health_event
now name the ZITI_ codes they return, including the NULL and not-yet-bound cases.
2026-10-30 12:59:31 -04:00
eugene 798b04bbe9 fix header docs for ziti_service_available and the posture callbacks
ziti_service_available calls back before it returns when the service is known.
The eight posture query and response callbacks now describe their id parameter.
2026-10-30 12:59:31 -04:00
eugene 32103f9927 return an error code from ziti_get_transfer_rates
An unsupported metrics_type left the rates inactive and the call returned 1, not a ZITI_ code.
It returns ZITI_INVALID_STATE now, and the doc lists the return codes and the rate window.
2026-10-30 12:59:31 -04:00
eugene 63d553f253 fix header docs that disagree with the signatures
Wrong @param names and a @return on void in the MFA calls, ZITI_SERVICE_UNAVAILABLE in
ziti_service_available, and the return value of ziti_dial_opts_for_addr.
2026-10-30 12:59:31 -04:00