Skip to content

v1.3.0 — Multi-account + project-scoped installations

Choose a tag to compare

@lopadova lopadova released this 22 Jun 14:52
7cfe2cd

Multi-account + project-scoped connector installations.

Added

  • Multi-account installations — connector_installations.label (default 'default') relaxes the composite unique to (tenant_id, connector_name, label). A tenant can connect more than one account per connector (e.g. two IMAP mailboxes, several Drive/OneDrive accounts, multiple Notion workspaces), each disambiguated by label. Tenant-first (R30/R31).
  • Optional project binding — connector_installations.project_key (nullable, indexed (tenant_id, project_key)) binds an account to a real KB project; empty inherits the tenant default.
  • BaseConnector::resolveProjectKey(ConnectorInstallation): string — single source of truth for the ingest project: explicit project_key → config('kb.ingest.default_project') → 'default'. Replaces the per-connector connector-<key> fallback.

Migration notes

  • label backfills to 'default' on existing rows (prior single-account installs preserved). The migration up() is idempotent and fully convergent across migrate→rollback→migrate cycles, with non-destructive label disambiguation (collision-proof across the whole tenant/connector scope, 64-char-safe).
  • Fully backward compatible for hosts that create one installation per connector.