This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new ef4079026a39 CAMEL-28107: Advertise the consumer interface in 
generated A2A agent cards (#31357)
ef4079026a39 is described below

commit ef4079026a3923e999cb0621f747d15b3424dddd
Author: Luigi De Masi <[email protected]>
AuthorDate: Fri Dec 4 14:45:30 2026 +0100

    CAMEL-28107: Advertise the consumer interface in generated A2A agent cards 
(#31357)
    
    A plain-name A2A consumer served a card without an interface, so a client
    could fetch the card but not discover where to send a message, and a card 
with
    only a legacy URL advertised HTTP+JSON when the consumer served JSON-RPC.
    
    The consumer now advertises its configured binding and A2A protocol version.
    It uses the legacy card URL when supplied, or derives the interface URL from
    the discovery request, including the mount path, and keeps service aliases.
    File and bean cards keep their declared interfaces. When the request cannot
    supply a usable address, discovery returns HTTP 400 explaining how to 
declare
    supportedInterfaces. Component doc and upgrade guide updated.
    
    Co-authored-by: OpenAI Codex <[email protected]>
    Signed-off-by: Luigi De Masi <[email protected]>
---
 .../apache/camel/catalog/docs/a2a-consumer.adoc    |  4 +-
 .../camel-a2a/src/main/docs/a2a-consumer.adoc      |  4 +-
 .../apache/camel/component/a2a/A2AConsumer.java    | 35 ++++++++++++-
 .../apache/camel/component/a2a/A2AEndpoint.java    | 12 ++++-
 .../component/a2a/card/AgentCardResolver.java      | 27 +++++++---
 .../a2a/A2AConsumerHttpIntegrationTest.java        | 38 +++++++++++++-
 .../camel/component/a2a/A2AConsumerTest.java       | 60 ++++++++++++++++++++++
 .../ROOT/pages/camel-4x-upgrade-guide-4_25.adoc    |  6 +++
 8 files changed, 173 insertions(+), 13 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/a2a-consumer.adoc
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/a2a-consumer.adoc
index 59a2fd761ffe..6d27c50cfec7 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/a2a-consumer.adoc
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/a2a-consumer.adoc
@@ -131,7 +131,9 @@ from("a2a:my-agent?name=My Agent&description=A simple 
agent&version=1.0.0&valida
 ----
 ====
 
-The component generates the `/.well-known/agent-card.json` response 
dynamically from the parameters. URI parameters only cover the agent identity 
fields above; use an agent card file or an `agentCard` bean for capabilities, 
skills, security schemes, supported interfaces, and other card metadata.
+The consumer serves the card at `/.well-known/agent-card.json` under its 
`basePath`. When the file or bean card declares no interfaces, the consumer 
advertises its configured `protocolBinding` and A2A protocol version. The 
generated interface URL uses the scheme, host, port, and mount path seen by the 
HTTP server on the discovery request. A legacy card's top-level `url`, when 
set, supplies the interface URL instead.
+
+If clients use a different address, for example behind a reverse proxy or with 
a client that requires a DNS hostname, declare the public URL, binding, and 
protocol version in `supportedInterfaces` in the file or bean card. The 
consumer serves declared interfaces even when the transport supplies no usable 
request URL. Without a configured address, such a request returns HTTP 400.
 
 === JSON-RPC Protocol Binding
 
diff --git a/components/camel-ai/camel-a2a/src/main/docs/a2a-consumer.adoc 
b/components/camel-ai/camel-a2a/src/main/docs/a2a-consumer.adoc
index 59a2fd761ffe..6d27c50cfec7 100644
--- a/components/camel-ai/camel-a2a/src/main/docs/a2a-consumer.adoc
+++ b/components/camel-ai/camel-a2a/src/main/docs/a2a-consumer.adoc
@@ -131,7 +131,9 @@ from("a2a:my-agent?name=My Agent&description=A simple 
agent&version=1.0.0&valida
 ----
 ====
 
-The component generates the `/.well-known/agent-card.json` response 
dynamically from the parameters. URI parameters only cover the agent identity 
fields above; use an agent card file or an `agentCard` bean for capabilities, 
skills, security schemes, supported interfaces, and other card metadata.
+The consumer serves the card at `/.well-known/agent-card.json` under its 
`basePath`. When the file or bean card declares no interfaces, the consumer 
advertises its configured `protocolBinding` and A2A protocol version. The 
generated interface URL uses the scheme, host, port, and mount path seen by the 
HTTP server on the discovery request. A legacy card's top-level `url`, when 
set, supplies the interface URL instead.
+
+If clients use a different address, for example behind a reverse proxy or with 
a client that requires a DNS hostname, declare the public URL, binding, and 
protocol version in `supportedInterfaces` in the file or bean card. The 
consumer serves declared interfaces even when the transport supplies no usable 
request URL. Without a configured address, such a request returns HTTP 400.
 
 === JSON-RPC Protocol Binding
 
diff --git 
a/components/camel-ai/camel-a2a/src/main/java/org/apache/camel/component/a2a/A2AConsumer.java
 
b/components/camel-ai/camel-a2a/src/main/java/org/apache/camel/component/a2a/A2AConsumer.java
index 58ff0873c248..e7abdfbce816 100644
--- 
a/components/camel-ai/camel-a2a/src/main/java/org/apache/camel/component/a2a/A2AConsumer.java
+++ 
b/components/camel-ai/camel-a2a/src/main/java/org/apache/camel/component/a2a/A2AConsumer.java
@@ -18,6 +18,7 @@ package org.apache.camel.component.a2a;
 
 import java.io.IOException;
 import java.io.InputStream;
+import java.net.URI;
 import java.nio.charset.StandardCharsets;
 import java.util.ArrayList;
 import java.util.Collections;
@@ -43,6 +44,7 @@ import org.apache.camel.Consumer;
 import org.apache.camel.Exchange;
 import org.apache.camel.Processor;
 import org.apache.camel.component.a2a.auth.A2AUserProfile;
+import org.apache.camel.component.a2a.card.AgentCardResolver;
 import org.apache.camel.component.a2a.extension.A2AExtensionHandler;
 import org.apache.camel.component.a2a.model.AgentCard;
 import org.apache.camel.component.a2a.model.AgentExtension;
@@ -956,11 +958,42 @@ public class A2AConsumer extends DefaultConsumer {
     }
 
     void handleAgentCardRequest(Exchange exchange) throws Exception {
+        AgentCard card = getEndpoint().getConsumerCard();
+        Object requestUrl = exchange.getMessage().getHeader(Exchange.HTTP_URL);
         filterInboundHeaders(exchange);
-        AgentCard card = getEndpoint().getResolvedCard();
+        if (card.getSupportedInterfaces().isEmpty()) {
+            exchange.getMessage().setHeader(CACHE_CONTROL_HEADER, "no-store");
+            URI discovery = 
exchange.getContext().getTypeConverter().tryConvertTo(URI.class, exchange, 
requestUrl);
+            if (!isUsableDiscoveryUrl(discovery)) {
+                writeRestError(exchange, 400, "InvalidParamsError",
+                        "Cannot derive the agent interface URL. Use an 
absolute HTTP(S) discovery URL"
+                                                                    + " or 
configure supportedInterfaces in the agent card.");
+                return;
+            }
+            // Keep the HTTP context path and basePath, dropping the 
well-known suffix and any query.
+            String base = discovery.resolve("..").toString();
+            if (!isJsonRpcBinding()) {
+                base = base.substring(0, base.length() - 1);
+            }
+            card = AgentCardResolver.withDefaultInterface(card, base, 
getEndpoint().getConfiguration().getProtocolBinding());
+        }
         writeJsonResponse(exchange, card);
     }
 
+    private static boolean isUsableDiscoveryUrl(URI discovery) {
+        if (discovery == null || discovery.getRawPath() == null
+                || 
!discovery.getRawPath().endsWith(A2AConstants.WELL_KNOWN_PATH)
+                || !("http".equalsIgnoreCase(discovery.getScheme()) || 
"https".equalsIgnoreCase(discovery.getScheme()))) {
+            return false;
+        }
+        String authority = discovery.getRawAuthority();
+        if (discovery.getHost() == null && authority != null && 
authority.contains("_")) {
+            // Validate service aliases with the JDK's DNS host parser, 
keeping the original authority in the card.
+            discovery = URI.create("//" + authority.replace('_', 'x'));
+        }
+        return discovery.getHost() != null && discovery.getRawUserInfo() == 
null && discovery.getPort() <= 65535;
+    }
+
     void handleSendMessage(Exchange exchange) throws Exception {
         filterInboundHeaders(exchange);
         SendMessageRequest request;
diff --git 
a/components/camel-ai/camel-a2a/src/main/java/org/apache/camel/component/a2a/A2AEndpoint.java
 
b/components/camel-ai/camel-a2a/src/main/java/org/apache/camel/component/a2a/A2AEndpoint.java
index 8b75e8ab87fc..4a1610e499d4 100644
--- 
a/components/camel-ai/camel-a2a/src/main/java/org/apache/camel/component/a2a/A2AEndpoint.java
+++ 
b/components/camel-ai/camel-a2a/src/main/java/org/apache/camel/component/a2a/A2AEndpoint.java
@@ -163,6 +163,7 @@ public class A2AEndpoint extends DefaultEndpoint {
     private A2AConfiguration configuration;
 
     private final AtomicReference<AgentCard> resolvedCard = new 
AtomicReference<>();
+    private AgentCard consumerCard;
     private A2AProtocol protocol;
     private A2ATaskStore taskStore;
     private boolean taskStoreOwned;
@@ -216,7 +217,7 @@ public class A2AEndpoint extends DefaultEndpoint {
             AgentCard fileCard = loader.load(agentCardSource);
 
             // 2. Resolve card with layered precedence: file < bean < URI 
params
-            AgentCard resolved = AgentCardResolver.resolve(
+            AgentCard declared = AgentCardResolver.merge(
                     fileCard,
                     configuration.getAgentCard(),
                     agentCardSource,
@@ -224,7 +225,10 @@ public class A2AEndpoint extends DefaultEndpoint {
                     configuration.getDescription(),
                     configuration.getVersion());
 
-            resolvedCard.set(resolved);
+            // A legacy URL on a remote card retains its REST fallback. We 
know the binding of our own consumer.
+            resolvedCard.set(AgentCardResolver.withDefaultInterface(declared, 
declared.getUrl(), A2AConstants.PROTOCOL_REST));
+            consumerCard
+                    = AgentCardResolver.withDefaultInterface(declared, 
declared.getUrl(), configuration.getProtocolBinding());
 
             // 3. Create protocol
             // TODO: Consider a registry-based ProtocolFactory when a third 
protocol binding is added.
@@ -315,6 +319,10 @@ public class A2AEndpoint extends DefaultEndpoint {
         return resolvedCard.get();
     }
 
+    AgentCard getConsumerCard() {
+        return consumerCard;
+    }
+
     A2AProtocol getProtocol() {
         return protocol;
     }
diff --git 
a/components/camel-ai/camel-a2a/src/main/java/org/apache/camel/component/a2a/card/AgentCardResolver.java
 
b/components/camel-ai/camel-a2a/src/main/java/org/apache/camel/component/a2a/card/AgentCardResolver.java
index 35bf4cb89493..86c04b8fbe6a 100644
--- 
a/components/camel-ai/camel-a2a/src/main/java/org/apache/camel/component/a2a/card/AgentCardResolver.java
+++ 
b/components/camel-ai/camel-a2a/src/main/java/org/apache/camel/component/a2a/card/AgentCardResolver.java
@@ -64,6 +64,14 @@ public final class AgentCardResolver {
             AgentCard fileCard, AgentCard beanCard, String agentCardSource,
             String nameParam, String descriptionParam, String versionParam) {
 
+        AgentCard card = merge(fileCard, beanCard, agentCardSource, nameParam, 
descriptionParam, versionParam);
+        return withDefaultInterface(card, card.getUrl(), 
A2AConstants.PROTOCOL_REST);
+    }
+
+    /** Merge and validate the card before applying a transport-specific 
interface default. */
+    public static AgentCard merge(
+            AgentCard fileCard, AgentCard beanCard, String agentCardSource,
+            String nameParam, String descriptionParam, String versionParam) {
         AgentCard.Builder builder = AgentCard.builder();
 
         // Layer 1: file card
@@ -174,13 +182,20 @@ public final class AgentCardResolver {
             skill.setTags(List.of("a2a"));
             builder.setSkills(List.of(skill));
         }
-        if (resolved.getSupportedInterfaces().isEmpty() && 
!isBlank(resolved.getUrl())) {
-            SupportedInterface supportedInterface = new SupportedInterface();
-            supportedInterface.setUrl(resolved.getUrl());
-            supportedInterface.setProtocolBinding(A2AConstants.PROTOCOL_REST);
-            supportedInterface.setProtocolVersion(A2AConstants.A2A_VERSION);
-            builder.setSupportedInterfaces(List.of(supportedInterface));
+    }
+
+    /** Supply an interface only when the card author did not declare one. */
+    public static AgentCard withDefaultInterface(AgentCard card, String url, 
String protocolBinding) {
+        if (!card.getSupportedInterfaces().isEmpty() || isBlank(url)) {
+            return card;
         }
+        SupportedInterface iface = new SupportedInterface();
+        iface.setUrl(url);
+        iface.setProtocolBinding(protocolBinding);
+        iface.setProtocolVersion(A2AConstants.A2A_VERSION);
+        AgentCard.Builder builder = AgentCard.builder();
+        applyNonNull(card, builder);
+        return builder.setSupportedInterfaces(List.of(iface)).build();
     }
 
     private static void validate(AgentCard card) {
diff --git 
a/components/camel-ai/camel-a2a/src/test/java/org/apache/camel/component/a2a/A2AConsumerHttpIntegrationTest.java
 
b/components/camel-ai/camel-a2a/src/test/java/org/apache/camel/component/a2a/A2AConsumerHttpIntegrationTest.java
index cf04e765d790..ef364f7c9dfc 100644
--- 
a/components/camel-ai/camel-a2a/src/test/java/org/apache/camel/component/a2a/A2AConsumerHttpIntegrationTest.java
+++ 
b/components/camel-ai/camel-a2a/src/test/java/org/apache/camel/component/a2a/A2AConsumerHttpIntegrationTest.java
@@ -129,6 +129,31 @@ class A2AConsumerHttpIntegrationTest {
         JsonNode card = MAPPER.readTree(response.body());
         assertThat(card.get("name").asString()).isEqualTo("TestAgent");
         assertThat(card.get("version").asString()).isEqualTo("1.0.0");
+        JsonNode interfaces = card.get("supportedInterfaces");
+        assertThat(interfaces.size()).isOne();
+        
assertThat(interfaces.get(0).get("url").asString()).isEqualTo(baseUrl());
+        
assertThat(interfaces.get(0).get("protocolBinding").asString()).isEqualTo("HTTP+JSON");
+        
assertThat(interfaces.get(0).get("protocolVersion").asString()).isEqualTo("1.0");
+    }
+
+    @Test
+    void discoveryPreservesDeclaredInterfaces() throws Exception {
+        context = createContext();
+        context.addRoutes(new RouteBuilder() {
+            @Override
+            public void configure() {
+                
from("a2a:classpath:cards/test-agent-card.json?protocolBinding=JSONRPC")
+                        .setBody(constant("echo"));
+            }
+        });
+        context.start();
+
+        HttpResponse<String> response = get("/.well-known/agent-card.json");
+        assertThat(response.statusCode()).isEqualTo(200);
+        JsonNode interfaces = 
MAPPER.readTree(response.body()).get("supportedInterfaces");
+        assertThat(interfaces.size()).isOne();
+        
assertThat(interfaces.get(0).get("url").asString()).isEqualTo("https://weather.example.com";);
+        
assertThat(interfaces.get(0).get("protocolBinding").asString()).isEqualTo("HTTP+JSON");
     }
 
     @Test
@@ -280,7 +305,7 @@ class A2AConsumerHttpIntegrationTest {
         context.addRoutes(new RouteBuilder() {
             @Override
             public void configure() {
-                
from("a2a:test-agent?name=JsonRpcAgent&version=1.0.0&protocolBinding=jsonrpc&validateAuth=false")
+                
from("a2a:test-agent?basePath=/agents/stock&protocolBinding=jsonrpc&validateAuth=false")
                         .setBody(constant("JSON-RPC echo"));
             }
         });
@@ -291,7 +316,16 @@ class A2AConsumerHttpIntegrationTest {
                                 + 
"\"role\":\"user\",\"parts\":[{\"text\":\"Hello JSON-RPC\"}]}},"
                                 + "\"id\":\"req-1\"}";
 
-        HttpResponse<String> response = post("/", jsonRpcRequest, 
A2AConstants.JSONRPC_CONTENT_TYPE);
+        HttpResponse<String> discovery = 
get("/agents/stock/.well-known/agent-card.json?view=full");
+        assertThat(discovery.statusCode()).isEqualTo(200);
+        JsonNode iface = 
MAPPER.readTree(discovery.body()).get("supportedInterfaces").get(0);
+        
assertThat(iface.get("protocolBinding").asString()).isEqualTo("JSONRPC");
+        URI advertised = URI.create(iface.get("url").asString());
+        assertThat(advertised.toString()).isEqualTo(baseUrl() + 
"/agents/stock/");
+
+        HttpResponse<String> response = 
http.send(HttpRequest.newBuilder(advertised)
+                .header("Content-Type", A2AConstants.JSONRPC_CONTENT_TYPE)
+                
.POST(HttpRequest.BodyPublishers.ofString(jsonRpcRequest)).build(), 
HttpResponse.BodyHandlers.ofString());
 
         assertThat(response.statusCode()).isEqualTo(200);
         JsonNode body = MAPPER.readTree(response.body());
diff --git 
a/components/camel-ai/camel-a2a/src/test/java/org/apache/camel/component/a2a/A2AConsumerTest.java
 
b/components/camel-ai/camel-a2a/src/test/java/org/apache/camel/component/a2a/A2AConsumerTest.java
index 6dd320d7c589..6a4fda4a667c 100644
--- 
a/components/camel-ai/camel-a2a/src/test/java/org/apache/camel/component/a2a/A2AConsumerTest.java
+++ 
b/components/camel-ai/camel-a2a/src/test/java/org/apache/camel/component/a2a/A2AConsumerTest.java
@@ -47,6 +47,7 @@ import 
org.apache.camel.component.a2a.model.SendMessageConfiguration;
 import org.apache.camel.component.a2a.model.SendMessageRequest;
 import org.apache.camel.component.a2a.model.SendMessageResponse;
 import org.apache.camel.component.a2a.model.StreamResponse;
+import org.apache.camel.component.a2a.model.SupportedInterface;
 import org.apache.camel.component.a2a.model.Task;
 import org.apache.camel.component.a2a.model.TaskPushNotificationConfig;
 import org.apache.camel.component.a2a.model.TaskState;
@@ -63,6 +64,9 @@ import org.apache.camel.support.DefaultExchange;
 import org.junit.jupiter.api.AfterEach;
 import org.junit.jupiter.api.BeforeEach;
 import org.junit.jupiter.api.Test;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.NullSource;
+import org.junit.jupiter.params.provider.ValueSource;
 import tools.jackson.databind.DeserializationFeature;
 import tools.jackson.databind.JsonNode;
 import tools.jackson.databind.ObjectMapper;
@@ -127,6 +131,8 @@ class A2AConsumerTest {
         config.setName("Test Agent");
         config.setVersion("1.0.0");
         config.setDescription("A test agent");
+        config.setProtocolBinding("jsonrpc");
+        
config.setAgentCard(AgentCard.builder().setUrl("https://public.example/agents/stock";).build());
 
         // Create component and endpoint
         A2AComponent component = new A2AComponent();
@@ -155,11 +161,65 @@ class A2AConsumerTest {
         assertEquals("Test Agent", card.getName());
         assertEquals("1.0.0", card.getVersion());
         assertEquals("A test agent", card.getDescription());
+        assertEquals(1, card.getSupportedInterfaces().size());
+        assertEquals("https://public.example/agents/stock";, 
card.getSupportedInterfaces().get(0).getUrl());
+        assertEquals("JSONRPC", 
card.getSupportedInterfaces().get(0).getProtocolBinding());
+        assertEquals("1.0", 
card.getSupportedInterfaces().get(0).getProtocolVersion());
 
         String contentType = 
exchange.getMessage().getHeader(Exchange.CONTENT_TYPE, String.class);
         assertEquals(A2AConstants.CONTENT_TYPE, contentType);
     }
 
+    @Test
+    void discoveryPreservesServiceAliasWithUnderscore() throws Exception {
+        A2AConsumer consumer = createJsonRpcConsumer(exchange -> {
+        });
+        Exchange exchange = new DefaultExchange(context);
+        exchange.getMessage().setHeader(Exchange.HTTP_URL, 
"http://my_agent:8080/stock/.well-known/agent-card.json";);
+
+        consumer.createDispatchProcessor(consumer::handleAgentCardRequest, 
true).process(exchange);
+
+        AgentCard card = 
OBJECT_MAPPER.readValue(exchange.getMessage().getBody(byte[].class), 
AgentCard.class);
+        
assertThat(card.getSupportedInterfaces()).extracting(SupportedInterface::getUrl)
+                .containsExactly("http://my_agent:8080/stock/";);
+        
assertThat(exchange.getMessage().getHeader("Cache-Control")).isEqualTo("no-store");
+    }
+
+    @ParameterizedTest
+    @NullSource
+    @ValueSource(strings = {
+            "/.well-known/agent-card.json", "http://[";, 
"http://user@my_agent/.well-known/agent-card.json";,
+            "http://my_agent:bad/.well-known/agent-card.json";, 
"ftp://agent/.well-known/agent-card.json";,
+            "http://agent:99999/.well-known/agent-card.json";, 
"http://agent/other"; })
+    void discoveryReturnsHttpErrorForUnusableRequestUrl(String requestUrl) 
throws Exception {
+        A2AConsumer consumer = createJsonRpcConsumer(exchange -> {
+        });
+        Exchange exchange = new DefaultExchange(context);
+        exchange.getMessage().setHeader(Exchange.HTTP_URL, requestUrl);
+
+        consumer.createDispatchProcessor(consumer::handleAgentCardRequest, 
true).process(exchange);
+
+        
assertThat(exchange.getMessage().getHeader(Exchange.HTTP_RESPONSE_CODE)).isEqualTo(400);
+        JsonNode response = 
OBJECT_MAPPER.readTree(exchange.getMessage().getBody(byte[].class));
+        
assertThat(response.get("error").get("message").asString()).contains("supportedInterfaces");
+        
assertThat(exchange.getMessage().getHeader("Cache-Control")).isEqualTo("no-store");
+    }
+
+    @Test
+    void discoveryWithDeclaredInterfaceIgnoresUnusableRequestUrl() throws 
Exception {
+        String source = "classpath:cards/test-agent-card.json";
+        A2AConsumer consumer = new A2AConsumer(createEndpoint("a2a:" + source, 
source, new A2AConfiguration()), exchange -> {
+        });
+        Exchange exchange = new DefaultExchange(context);
+        exchange.getMessage().setHeader(Exchange.HTTP_URL, 
"/.well-known/agent-card.json");
+
+        consumer.handleAgentCardRequest(exchange);
+
+        AgentCard card = 
OBJECT_MAPPER.readValue(exchange.getMessage().getBody(byte[].class), 
AgentCard.class);
+        
assertThat(card.getSupportedInterfaces()).extracting(SupportedInterface::getUrl)
+                .containsExactly("https://weather.example.com";);
+    }
+
     @Test
     void handleSendMessageProcessesRequest() throws Exception {
         // Create configuration
diff --git 
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_25.adoc 
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_25.adoc
index bbdcca082a79..093f72fc9d28 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_25.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_25.adoc
@@ -13,6 +13,12 @@ See the xref:camel-upgrade-recipes-tool.adoc[documentation] 
page for details.
 
 == Upgrading Camel 4.24 to 4.25
 
+=== camel-a2a - generated agent cards advertise the consumer interface
+
+Generated consumer agent cards now publish a `supportedInterfaces` entry for 
the configured protocol binding.
+A card containing only a legacy `url` now advertises that URL with the 
consumer's binding. A consumer behind
+a reverse proxy can declare `supportedInterfaces` in its card to publish the 
external URL.
+
 === camel-core - intercept no longer intercepts the steps of onCompletion and 
of other intercepts
 
 The xref:components:eips:intercept.adoc[intercept] is for the main route path. 
The `onCompletion` and the steps inside an

Reply via email to