Repository navigation
Propagate invalid TLS version errors and remove dead A2A fallback branch - #113
Merged
petrsnd merged 1 commit intoSep 8, 2026
Merged
Conversation
set_tls_version_flags previously called exit on an invalid SAFEGUARD_TLS_MIN / SAFEGUARD_TLS_MAX. Inside invoke_a2a_method (which runs in a command substitution subshell) that exit only killed the subshell, so the caller saw an empty result and kept going instead of failing. It now returns non-zero, and every call site guards it: top-level scripts abort with exit, the A2A helper functions return failure. Also remove the now-unreachable success branch in invoke_a2a_method. The curl path already returns on success (including an empty HTTP 204 body), so the only way to reach the tail is a skipped curl path (usesclient) or a curl error Code; both fall through to the openssl s_client fallback, which now runs directly.
Contributor
Author
|
Full regression complete — 0 failures on both appliances:
Skips are the expected version-adaptive ones (Device Code Login; the A2A TLS-1.3-floor retrieval test correctly skips on 8.x). Ready for the v8.4.0 release. |
petrsnd
approved these changes
Sep 8, 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.
Two follow-up fixes to the TLS 1.3 support merged in #112, targeted at the upcoming v8.4.0 release.
1. Propagate invalid TLS version errors (bug)
set_tls_version_flagscalledexit 1on an invalidSAFEGUARD_TLS_MIN/SAFEGUARD_TLS_MAX. Insideinvoke_a2a_method— which runs in a$(...)command-substitution subshell — thatexitonly killed the subshell, so the caller saw an empty result and continued instead of failing.set_tls_version_flagsnow returns non-zero on an invalid value (with the same stderr message).connect-safeguard.sh,invoke-safeguard-method.sh,listen-for-a2a-event.sh,listen-for-event.sh)|| exit 1; the A2A helper functions inutils/a2a.sh|| return 1.2. Drop unreachable A2A fallback branch (cleanup)
After the HTTP-204 early-return added in #112, the success branch of the tail
if [ ! -z "$response" ] && [ -z "$error"... ]ininvoke_a2a_methodwas dead: the curl path already returns on success, so the only ways to reach the tail are a skipped curl path (usesclient) or a curl error Code — both of which must use the openssls_clientfallback. Removed the dead branch and run the fallback directly. Behavior-preserving (only unreachable code removed); a genuine curl error Code still triggers the openssl retry as before.Validation
Touched suites on SPP 9.0 (
spp1.dan.test, real TLS 1.3): A2A 93/0/0, A2A Broker 21/0/0, TLS Version 4/0/0 — theInvalid SAFEGUARD_TLS_MIN value is rejectedtest confirms #1 end-to-end.bash -nclean on all six files. Full 8.x + 9.0 regression in progress; results to follow.