Service Accounts
Service accounts let the platform perform actions on behalf of a user in an automated, auditable way. Internally, a service account is represented as a pair of IAM organizations (technical and user) that are added as members to one or more role organizations. The platform then obtains a short‑lived JWT for the service account to call APIs with the exact permissions granted by the attached roles.
How it works
- A service account is an organization, member of the role organizations you select.
- When you request a JWT for a service account, the system:
- Generates a per‑use API key for the service account technical organization.
- Requests a JWT with scopes derived from the attached roles.
- Returns a short‑lived JWT you can use in automations and integrations.
- No interactive login is needed and the permissions are fully controlled by roles.
Prerequisites
- Create one or more roles with the permissions you want the service account to have.
- Make sure the roles have access to the right resources (cloudspaces, vms, etc.).
Create a Service Account
- Go to
Admin > Customer > Service Accounts. - Click
Add Service Account. - Enter a name.
- Select one or more roles. The service account organizations will be added as members of these role organizations.
- Save.
The service account will appear in the list with its ID and creation timestamp.
Obtain a JWT
- In
Service Accounts, click the copy icon in theActionscolumn. - The platform will generate and copy a short‑lived JWT to your clipboard.
- Use this JWT in API calls that require the service account’s permissions.
VDI: Recommended Role Setup
When creating VDI profiles, use two roles per customer for clarity and security:
-
Read‑only role (for end users)
-
Permissions: read‑only only; no access beyond viewing the VDI landing page and their own sessions.
-
Purpose: regular users use this role to access the VDI landing page.
-
Service account role (for automation)
- Permissions: full permissions and access within the target cloudspace where VDI will be created.
- Purpose: used by the service account that provisions and manages the VDI profile and sessions.
Steps:
- Create the two roles above with proper permissions and organizational access.
- Create a service account and attach the “service account role”.
- In the VDI creation screen, select that service account when prompted.
Security Notes
- Treat service accounts like regular privileged identities.
- Limit attached roles to the principle of least privilege.
- Remove a service account’s roles or delete the service account when it is no longer needed.
Containerspaces
Containerspaces run their components under a service account. When you create a management cluster you select the service account in the creation wizard, and you can change it later on the cluster's details page — the platform then automatically rotates the new credential to all cluster VMs, Kubernetes clusters, and Rancher agents. The service account needs full access on the location of the cluster's cloudspace.