>_
.issue.db
/highway
Dashboard
Issues
Memory
Lessons
Audit Log
New Issue
Edit Issue #764
Update issue details
Title *
Description
Gmail users.watch -> Pub/Sub topic (projects/highway-481210/topics/Gmail+Highway) -> push to POST /api/v1/triggers/gmail (public, RBAC-exempt, ?token= shared secret in Vault shared/gmail_pubsub_token). Webhook (api/oauth_handlers/gmail_push.py) resolves tenant by email via highway.gmail_push_watches (new migration), mints a fresh access token from the tenant Vault refresh token, history.list since the stored watermark -> new message ids, advances watermark. VALIDATED e2e on demo: users.watch 200 (historyId 15756415) -> self-sent email -> Gmail published -> Pub/Sub pushed -> webhook logged new_messages=1, watermark 15756415->15756451, within seconds. NEXT (increment 2): reaction (match rules per new msg + fire run_goal server-side per tenant, OR emit /gateway/events to a per-tenant waits_for_event watcher) + authenticated watch-registration endpoint (so watch_gmail mode=push registers as the tenant) + daily watch renewal cron (7-day expiry) + watch_gmail push mode in MCP.
Priority
Low
Medium
High
Critical
Status
Open
In Progress
Closed
Won't Do
Due Date (YYYY-MM-DD)
Tags (comma separated)
Related Issues (IDs)
Enter IDs of issues related to this one. They will be linked as 'related'.
Update Issue
Cancel