feat(integrations): add the Render adapter for deploys, service events, and bandwidth
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 18/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- nextjs, playwright, typescript
Hướng nghiên cứu
Start with plan step 1: the issue is blocked until Render answers whether a DevMacro OAuth client with read-only access is possible, and Eddie decides the connection path — read the three comments before anything else. If unblocked, read docs/adapters.md ("Register the provider") and an existing adapter under src/lib/adapters/ next to types.ts and registry.ts, then build src/lib/adapters/render/ against sanitized fixtures. Done means deploys and bandwidth show on the dashboard, tokens refresh and revoke correctly, and e2e/render.spec.ts plus e2e/docs.spec.ts pass alongside npm run lint, typecheck, test.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Context
Requested by a potential user: Render (https://render.com) as a hosting platform, alongside Vercel, Railway, and DigitalOcean. Eddie wants it in the MVP (2026-11-14).
Research from Render's documentation and live endpoints, checked 2026-11-14:
| Question | Finding | Source |
|---|---|---|
| OAuth server | Exists: authorization code flow with refresh tokens, PKCE (S256), public clients (token_endpoint_auth_methods_supported: ["none"]), a revocation endpoint, and an introspection endpoint |
https://api.render.com/.well-known/oauth-authorization-server |
| Can a third party register a client? | Not documented. The metadata has no registration_endpoint and lists no scopes. An unknown client_id gets {"error":"invalid_client","error_description":"client is invalid or inactive"}; Render's own codex client gets "redirect_uri is not registered for this client". Clients are registered by Render, for its MCP plugins (Claude, Codex, Cursor) |
Authorize endpoint probed 2026-11-14, MCP server docs |
| Read-only access through OAuth | Not documented. The MCP docs warn that authenticating "grants access to your workspaces and services", including changing environment variables and triggering deploys | MCP server docs |
| Read-only access through API keys | Scoped API keys (early access) can be read-only per resource, one workspace per key. The API docs say "All Render API requests require authentication via API key" | Scoped API keys, Render API |
| Spend or invoices | No endpoint. The OpenAPI spec has no billing, invoice, or cost path | https://api-docs.render.com/openapi/render-public-api-1.json |
| Usage | GET /metrics/bandwidth (bandwidth is billed above the plan's allowance), GET /metrics/instance-count |
Same spec |
| Events | GET /services/{serviceId}/deploys, GET /services/{serviceId}/events, GET /events/{eventId} |
Same spec |
| Accounts | GET /owners (workspaces), GET /services |
Same spec |
| Webhooks | Workspace webhooks on the Pro plan or higher; Pro allows one destination URL, Scale and Enterprise up to 100. Signed with Standard Webhooks (webhook-id, webhook-timestamp, webhook-signature, HMAC SHA-256), deduplicate on webhook-id. Thin payload, details from GET /events/{eventId}. Created by a workspace admin in the dashboard, or with POST /webhooks, which needs write access to the workspace. Events include build_started, build_ended, deploy_started, deploy_ended, server_failed, autoscaling_ended |
Render webhooks |
Blocker for an OAuth-only MVP
The MVP connects providers through OAuth only (decision on #40). Render's OAuth server works, but DevMacro cannot get a client without Render registering one, and nothing documented says an OAuth grant can be read-only. Someone has to ask Render (partnerships or support) for a DevMacro OAuth client with read-only access. That request is Eddie's, because it speaks for DevMacro to a vendor.
If Render says no, the only read-only path is a scoped API key, which needs the API key connection path planned in #49. Choosing that for the MVP reverses part of the decision on #40, so it goes to Eddie as an options table on this issue.
Plan
- Ask Render for an OAuth client with DevMacro's redirect URI, and ask whether a grant can be limited to read (services, deploys, monitoring). Record the answer on this issue. If the answer is no or read-only is not possible, post an options table (OAuth with full access, scoped API key through #49, or not in the MVP) and wait.
- Adapter in
src/lib/adapters/render/: authorize with PKCE, exchange and refresh tokens,revokethrough/v1/oauth/token/revoke. External account: the workspace (GET /owners). - Sync: deploy events per service (
deploy_succeededanddeploy_failedcategories, so they count in the dashboard headline and the deployment streak in #304), service events such asserver_failedand autoscaling, and bandwidth usage per service. No spend: Render exposes none, and the provider page says so. - Webhooks, per #28 and the decision on #424: deploy and service events by webhook with polling as the backfill. Through the setup panel in #426 the user chooses: automatic setup, an opt-in that asks for workspace write access and creates the webhook with
POST /webhooks, with the panel's warning that Render has no read-only access that can create a webhook; or setup by hand in Render's dashboard (Integrations > Webhooks, workspace admins), pasting Render's signing secret back into DevMacro. Webhooks need the Pro plan or higher, and on Pro the workspace's one webhook URL may already be in use, so automatic setup checks first and the copy says so. If the OAuth client Render issues in step 1 is not read-only, the connection already holds write access, and the panel must not claim that setup by hand keeps DevMacro read-only. - Register the provider in every file listed in
docs/adapters.md, "Register the provider". - Provider page
docs/providers/render.mdfrom the template indocs/adapters.md.
Acceptance criteria
- Render's answer on an OAuth client and read-only access recorded on this issue, and Eddie's choice if an options table was needed.
- A Render connection is made through the connection path Eddie chose, with what the grant allows shown on the connect screen.
- Deploys and service failures appear on the timeline, and successful deploys count in the dashboard headline.
- Bandwidth usage per service appears on the dashboard with its unit, period, and retrieved-at time. No spend figure is shown.
- Tokens refresh before expiry, disconnect revokes the token, and a revoked grant marks the connection as needing a reconnect.
- Tested against recorded, sanitized fixtures. No live provider calls in CI.
- Playwright e2e:
e2e/render.spec.tsconnects the simulated provider end to end, ande2e/docs.spec.tscovers the new provider page.
Files and areas
src/lib/adapters/render/(new),src/lib/adapters/types.ts,src/lib/adapters/registry.ts, and the rest of the "Register the provider" table indocs/adapters.md.docs/providers/render.md(new),docs/operations/oauth-apps.md,docs/operations/deploy.md.- Non-goals: logs, Postgres and Key Value data, workflows, and anything that writes to the user's Render workspace other than the webhook the user opts into in step 4.
Verification
npm run lint,npm run typecheck,npm test,npm run test:dbnpx playwright test e2e/render.spec.ts e2e/docs.spec.ts
Depends on
- Render issuing a DevMacro OAuth client (plan step 1)
- #28 Ingest provider webhooks, and #426 the webhook setup panel (webhook half only)
- #49 only if the API key path is chosen
Branch: <issue-number>-render-adapter
Closes with a Closes #<issue-number> footer on the commit or pull request.
Model: anthropic/claude-opus-5-5 | Reasoning effort: unknown
- Ngôn ngữ chính
- TypeScript
- Star
- 1
- Fork
- 1
- Merge trung bình
- 6 giờ 56 phút
- Pull request đã merge (30 ngày)
- 136
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của eddiejaoude/StackDash
-
area: docs documentation priority: P3 size: S
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
eddiejaoude/StackDash#462 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: web bug priority: P3 size: XS
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
eddiejaoude/StackDash#432 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: database bug priority: P3 size: S
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
eddiejaoude/StackDash#419 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: docs bug priority: P2 size: XS
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
eddiejaoude/StackDash#418 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
accessibility area: timeline bug priority: P3 size: XS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
eddiejaoude/StackDash#389 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của eddiejaoude/StackDash
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
open-webui/tether#52 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`void platform install --app-access public` fails when Cloudflare reports Access is disabledĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
voidzero-dev/void#835 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
AykutSarac/jsoncrack.com#616 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
melgarafael/DeskcommCRM#4679 ·
Maintainer thường phản hồi trong vòng 1 ngày