Path: blob/main/docs/source/polars-cloud/explain/service-accounts.md
6939 views
Using service accounts
Service accounts function as programmatic identities that enable secure machine-to-machine communication for remote data processing workflows. These accounts facilitate automated processes (typically in production environments) without requiring interactive login sessions.
Create a service account
In the workspace settings page, navigate to the Service Accounts section. Here, you can create and manage service accounts associated with your workspace.
To create a new Service Account:
Click the Create New Service Account button
Provide a name and description for the account
Copy and securely store the Client ID and Client Secret
!!! info "Client ID and Secret visible once"
Set up your environment to use a Service Account
To authenticate using a Service Account, you must set environment variables. The following variables should be defined using the credentials provided when the service account was created:
Execute query with Service Account
Once the environment variables are set, you do not need to log in to Polars Cloud manually. Your process will automatically connect to the workspace.
Revoking access or deleting a Service Account
When a service account is no longer needed, it is recommended to revoke its access. Keep in mind that deleting a service account is irreversible, and any processes or applications relying on this account will lose access immediately.
Navigate to the Workspace Settings page.
Go to the Service Accounts section.
Locate the service account to delete.
Click the three-dot menu next to the service account and select Delete.
Confirm the deletion of the Service Account.