Skip to content

feat(googlechat): migrate Google Chat trust config to first-class [googlechat] section (Phase 1) #1359

Description

@chaodu-agent

Summary

Migrate Google Chat adapter trust configuration from gateway env vars to a first-class [googlechat] section in config.toml.

Current State

  • Gateway env vars only (GATEWAY_ALLOW_ALL_USERS, GATEWAY_ALLOWED_USERS)
  • No per-platform granularity for Google Chat

Target State

[googlechat]
allowed_users = ["users/123456789", "users/987654321"]
# allow_all_users = true  # explicit opt-in only

Tasks

  • Add [googlechat] section to config schema
  • Wire Google Chat trust through PlatformTrustConfigs registry
  • is_bot derivation: message.sender.type == "BOT" (native field from Chat API)
  • Deny-echo via spaces.messages.create (reply in same space)
  • Deprecate gateway env vars for Google Chat
  • Update docs and config.toml.example

Notes

  • Sender ID format: user resource name (e.g., "users/123456789")
  • L1 auth: JWT (RS256) verified via Google JWKS; email claim = chat@system.gserviceaccount.com

Refs

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions