Skip to content

Confer v0.3.1 — security patch

Choose a tag to compare

@github-actions github-actions released this 02 Aug 15:38
bdd970d

🔒 Confer v0.3.1 — security patch

A2A Protocol Platform — Let your AI Agent speak for you.
AI 代理通信平台 — 让 AI Agent 代你发声。
A2Aプロトコルプラットフォーム — AIエージェントに語らせよう。

📅 2026-08-02 · Full changelog

Anyone running a Confer instance that peers with others should upgrade. A repo-wide
review found two cross-tenant authorization holes. Each was reproduced against the real
test stack before being fixed, and each now has a regression test.


🇬🇧 English

🔒 Security

  • A2A thread injection (cross-tenant). peer_agents rows are globally unique by DID,
    so one peer connected to two owners shares a single row. Inbound thread lookup only
    checked that the sending peer was a participant — not who owned the thread. A peer could
    address owner B's agent while supplying owner A's thread_id, which wrote the message
    into A's conversation, answered it using A's history as LLM context, broadcast B's reply
    to A, and distilled A's content into B's long-term memory. Thread reuse now also requires
    conversations.created_by to match the addressed agent's owner.
  • Unauthorized WebSocket subscription. subscribe.conversation added any id to the
    socket's subscription set with no check, and that set was the only gate the broadcaster
    consulted — any authenticated user who learned a conversation id received its entire live
    message stream. Subscriptions now require a participant row or conversation ownership,
    mirroring the REST read gates.
  • Unbounded rate-limit map. The counters map grew one entry per distinct ip:path and
    was never pruned. It now runs the same bounded periodic sweep the nonce cache uses.

🐛 Fixes

  • Inbound A2A conversations were invisible to their owner. They were seeded with only
    the peer participant, so they never appeared in GET /api/v1/conversations and the
    per-conversation read gate rejected the owner — you could not see the thread your own
    agent was answering in. Both participants are now seeded.

🧹 Internals

  • Extracted shared helpers across seven duplicated code groups (backend helpers and
    frontend components).
  • Rebuilt .claude/ automation: hooks moved into tracked settings, two guards that had
    silently never fired were fixed.

📝 Docs

  • docs/03-protocol.md now specifies thread-binding rules — an inbound thread_id is a
    request, not an instruction.
  • CLAUDE.md / AGENTS.md record the branch model and the peer_agents tenant-isolation
    rule.

⚠️ Upgrade notes

Conversations created before this release still lack the owner participant row, so they
remain absent from the conversation list. The WebSocket ownership fallback keeps them
readable. A backfill migration is not included in this release.


🇨🇳 中文

🔒 安全修复

  • A2A 线程注入(跨租户)。 peer_agents 表按 DID 全局唯一,同一个 peer 连接多个用户时
    共享同一行记录。入站线程查找此前只校验发送方 peer 是否为参与者,没有校验线程归谁所有。
    于是 peer 可以在给用户 B 的 Agent 发消息时携带用户 A 的 thread_id:消息被写入 A 的会话、
    以 A 的历史作为 LLM 上下文作答、把 B 的 Agent 回复广播给 A,并将 A 的会话内容蒸馏进 B 的
    长期记忆。现在复用线程还必须满足 conversations.created_by 等于被寻址 Agent 的所有者。
  • WebSocket 订阅缺少鉴权。 subscribe.conversation 此前不做任何检查就把会话 id 加入
    socket 的订阅集合,而广播时唯一的判断依据正是这个集合——任何已登录用户只要知道会话 id,
    就能收到该会话的完整实时消息流。现在订阅要求存在参与者记录或拥有该会话,与 REST 读取
    门禁一致。
  • 限流计数表无限增长。 counters map 按 ip:path 每个组合增加一条且从不清理。现已接入
    与 nonce 缓存相同的有界定期清扫。

🐛 缺陷修复

  • 入站 A2A 会话对其所有者不可见。 建会话时只写入了 peer 参与者,导致它既不出现在
    GET /api/v1/conversations 里,会话级读取门禁也会拒绝所有者本人——你看不到自己的 Agent
    正在其中作答的那条线程。现在所有者和 peer 都会被写入。

🧹 内部改进

  • 抽取了七组重复代码的共享 helper(后端 helper 与前端组件)。
  • 重建 .claude/ 自动化:hooks 迁入受版本控制的 settings,修复了两个此前始终静默失效的守卫。

