Architecture
Prism provides a computation management service for CoCos AI.
Components
Service | Description |
---|---|
Auth | Manages user policies in relation to backends, certs and computations. |
Users | Manages platform's users and auth concerns in regards to users and workspaces. |
Computations | Manages computation lifecycle, from creation to running and monitoring. |
Backends | Manages Confidential Virtual Machine creation, and connection to agent. |
Certs | Manages certification lifecyle (issuing, revocation, renewal) used for mTLS between backends and manager. |
Billing | Manages payments on the platform and controls resource access based on billing plans for each workspace. |
Workspaces | Manages the user domain , which includes all entities associated with a workspace, such as computations, Confidential Virtual Machines (CVMs), user-specific configurations, and access controls. |
User Interface | Provides an web interface to provide platform access over a visual interface. |
Users and Workspaces
The users service provides users access to the platform, and user identities are used to provide authorization for the platform. Prism uses magistrala users service to achieve this. The workspaces service manages user domains, which encapsulate all other entities, including computations, backends, and billing. Workspaces provide a structured environment for organizing and controlling resources on the platform.
Computations
The computations service give users with the appropriate authorization, the ability to create, update, delete and run computations.
Backends
The backends service connects to the computations service and receives run requests from computations service which it forwards to the Confidential Virtual Machines. Backends are identified by their flavors, i.e., GCP, Azure, Manager, or User created, and any VMs created on the backends are identified by their ip addresses and have certificates assigned to them for mutual TLS connections with prism.
Certs
This a certificate authority service that offers the ability to issue, revoke, renew certificates. It also offers an online certificate status protocal OCSP
endpoint which is used to verify certificates used in backends service.
User Interface
This provides users with a web interface to visually access the platform. It connects to the other services using the sdk.