Skip to content

feat: Client unification - #21

Closed
kabir wants to merge 70 commits into
mainfrom
client-unification
Closed

kabir wants to merge 70 commits into
mainfrom
client-unification

Conversation

@kabir

@kabir kabir commented Sep 14, 2026

Copy link
Copy Markdown
Owner

No description provided.

kabir and others added 30 commits August 14, 2026 15:21
This is an effort to save size.

The reusable tests in server-common, and the TCKs are intended for use
by external integrations so they need to be deployed
…#1057)

fix(server-common): make InMemoryPushNotificationConfigStore thread-safe
    
Replace synchronizedMap with ConcurrentHashMap using compute()/computeIfPresent()
for atomic per-key operations; store immutable List.copyOf() snapshots. Add
concurrency test verifying limit enforcement under race conditions.
    
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Kabir Khan <kkhan@redhat.com>
Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
Also add property so it won't be deployed to Maven as a safeguard,
although it currently is not part of the aggregator modules
…rations (a2aproject#1066)

Section 3.6.2 requires version checking on every request, but both transports
only called A2AVersionValidator on the message send paths, so a client using
an unsupported version was refused on sendMessage and served normally on the
other nine operations.

A private validateRequest method now carries the pair of checks, and every
operation calls it before reaching the request handler. Tests cover each newly
validated operation on both transports.

Four REST tests sent no A2A-Version header, which section 3.6.1 requires on
every request; they now send it.

Fixes a2aproject#1035
Bumps the quarkus group with 2 updates: [io.quarkus:quarkus-bom](https://github.com/quarkusio/quarkus) and io.quarkus:quarkus-maven-plugin.


Updates `io.quarkus:quarkus-bom` from 3.38.1 to 3.38.2
- [Release notes](https://github.com/quarkusio/quarkus/releases)
- [Commits](quarkusio/quarkus@3.38.1...3.38.2)

Updates `io.quarkus:quarkus-maven-plugin` from 3.38.1 to 3.38.2

Updates `io.quarkus:quarkus-maven-plugin` from 3.38.1 to 3.38.2

---
updated-dependencies:
- dependency-name: io.quarkus:quarkus-bom
  dependency-version: 3.38.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: quarkus
- dependency-name: io.quarkus:quarkus-maven-plugin
  dependency-version: 3.38.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: quarkus
- dependency-name: io.quarkus:quarkus-maven-plugin
  dependency-version: 3.38.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: quarkus
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6 to 7.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](docker/build-push-action@v6...v7)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
….1.0 (a2aproject#1080)

chore: bump org.codehaus.gmavenplus:gmavenplus-plugin

Bumps [org.codehaus.gmavenplus:gmavenplus-plugin](https://github.com/groovy/GMavenPlus) from 5.0.0 to 5.1.0.
- [Release notes](https://github.com/groovy/GMavenPlus/releases)
- [Commits](groovy/GMavenPlus@5.0.0...5.1.0)

---
updated-dependencies:
- dependency-name: org.codehaus.gmavenplus:gmavenplus-plugin
  dependency-version: 5.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…project#1079)

Bumps [io.smallrye.reactive:mutiny-zero](https://github.com/smallrye/smallrye-mutiny-zero) from 1.1.1 to 1.3.0.
- [Release notes](https://github.com/smallrye/smallrye-mutiny-zero/releases)
- [Commits](smallrye/smallrye-mutiny-zero@1.1.1...1.3.0)

---
updated-dependencies:
- dependency-name: io.smallrye.reactive:mutiny-zero
  dependency-version: 1.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
….8 (a2aproject#1077)

Bumps [io.github.ascopes:protobuf-maven-plugin](https://github.com/ascopes/protobuf-maven-plugin) from 5.1.7 to 5.1.8.
- [Release notes](https://github.com/ascopes/protobuf-maven-plugin/releases)
- [Commits](ascopes/protobuf-maven-plugin@v5.1.7...v5.1.8)

---
updated-dependencies:
- dependency-name: io.github.ascopes:protobuf-maven-plugin
  dependency-version: 5.1.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3 to 4.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](docker/setup-buildx-action@v3...v4)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…back (a2aproject#1071)

- extras/http-client-cdi: CdiA2AHttpClientProvider at priority 200 resolves
  a user-provided A2AHttpClient bean from CDI; falls back gracefully when no
  container is active or no unambiguous bean is found
- A2AHttpClientFactory now sorts providers at class init and iterates in order,
  catching exceptions per-provider; create(String) reuses the cached list
  instead of reloading ServiceLoader on each call
- tests use Weld SE SeContainerInitializer (no mocks) covering all four paths:
  bean present, no bean, ambiguous, no CDI container
- update A2AHttpClientProvider Javadoc with full four-tier priority table
- fix VertxA2AHttpClientProvider Javadoc and rename log field to LOGGER

Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
a2aproject#1028)

* feat: make AgentExecutor a functional interface with default cancel method

This fixes a2aproject#1009

* fix: use an import for TaskNotCancelableError instead of a FQN

Also drop the unused EventQueue import in the same file.
* fixed the transport validation and error message

* refactor: use CollectionCopies.unmodifiableShallowList for DataPart list copying

Add unmodifiableShallowList() to CollectionCopies to mirror the existing
unmodifiableShallowMap() method, and use it in DataPart.defensivelyCopy()
instead of inlining the pattern.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Kabir Khan <kkhan@redhat.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Bumps [actions/cache](https://github.com/actions/cache) from 4 to 6.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](actions/cache@v4...v6)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…project#1076)

Bumps org.mock-server:mockserver-netty from 6.1.0 to 7.5.0.

---
updated-dependencies:
- dependency-name: org.mock-server:mockserver-netty
  dependency-version: 7.5.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps `groovy.version` from 5.0.8 to 5.1.0.

Updates `org.apache.groovy:groovy` from 5.0.8 to 5.1.0
- [Commits](https://github.com/apache/groovy/commits)

Updates `org.apache.groovy:groovy-ant` from 5.0.8 to 5.1.0
- [Commits](https://github.com/apache/groovy/commits)

---
updated-dependencies:
- dependency-name: org.apache.groovy:groovy
  dependency-version: 5.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.apache.groovy:groovy-ant
  dependency-version: 5.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
…roject#1084)

- Add AgentExecutorRouter and AgentCardRouter SPI in server-common
- Add @tenant CDI qualifier and CDI router implementations in extras/multitenancy
- Wire tenant-aware resolution in DefaultRequestHandler and all transport handlers
- Add tenant field to RequestContext for execute/cancel flows
- Update GetExtendedAgentCardRequest to carry GetExtendedAgentCardParams

Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
- Modified RestHandler.java to log body length instead of content on parse errors
- Modified RestHandler_v0_3.java to log body length instead of content on parse errors
- Added security tests to verify sensitive data is not logged
- Fixes vulnerability GHSA-x32g-jvvm-4725

This fixes #GHSA-x32g-jvvm-4725

Co-authored-by: Kabir Khan <kabirkhanuk@ibm.com>
…1095)

Move authorization from the CDI-only AuthorizationRequestHandlerDecorator
directly into DefaultRequestHandler so it is enforced on both the CDI and
builder paths. When no TaskAuthorizationProvider is configured, all task
operations are now denied by default (fail-closed). Set
a2a.authorization.required=false to restore the previous open behavior for
single-user deployments or testing.

BREAKING CHANGE: Applications without a TaskAuthorizationProvider will now
reject all task operations. Either provide a provider or set
a2a.authorization.required=false.

Ref: GHSA-qw47-mcm5-934w

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add PushNotificationUrlValidator with SSRF-safe default (scheme
  allowlist, private-network blocking incl. IPv4-mapped IPv6)
- Disable HTTP redirect following on push notification POST requests
- Add a2a.push-notifications.enabled config to gate push config storage

Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
…ect#1089)

Bumps [com.uber.nullaway:nullaway](https://github.com/uber/NullAway) from 0.13.4 to 0.14.0.
- [Release notes](https://github.com/uber/NullAway/releases)
- [Changelog](https://github.com/uber/NullAway/blob/master/CHANGELOG.md)
- [Commits](apache/nullaway@v0.13.4...v0.14.0)

---
updated-dependencies:
- dependency-name: com.uber.nullaway:nullaway
  dependency-version: 0.14.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps the quarkus group with 2 updates: [io.quarkus:quarkus-bom](https://github.com/quarkusio/quarkus) and io.quarkus:quarkus-maven-plugin.


Updates `io.quarkus:quarkus-bom` from 3.38.2 to 3.39.0
- [Release notes](https://github.com/quarkusio/quarkus/releases)
- [Commits](quarkusio/quarkus@3.38.2...3.39.0)

Updates `io.quarkus:quarkus-maven-plugin` from 3.38.2 to 3.39.0

Updates `io.quarkus:quarkus-maven-plugin` from 3.38.2 to 3.39.0

---
updated-dependencies:
- dependency-name: io.quarkus:quarkus-bom
  dependency-version: 3.39.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: quarkus
- dependency-name: io.quarkus:quarkus-maven-plugin
  dependency-version: 3.39.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: quarkus
- dependency-name: io.quarkus:quarkus-maven-plugin
  dependency-version: 3.39.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: quarkus
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Emmanuel Hugonnet <ehsavoie@users.noreply.github.com>
fix: Add optional name to FilePart\

Despite the v0.3 proto in the spec not having this, the spec text
mentions this field.

So although it is a bit wooly whether we should support this or not,
we have added this for leniency.

Fixes a2aproject#1083
…Final (a2aproject#1088)

chore: bump org.jboss.weld.se:weld-se-core

Bumps org.jboss.weld.se:weld-se-core from 5.1.7.Final to 6.0.4.Final.

---
updated-dependencies:
- dependency-name: org.jboss.weld.se:weld-se-core
  dependency-version: 6.0.4.Final
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…2aproject#1097)

- Add safe header allowlist validation to AuthInterceptor
- Disable automatic HTTP redirects in all HTTP clients
- Add 14 security regression tests
- Add security documentation page

Fixes GHSA-9rhm-2h4x-jwmx
…project#915)

Bumps [ch.qos.logback:logback-classic](https://github.com/qos-ch/logback) from 1.5.18 to 1.5.34.
- [Release notes](https://github.com/qos-ch/logback/releases)
- [Commits](qos-ch/logback@v_1.5.18...v_1.5.34)

---
updated-dependencies:
- dependency-name: ch.qos.logback:logback-classic
  dependency-version: 1.5.34
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Emmanuel Hugonnet <ehsavoie@users.noreply.github.com>
…7.6.0 (a2aproject#1098)

Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
* chore: bump quarkus.platform.version from 3.39.0 to 3.39.1

* chore: release 1.3.0.Final
jmesnil and others added 29 commits September 3, 2026 11:15
a2aproject#1112)

- Add TenantNotFoundException; JSONRPCHandler and RestHandler throw/return 404 when AgentCardRouter is set but tenant not found
- Single-tenant servers (no router) ignore the tenant segment and serve the default card
- CdiAgentCardRouter.resolvePublicCard now returns null for unknown/blank tenants instead of the default card
- Add Utils.buildTenantCardPath helper; restrict fallback retry in A2ACardResolver to 404 only
- Update all tests to expect 404 for unknown tenants

Fixes: a2aproject#1108

Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
…edAgentCard (a2aproject#1124)

* test(multitenancy): add gRPC tests and extract shared test infrastructure

- Add gRPC multitenancy integration tests verifying tenant-based executor routing
- Extract shared CDI producers into test-common module, reuse across jsonrpc and gRPC
- Config-driven TestAuthorizationController with CDI alternative verification test

This fixes a2aproject#1102

Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>

* feat(server): make @PublicAgentCard optional with fallback to @ExtendedAgentCard

- Remove @DefaultBean AgentCard from DefaultProducers; bean absence is the signal
- Return 404 from /.well-known/agent-card.json when no @PublicAgentCard
- Fall back to @ExtendedAgentCard for internal capability checks across all transports

Fixes a2aproject#1120

Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>

---------

Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
* test: More code reuse in the multitenancy tests

Make it easier to consume the tests from external integrations

* Review fixes
…ject#1141)

fix(http-client): disable POST redirect following by default

Default PostBuilder.followRedirects to false across JDK, Vert.x, and Android
clients to prevent credential leakage on cross-origin redirects. Vert.x gains
manual RFC 7231/7538 redirect handling; adds shared abstract redirect test suite
and OkHttp-backed test client for Android semantics.

Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
* fix: preserve status message history ordering
* test: cover compat status message history

Signed-off-by: 1fanwang <1fannnw@gmail.com>
Bumps the quarkus group with 2 updates: [io.quarkus:quarkus-bom](https://github.com/quarkusio/quarkus) and io.quarkus:quarkus-maven-plugin.


Updates `io.quarkus:quarkus-bom` from 3.39.1 to 3.39.2
- [Release notes](https://github.com/quarkusio/quarkus/releases)
- [Commits](quarkusio/quarkus@3.39.1...3.39.2)

Updates `io.quarkus:quarkus-maven-plugin` from 3.39.1 to 3.39.2

Updates `io.quarkus:quarkus-maven-plugin` from 3.39.1 to 3.39.2

---
updated-dependencies:
- dependency-name: io.quarkus:quarkus-bom
  dependency-version: 3.39.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: quarkus
- dependency-name: io.quarkus:quarkus-maven-plugin
  dependency-version: 3.39.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: quarkus
- dependency-name: io.quarkus:quarkus-maven-plugin
  dependency-version: 3.39.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: quarkus
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [org.slf4j:slf4j-bom](https://github.com/qos-ch/slf4j) from 2.0.18 to 2.0.19.
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](qos-ch/slf4j@v_2.0.18...v_2.0.19)

---
updated-dependencies:
- dependency-name: org.slf4j:slf4j-bom
  dependency-version: 2.0.19
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ect#1140)

Bumps [com.uber.nullaway:nullaway](https://github.com/uber/NullAway) from 0.14.0 to 0.14.1.
- [Release notes](https://github.com/uber/NullAway/releases)
- [Changelog](https://github.com/uber/NullAway/blob/master/CHANGELOG.md)
- [Commits](apache/nullaway@v0.14.0...v0.14.1)

---
updated-dependencies:
- dependency-name: com.uber.nullaway:nullaway
  dependency-version: 0.14.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps `groovy.version` from 5.1.1 to 5.1.2.

Updates `org.apache.groovy:groovy` from 5.1.1 to 5.1.2
- [Commits](https://github.com/apache/groovy/commits)

Updates `org.apache.groovy:groovy-ant` from 5.1.1 to 5.1.2
- [Commits](https://github.com/apache/groovy/commits)

---
updated-dependencies:
- dependency-name: org.apache.groovy:groovy
  dependency-version: 5.1.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.apache.groovy:groovy-ant
  dependency-version: 5.1.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…aproject#1148)

Update SECURITY.md for the 1.3.2.Final advisory: Android synchronous
POST path re-enabled redirect following, overriding the GHSA-9rhm fix.

- §1: version binding → 1.3.2.Final, advisory count → five
- §8.8: note incomplete fix, cross-reference §8.11
- §8.11: new entry for the Android POST redirect-disable correction
- §8a: mark credential-leakage class as incomplete-fix confirmed
- §13a: add confirmed example of the "different route to same sink" shape
- §14 Wave 5: resolution record for GHSA-4fpj-g9jf-9rgg

Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
* fix: allow omitted task push config id

Fixes a2aproject#1081

* fix: complete optional push config id handling

* test: cover empty and null push config ids

* Reject duplicate push configs with omitted IDs

Signed-off-by: hutiefang76 <137664623+hutiefang76@users.noreply.github.com>

* Preserve v0.3 push config update semantics

Signed-off-by: hutiefang76 <137664623+hutiefang76@users.noreply.github.com>

* Test v0.3 push config setup in multiversion servers

Signed-off-by: hutiefang76 <137664623+hutiefang76@users.noreply.github.com>

---------

Signed-off-by: hutiefang76 <137664623+hutiefang76@users.noreply.github.com>
Co-authored-by: Kabir Khan <kkhan@redhat.com>
@kabir kabir closed this Sep 14, 2026
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.

9 participants