Commit Graph

9541 Commits (04aa856fc02f7c8b82ee8ad17829fe4e94a46d64)

Author SHA1 Message Date
joshavant 04aa856fc0 Onboard: require explicit mode for env secret refs 9 months ago
joshavant 103d02f98c Auth choice tests: expect env-backed key refs 9 months ago
joshavant 56f73ae080 Auth choice tests: assert env-backed keyRef persistence 9 months ago
joshavant 58590087de Onboard auth: use shared secret-ref helpers 9 months ago
joshavant 7e1557b8c9 Onboard: persist env-backed API keys as secret refs 9 months ago
joshavant 363334253b Secrets migrate: split plan/apply/backup modules 9 months ago
joshavant 4807e40cbd Agents: restore auth.json static scrub during pi auth discovery 9 months ago
joshavant 8e439e2d81 Secrets migrate: ensure unique backup ids per write 9 months ago
joshavant a74067d00b Secrets migrate: share helpers and narrow env scrub scope 9 months ago
joshavant f6a854bd37 Secrets: add migrate rollback and skill ref support 9 months ago
joshavant 2e53033f22 Gateway: serialize secrets activation across reload paths 9 months ago
joshavant fe56700026 Gateway: add manual secrets reload command 9 months ago
joshavant 301fe18909 Agents: inject pi auth storage from runtime profiles 9 months ago
joshavant 6a251d8d74 Auth profiles: resolve keyRef/tokenRef outside gateway 9 months ago
joshavant 5ae367aadd Tests: stub discoverAuthStorage in model catalog mocks 9 months ago
joshavant cec404225d Auth labels: handle token refs and share Pi credential conversion 9 months ago
joshavant e1301c31e7 Auth profiles: never persist plaintext when refs are present 9 months ago
joshavant 4c5a2c3c6d Agents: inject pi auth storage from runtime profiles 9 months ago
joshavant 45ec5aaf2b Secrets: keep read-only runtime sync in-memory 9 months ago
joshavant 8e33ebe471 Secrets: make runtime activation auth loads read-only 9 months ago
joshavant 3dbb6be270 Gateway tests: handle async restart callback path 9 months ago
joshavant 1560f02561 Gateway: mark restart callback promise as intentionally detached 9 months ago
joshavant eb855f75ce Gateway: emit one-shot operator events for secrets degraded/recovered 9 months ago
joshavant e45729a430 Secrets runtime: include sourceConfig in prepared snapshot type 9 months ago
joshavant e4915cb107 Secrets: preserve runtime snapshot source refs on write 9 months ago
joshavant b1533bc80c Gateway: avoid double secrets activation at startup 9 months ago
joshavant b50c4c2c44 Gateway: add eager secrets runtime snapshot activation 9 months ago
joshavant 2f3b919b94 Config: remove unused extension path helper 9 months ago
joshavant d00ed73026 Config: enforce source-specific SecretRef id validation 9 months ago
joshavant c3a4251a60 Config: add secret ref schema and redaction foundations 9 months ago
Peter Steinberger 79659b2b14 fix(browser): land PR #11880 decodeURIComponent guardrails
Guard malformed percent-encoding in relay target routes and browser dispatcher params, add regression tests, and update changelog.
Landed from contributor @Yida-Dev (PR #11880).

Co-authored-by: Yida-Dev <reyifeijun@gmail.com>
9 months ago
Harold Hunt dbfdf60a42 fix(telegram): Allow ephemeral webhookPort 9 months ago
Harold Hunt 296210636d fix(telegram): Log bound port if ephemeral (0) is configured 9 months ago
Harold Hunt 840b768d97 Telegram: improve webhook config guidance and startup fallback 9 months ago
Peter Steinberger 5416cabdf8 fix(browser): land PR #21277 dedupe concurrent relay init
Add shared per-port relay initialization dedupe so concurrent callers await a single startup lifecycle, with regression coverage and changelog entry.
Landed from contributor @HOYALIM (PR #21277).

Co-authored-by: Ho Lim <subhoya@gmail.com>
9 months ago
Peter Steinberger ce833cd6de fix(browser): land PR #24142 flush relay pending timers on stop
Flush pending extension request timers/rejections during relay shutdown and document in changelog.
Landed from contributor @kevinWangSheng (PR #24142).

Co-authored-by: Shawn <118158941+kevinWangSheng@users.noreply.github.com>
9 months ago
Peter Steinberger 42cf32c386 fix(browser): land PR #26015 query-token auth for /json relay routes
Align relay HTTP /json auth with websocket auth by accepting query-param tokens, add regression coverage, and update changelog.
Landed from contributor @Sid-Qin (PR #26015).

Co-authored-by: SidQin-cyber <sidqin0410@gmail.com>
9 months ago
张哲芳 77a3930b72
fix(gateway): allow cron commands to use gateway.remote.token (#27286)
* fix(gateway): allow cron commands to use gateway.remote.token

* fix(gateway): make local remote-token fallback effective

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
9 months ago
Peter Steinberger 4c75eca580 fix(browser): land PR #23962 extension relay CORS fix
Reworks browser relay CORS handling for extension-origin preflight and JSON responses, adds regression tests, and updates changelog.
Landed from contributor @miloudbelarebia (PR #23962).

Co-authored-by: Miloud Belarebia <miloudbelarebia@users.noreply.github.com>
9 months ago
Peter Steinberger 081b1aa1ed refactor(gateway): unify v3 auth payload builders and vectors 9 months ago
Peter Steinberger 8315c58675 refactor(auth-profiles): unify coercion and add rejected-entry diagnostics 9 months ago
Peter Steinberger 96aad965ab fix: land NO_REPLY announce suppression and auth scope assertions
Landed follow-up for #27535 and aligned shared-auth gateway expectations after #27498.

Co-authored-by: kevinWangSheng <118158941+kevinWangSheng@users.noreply.github.com>
9 months ago
SidQin-cyber eb9a968336 fix(slack): suppress NO_REPLY before Slack API call
Guard sendMessageSlack against NO_REPLY tokens reaching the Slack API,
which caused truncated push notifications before the reply filter could
intercept them.

Made-with: Cursor
(cherry picked from commit fab9b5203965749e0fc72b58c4f42fbb3a1a18b8)
9 months ago
Kevin Shenghui 9c142993b8 fix: preserve operator scopes for shared auth connections
When connecting via shared gateway token (no device identity),
the operator scopes were being cleared, causing API operations
to fail with 'missing scope' errors.

This fix preserves scopes when sharedAuthOk is true, allowing
headless/API operator clients to retain their requested scopes.

Fixes #27494

(cherry picked from commit c71c8948bd693de0391f861c31d4d6c2cce96061)
9 months ago
Ubuntu 0ab5f4c43b fix: enable store=true for Azure OpenAI Responses API
Azure OpenAI endpoints were not recognized by shouldForceResponsesStore(),
causing store=false to be sent with all Azure Responses API requests.
This broke multi-turn conversations because previous_response_id referenced
responses that Azure never stored.

Add "azure-openai-responses" to the provider whitelist and
*.openai.azure.com to the URL check in isDirectOpenAIBaseUrl().

Fixes #27497

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
(cherry picked from commit 185f3814e94cf50bf04838994af1944389a4b6c0)
9 months ago
SidQin-cyber 71e45ceecc fix(sessions): add fix-missing cleanup path for orphaned store entries
Introduce a sessions cleanup flag to prune entries whose transcript files are missing and surface the exact remediation command from doctor to resolve missing-transcript deadlocks.

Made-with: Cursor
(cherry picked from commit 690d3d596bf8e7347f0f0dc14e357268f2e7c441)
9 months ago
SidQin-cyber a481ed00f5 fix(config): warn and ignore unknown plugin entry keys
Prevent gateway startup failures when plugins.entries contains stale or removed plugin ids by downgrading unknown entry keys from validation errors to warnings.

Made-with: Cursor
(cherry picked from commit 34ef28cf63564159f3144cfb3b38756b468af4f0)
9 months ago
SidQin-cyber 1ba525f94d fix(telegram): degrade command sync on BOT_COMMANDS_TOO_MUCH
When Telegram rejects native command registration for excessive commands, progressively retry with fewer commands instead of hard-failing startup.

Made-with: Cursor
(cherry picked from commit a02c40483ed883d982f4d994923695c01f21d1c7)
9 months ago
SidQin-cyber 79176cc4e5 fix(typing): force cleanup when dispatch idle is never received
Add a grace timer after markRunComplete so the typing controller
cleans up even when markDispatchIdle is never called, preventing
indefinite typing keepalive loops in cron and announce flows.

Made-with: Cursor
(cherry picked from commit 684eaf2893542d648daa1ca0b0c1a32c264bb8bd)
9 months ago
Peter Steinberger 4b259ab81b fix(models): normalize trailing @profile parsing across resolver paths
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
Co-authored-by: Marcus Castro <mcaxtr@gmail.com>
Co-authored-by: Brandon Wise <brandonawise@gmail.com>
9 months ago