Skip to content

feat(plugin): persist tenant-scoped installation authority - #169

Merged
seonghobae merged 12 commits into
mainfrom
feat/plugin-installation-persistence-mainline
Aug 10, 2026
Merged

feat(plugin): persist tenant-scoped installation authority#169
seonghobae merged 12 commits into
mainfrom
feat/plugin-installation-persistence-mainline

Conversation

@seonghobae

Copy link
Copy Markdown
Contributor

Buyer/security outcome

Rebuild the durable plugin-installation persistence slice from current protected main (0d8c86e6a19a16448ded0cc88a54d4b1e1a7ba2e) so #130 can advance without carrying stale/conflicted ancestry.

Preservation proof

main -> this head contains exactly the same 11 semantic paths owned by the superseded #156 lane: CI/turbo integration-database propagation, current-main CHANGELOG plus two plugin entries, the plugin_integration.plugin_installation_record migration, migration/repository/tenant/user regressions, PostgresPluginInstallationStore, installer-scoped application authority, and the standards note. No current protected Gateway/Calendar/Integration event-authority files are overwritten.

Durable authority contract

  • opaque UUIDv4 installation/workspace/installer identity;
  • exact manifest SHA-256 plus normalized explicit grant subset;
  • no plaintext secret/token/credential/password column;
  • fixed parameterized SQL;
  • create replay winner bounded by exact installation+workspace+installer authority;
  • lookup and revocation scoped simultaneously by installation, workspace and installing user;
  • atomic active -> revoked transition with fail-closed replay/corruption handling;
  • real PostgreSQL constraints and persistence evidence through INTEGRATION_DATABASE_URL.

Scope

This is still only the restart-safe installation-authority persistence foundation. Plugin KMS/secret lifecycle, outbound HTTPS/SSRF-safe delivery, retry/dead-letter evidence, operator/public APIs and runtime composition remain later #130 slices.

Merge gate

Merge only after the unchanged exact head passes package tests/typecheck/build, exact configured coverage/docstrings, CI, AppGuardrail, SAST Semgrep, Security Scan, Commercial Readiness, all current review findings and current-live-base compatibility without administrative bypass.

Supersedes #156; refs #130 and protected #151.

@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@seonghobae, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 12 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 95d7f772-2c31-4ef5-99e8-571df9ea62a5

📥 Commits

Reviewing files that changed from the base of the PR and between 0d8c86e and 61e9859.

📒 Files selected for processing (11)
  • .github/workflows/ci.yml
  • CHANGELOG.md
  • apps/integration-service/migrations/0001_plugin_installation_record.sql
  • apps/integration-service/src/plugin-installation-migration.test.ts
  • apps/integration-service/src/plugin-installation-repository.test.ts
  • apps/integration-service/src/plugin-installation-repository.ts
  • apps/integration-service/src/plugin-installation-tenant-lookup.test.ts
  • apps/integration-service/src/plugin-installation-user-authority.test.ts
  • apps/integration-service/src/plugin-installation.ts
  • docs/research/2026-08-10-plugin-installation-authority-standards.md
  • turbo.json

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant