AUTHENTICATION

Authentication Tokens

Phase provides secure authentication tokens for both human users and service accounts. These tokens enable programmatic access to Phase through our API, CLI, and SDKs while maintaining strict access controls and security standards.

Service Account Tokens

Service Account Tokens are used to authenticate your Service Account when making API requests. These tokens inherit the permissions and access levels of the service account they belong to.

Creating a Service Account Token

Follow these steps to create a new Service Account Token:

  1. Navigate to Service Account Management by heading to Access Control and clicking on the Service Accounts tab From the Service Account tab in Access Control, find the Service Account you want to create a token for and click the Manage button.

    Click manage service account button

  2. Create New Token Click the + Create Token button to begin the token creation process.

    Click create a new service account token button

  3. Configure Token Settings

    • Provide a suitable Token name
    • Set an Expiry date
    • Click Create to generate the token
      Enter service account token name and choose expiry

CLI and SDK token

Shown as Service token in the Console and starts with pss_service:v2:. This token contains cryptographic key material and is intended for use with clients such as the CLI, SDKs, or the Kubernetes operator.

  1. Copy the Token Copy the token based on your client needs. Important: For security reasons, you won't be able to view the token after exiting the page or closing the popup.
    Copy created service account token

REST API Token

Shown as API token in the Console. The REST API token is an alternative authentication method that can be used to fetch application secrets when Server-side Encryption is enabled on a particular app. It already includes the token type (for example ServiceAccount 3f0c…), so send it as Authorization: Bearer <REST API token>.

Save this token securely - it's required for API authentication.

Copy REST API Token

Personal Access Tokens (PATs)

Personal Access Tokens allow you to interact with Phase programmatically while inheriting your user permissions. These tokens are ideal for development workflows, testing, and accessing personal secret overrides.

Creating a Personal Access Token

Follow these steps to create a new Personal Access Token:

  1. Navigate to Personal Access Tokens management by heading to Access Control and clicking on the Authentication tab

    Authentication tab
  2. Create New Token Click the "Create New Token" button to start the token creation process.

    Create New Token

  3. Configure Token Settings

    • Enter a descriptive name for your token
    • Select an expiry date
    • Click "Create" to generate the token
      Configure Token Settings

CLI and SDK token

Shown as user token in the Console and starts with pss_user:v1:. This token contains cryptographic key material and is intended for use with clients such as the CLI, SDKs, or the Kubernetes operator.

Important: Copy this token immediately after creation - you won't be able to access it again.

Copy PSS Token

REST API Token

Shown as API token in the Console. The REST API token is an alternative authentication method that can be used to fetch application secrets when Server-side Encryption is enabled on a particular app. It already includes the token type (for example User 3f0c…), so send it as Authorization: Bearer <REST API token>.

Save this token securely - it's required for API authentication.

Copy REST API Token