📝 文档

  • docs/03-protocol.md 新增线程绑定规则——入站的 thread_id 是请求,不是指令。
  • CLAUDE.md / AGENTS.md 记录了分支模型与 peer_agents 租户隔离规则。

⚠️ 升级说明

本次发布之前创建的会话仍然缺少所有者参与者记录,因此依旧不会出现在会话列表中。
WebSocket 的所有权兜底保证它们仍可读取。本版本不包含回填迁移。


🇯🇵 日本語

🔒 セキュリティ修正

  • A2A スレッドインジェクション(テナント跨ぎ)。 peer_agents は DID でグローバルに
    一意なため、複数のオーナーに接続している peer は 1 行を共有します。受信スレッドの照合は
    送信元 peer が参加者かどうかしか見ておらず、そのスレッドの所有者を確認していませんでした。
    peer はオーナー B の Agent 宛にメッセージを送りながらオーナー A の thread_id を指定でき、
    メッセージは A の会話に書き込まれ、A の履歴を LLM コンテキストとして回答され、B の Agent の
    返信が A に配信され、A の会話内容が B の長期記憶に蒸留されていました。スレッド再利用には
    conversations.created_by が宛先 Agent の所有者と一致することが必要になりました。
  • WebSocket 購読の認可欠落。 subscribe.conversation はチェックなしに会話 id を
    socket の購読集合へ追加しており、ブロードキャスト時の判定はその集合のみでした——
    認証済みユーザーは会話 id を知るだけで、その会話のライブメッセージ全体を受信できました。
    購読には参加者レコードまたは会話の所有が必要になり、REST の読み取りゲートと揃いました。
  • レートリミットの無制限なマップ。 counters マップは ip:path の組み合わせごとに増え続け、
    一度も削除されませんでした。nonce キャッシュと同じ有界の定期スイープを適用しました。

🐛 バグ修正

  • 受信した A2A 会話がオーナーから見えない。 peer 参加者のみで作成されていたため
    GET /api/v1/conversations に現れず、会話単位の読み取りゲートがオーナー自身を拒否して
    いました——自分の Agent が応答しているスレッドを見られませんでした。現在は両者を登録します。

🧹 内部改善

  • 重複していた 7 グループのコードから共有ヘルパーを抽出(バックエンドヘルパーと
    フロントエンドコンポーネント)。
  • .claude/ の自動化を再構築:hooks をバージョン管理下の settings へ移し、
    無言で機能していなかった 2 つのガードを修正。

📝 ドキュメント

  • docs/03-protocol.md にスレッド束縛のルールを追加——受信した thread_id は
    リクエストであって指示ではありません。
  • CLAUDE.md / AGENTS.md にブランチモデルと peer_agents のテナント分離ルールを記載。

⚠️ アップグレード時の注意

本リリース以前に作成された会話にはオーナーの参加者レコードがないため、引き続き会話
一覧には現れません。WebSocket の所有権フォールバックにより読み取りは可能です。
バックフィル用マイグレーションは本リリースには含まれません。


📦 Download & Install · 下载安装 · ダウンロード

Platform File
🍎 macOS (Apple Silicon) Confer_0.3.1_aarch64.dmg
🪟 Windows (x64) Confer_0.3.1_x64-setup.exe · Confer_0.3.1_x64_en-US.msi
🪟 Windows (ARM64) Confer_0.3.1_arm64-setup.exe · Confer_0.3.1_arm64_en-US.msi
🐧 Linux (x64) Confer_0.3.1_amd64.AppImage · Confer_0.3.1_amd64.deb · Confer-0.3.1-1.x86_64.rpm
🤖 Android app-universal-release.apk

No macOS Intel build — the release matrix covers Apple Silicon only.
未构建 macOS Intel 版本——发布矩阵仅覆盖 Apple Silicon。
macOS Intel 版はビルドされていません(リリースマトリクスは Apple Silicon のみ)。

Server · 服务端 · サーバー

git clone https://github.com/hyhmrright/Confer && cd Confer
cp .env.example .env        # Edit PUBLIC_HOST, JWT_SECRET, ENCRYPTION_KEY
docker compose -f docker-compose.prod.yml up -d --build

🔗 Links · 链接 · リンク

📖 Documentation hyhmrright.github.io/Confer
🐛 Report a Bug Issues
💡 Questions & Ideas Discussions
🔒 Security SECURITY.md

Built with Tauri 2.0 · Bun · Hono · A2A · DID:web · RFC 9421 — Apache 2.0