Skip to content

Fix curl 8.x version parse dropping --http1.1 on A2A cert auth (#107) - #108

Merged
petrsnd merged 1 commit into
OneIdentity:mainfrom
petrsnd:fix/petrsnd/a2a-curl-http11-version-parse
Jul 30, 2026
Merged

petrsnd merged 1 commit into
OneIdentity:mainfrom
petrsnd:fix/petrsnd/a2a-curl-http11-version-parse

Conversation

@DanPeterson

Copy link
Copy Markdown
Contributor

Summary

Fixes the curl-version parse in invoke_a2a_method() (src/utils/a2a.sh) that dropped the --http1.1 flag on curl 8.x, breaking certificate-based A2A retrieval with 60094 Authorization is denied.

Resolves #107.

Root cause

The old check parsed a single numeric field from curl --version and compared it against 33. On curl 8.x the captured field is the minor digit (e.g. 5 from curl 8.5.0), which is < 33, so --http1.1 was 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.minor robustly and force --http1.1 for 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 curl 7.33, 7.68, and 8.5.0.

Scope

Single-file, cert-auth path only. No behavior change for curl < 7.33 or for the s_client fallback path. No server-side change required.

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]>
@DanPeterson
DanPeterson requested a review from a team as a code owner July 29, 2026 05:20
@petrsnd
petrsnd merged commit 267cb7f into OneIdentity:main Jul 30, 2026
2 checks passed
@petrsnd
petrsnd deleted the fix/petrsnd/a2a-curl-http11-version-parse branch July 30, 2026 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A2A cert retrieval fails on curl 8.x: version parse drops --http1.1 (HTTP/2)

2 participants