Explanation
Multi-tenancy & isolation
How codingassist keeps each organization's repositories, reviews and secrets separate from every other organization's.
codingassist is one service shared by many organizations. Each organization is a tenant: its repositories, connections, reviews and findings belong to it alone.
How a request is scoped
- You sign in once, and your session lists the organizations you belong to. A user can belong to several organizations and works in one at a time.
- Every request to the API is scoped to the organization selected in the session. A request that names an organization the session does not grant is rejected.
- Code that reads data filters it by organization. There is no query that returns data from two organizations.
Isolation by component
| Component | How organizations are separated |
|---|---|
| Database | Every repository, connection, review and finding carries its organization's id, and reads filter on it |
| Similar-code index | One vector collection per organization |
| Analysis sandbox | Each analysis runs in an isolated container |
| Secrets | Encrypted with AES-256-GCM. The encryption key is shared by all organizations; see Data governance |
Roles inside an organization
Within one organization, what a person can do depends on their role. See Roles & permissions.
Related
Was this page helpful?