Skip to content

fix(github): gate multiple organization installations - #5640

Merged
RSO merged 3 commits into
mainfrom
feature-flag-multi-org
Aug 28, 2026
Merged

fix(github): gate multiple organization installations#5640
RSO merged 3 commits into
mainfrom
feature-flag-multi-org

Conversation

@RSO

@RSO RSO commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • allow multiple GitHub App installations only for organizations configured per environment
  • read GITHUB_MULTIPLE_INSTALLATION_ORGANIZATION_IDS as a validated comma-separated UUID allowlist
  • hide and reject additional installation attempts for other organizations
  • enforce the gate in the UI capability response, install-state minting, and owner-aware database upsert
  • return a dedicated callback error with non-retryable user guidance

Environment configuration

Configure each deployment environment with GITHUB_MULTIPLE_INSTALLATION_ORGANIZATION_IDS. Unset or empty disables multiple installations for all organizations.

@RSO
RSO marked this pull request as ready for review August 28, 2026 10:09
@kilo-code-bot

kilo-code-bot Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (11 files)
  • ENVIRONMENT.md
  • apps/web/src/app/api/integrations/github/callback/route.test.ts
  • apps/web/src/app/api/integrations/github/callback/route.ts
  • apps/web/src/components/integrations/GitHubIntegrationDetails.test.ts
  • apps/web/src/components/integrations/GitHubIntegrationDetails.tsx
  • apps/web/src/lib/integrations/db/platform-integrations.test.ts
  • apps/web/src/lib/integrations/db/platform-integrations.ts
  • apps/web/src/lib/integrations/github/multiple-installations.test.ts
  • apps/web/src/lib/integrations/github/multiple-installations.ts
  • apps/web/src/routers/github-apps-router.test.ts
  • apps/web/src/routers/github-apps-router.ts

Reviewed by grok-4.6 · Input: 141.2K · Output: 25.9K · Cached: 1.8M

Review guidance: REVIEW.md from base branch main

@RSO
RSO enabled auto-merge (squash) August 28, 2026 10:22
@RSO
RSO merged commit 8212469 into main Aug 28, 2026
24 checks passed
@RSO
RSO deleted the feature-flag-multi-org branch August 28, 2026 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants