Repository navigation
feat(studio): Profile page, connectors and new integration tools - #1201
Conversation
…events and notifications; new integration tools Adds a #/profile screen (connectors, AI access, secrets, automation keys, inbound events, notifications), Google Workspace, Jenkins, Figma, Confluence and full Slack tools, extra Jira tools, a Configure-tab model dropdown, and a tidier run-table layout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Approving with reservations.
This PR adds a comprehensive Profile page (Connectors, AI access, Secrets, Automation keys, Inbound events, Notifications) and extends the SDK with new integration tools (Google Workspace, Jenkins, Figma, Confluence, full Slack API, Jira extensions). The API surface is expanded with new config interfaces and tool classes, and the routes are wired up in app.ts.
Main concerns:
-
🔴 Security:
/hooks/_triggerhas no rate limit – This endpoint bypasses Basic auth and relies solely on the key/secret for protection, with no rate limiting. This could enable abuse or DoS. A rate‑limit middleware should be added before merging. -
🟡 Correctness: IntegrationName type expanded – The public
IntegrationNameunion now includesconfluence,google,jenkins,figma,slackApi. This is additive for the new integrations, but consumers doing exact type matches may need updating. -
🟡 Correctness: test type assertion – The test now uses
runs: { on: () => undefined, off: () => undefined } as unknown as RunManagerto fix a type mismatch. Studio tests were last run green before the #1200 rebase and were not re‑run after. -
🟡 Security: Google verify returns {} immediately – In
connectors.tstheverifyhandler forgooglereturns{}deferring verification to the OAuth callback flow. Credentials can be saved without real validation until the callback completes. -
🟡 Build: studio tests not re‑run – The PR explicitly states studio tests were not re‑run after the #1200 rebase. These should pass but represent a gap.
Follow‑up: add rate‑limiting to /hooks/_trigger (and optionally /hooks/_in/…) and re‑run the studio test suite after the rebase.
| @@ -96,7 +96,7 @@ function appWith( | |||
| suggestions: new SuggestionStore(repo), | |||
There was a problem hiding this comment.
🟡 Correctness: test now uses runs: { on: () => undefined, off: () => undefined } as unknown as RunManager to fix a type mismatch. Studio tests weren't re-run after the #1200 rebase.
There was a problem hiding this comment.
The fake RunManager needs on/off because the notifier now subscribes to run status. Studio client (144) and server tests were re-run green after the #1200 rebase.
|
|
||
| app.post( | ||
| '/hooks/_trigger', | ||
| asyncRoute(async (req, res) => { |
There was a problem hiding this comment.
🔴 Security: /hooks/_trigger has no rate limit. The endpoint bypasses Basic auth and relies only on the key/secret, with no rate limiting – potential DoS vector.
There was a problem hiding this comment.
Fixed in 5f5473e: /hooks/_trigger is limited to 60 requests/min per client IP and /hooks/_in/:id to 120, answering 429 with Retry-After. Covered by a new test in profile.test.ts.
| case 'google': | ||
| return {}; | ||
| } | ||
| } |
There was a problem hiding this comment.
🟡 Security: Google verify returns {} immediately, deferring verification to the OAuth callback. Intentional flow design, but credentials can be saved without real validation until the callback completes.
There was a problem hiding this comment.
Intentional. Google uses OAuth, so there's nothing to verify until the callback; the connector only reports Connected once the callback has stored a refresh token (connectors.ts:165).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Approving.
The PR adds a comprehensive Profile page (Connectors, AI access, Secrets, Automation keys, Inbound events, Notifications) and extends the SDK with new integration tools (Google Workspace, Jenkins, Figma, Confluence, full Slack API, Jira extensions). The API surface is expanded with new config interfaces and tool classes, and the routes are wired up in app.ts.
Key changes since the previous review:
- 🔴 Security concern resolved:
/hooks/_triggernow hasrateLimit(60)middleware, addressing the DoS risk from the lack of rate limiting. - ✅ Studio tests pass after rebasing onto #1200, as confirmed by the commit-hook checks.
- ✅ API and type definitions regenerated and consistent (IntegrationName union expanded, new Confluence/Google/Jenkins/Figma/SlackApi configs and tool classes added).
The implementation looks solid: connectors verify with providers before saving, automation keys are hashed and scoped, inbound events have signature/token checks with delivery logs, and notifications support per-agent overrides. The new SDK tools follow the established createXTools / ToolRegistry patterns.
No further changes are needed. Approving.
What
#/profile) with tabs: Connectors, AI access, Secrets, Automation keys, Inbound events, Notifications.POST /hooks/_trigger./hooks/_in/:idendpoints with GitHub, Slack, Lousho-signature or token checks, plus a delivery log.Notes
/hooks/_triggerand/hooks/_in/…bypass the deployed Studio's Basic auth, like the existing/hooks/paths. The key or secret is the only protection, and there's no rate limit yet.Checks
🤖 Generated with Claude Code