Repository navigation
Fix curl 8.x version parse dropping --http1.1 on A2A cert auth (#107) - #108
Merged
petrsnd merged 1 commit intoJul 30, 2026
Merged
Conversation
The libcurl version check in invoke_a2a_method() parsed only a single numeric field and compared it against 33 to decide whether to pass --http1.1. On curl 8.x that field was the MINOR digit (e.g. "5" from curl 8.5.0), which is < 33, so the flag was dropped. Without --http1.1, curl 8.x negotiates HTTP/2 via ALPN, and HTTP/2 forbids the TLS renegotiation / post-handshake client-certificate exchange that A2A cert auth relies on (RFC 8740). The request then reaches the service without a validated client certificate and fails with 60094 (Authorization is denied). This is more visible under SPP 9.0 (TLS 1.3) but the root cause is the version-parse logic, not the appliance. Parse major.minor robustly and force --http1.1 for all curl >= 7.33 (including 8.x) on the certificate-auth path. Fixes OneIdentity#107 Co-authored-by: Copilot App <[email protected]>
petrsnd
approved these changes
Jul 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the curl-version parse in
invoke_a2a_method()(src/utils/a2a.sh) that dropped the--http1.1flag on curl 8.x, breaking certificate-based A2A retrieval with60094 Authorization is denied.Resolves #107.
Root cause
The old check parsed a single numeric field from
curl --versionand compared it against33. On curl 8.x the captured field is the minor digit (e.g.5fromcurl 8.5.0), which is< 33, so--http1.1was silently omitted. curl 8.x then negotiates HTTP/2 via ALPN, and HTTP/2 forbids the TLS renegotiation / post-handshake client-certificate exchange A2A cert auth depends on (RFC 8740). The request reaches the service without a validated client cert and is denied.This is more visible on SPP 9.0 (TLS 1.3) but the defect is entirely client-side: it bites any modern curl regardless of TLS version.
Fix
Parse
major.minorrobustly and force--http1.1for all curl>= 7.33(including 8.x) on the cert-auth path.Validation
Reproduced live against SPP 9.0 (TLS 1.3): with the old parse, cert-based A2A retrieval failed
60094(request went out as HTTP/2); with the fix, curl uses HTTP/1.1 and retrieval succeeds. Verified the parse selects the correct branch for curl7.33,7.68, and8.5.0.Scope
Single-file, cert-auth path only. No behavior change for curl
< 7.33or for thes_clientfallback path. No server-side change required.