a2aproject / a2aproject/A2A

[Bug]: Agent card advertises internal URL instead of exposed URL

オープン
#1,599 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Shell
スター
25.7k
フォーク
2.6k
平均マージ
3日 6時間
マージ済み PR(30日)
16

説明

### What happened?

When running an A2A agent inside a container and publishing the container (e.g 8000) to a different host port (e.g. 8001), clients outside the container can resolve the agent card but then fail on subsequent calls. After doing some tests, I managed to identify that this is due to the agent card advertising the container's domain and port (e.g localhost:8000) instead of the host's (e.g mydomain:8001).

Apart from leaking container-internal addressing, this makes it very difficult to work with A2A agents when putting those inside a container or (I'm guessing) behind load balancers or proxies.

I'd be happy to provide an MRE if this behavior is indeed recognized as problematic or if my explanations aren't sufficient.

### Relevant log output

```shell

```

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。