mirror of
https://github.com/openziti/ziti.git
synced 2026-09-11 01:05:42 +00:00
b676aa2c51
* backport openziti/ziti#3952 to v1.6 reject invalid externalIdClaim and stop enrollment panic - moves the error check before the locator assignment in Ca.GetExternalId so an unsupported matcher/parser no longer nil-derefs and returns HTTP 500 - guards the claim index against negative and out-of-range values and errors when a matched claim resolves to an empty string, so an empty externalId is never silently accepted nor mapped to an identity - adds validateExternalIdClaim, rejecting unsupported locations, unsupported matcher/parser combos, missing matcher/parser criteria, and negative indexes with HTTP 400 at CA create and update time - applies the validation to both CA create and update, which previously had no externalIdClaim validation on the update path - tests GetExternalId across the matcher/parser matrix for no-panic and correct error/value behavior - tests CA create and update reject invalid externalIdClaim configurations - tests that an externalIdClaim resolving to empty fails enrollment cleanly * backport openziti/ziti#3952 to v1.6 address pr review