Skip to main content

Service Accounts

RapidFort service accounts are required for CI/CD pipelines.

The RapidFort CLI tools require authentication with the RapidFort platform. Creating and setting up a service account ensures that the RapidFort CLI tools operate in a completely non-interactive mode.

Create a RapidFort Service Account

  1. Log into the RapidFort UI
  2. Navigate to Settings --> Service Accounts
  3. Select Create a new service account
    1. Name/Tag: Enter a tag for the service account (e.g. "GitLab Runner").
    2. Expiration time: Select an expiration time (e.g. 90 days).
    3. Password: Enter your password.
  4. Click Create
  5. Copy the credentials for the newly created service account to your clipboard or download the credentials to your system.

Service Account Example

[rapidfort-user]
access_id = RFabcdefghijkl123456
secret_key = 01234567891011abcdefghijklmnopqrstuvwxyz
rf_root_url = https://rapidfort.example.com

Use a RapidFort Service Account

To use the service account, set the following environment variables with the service account credentials.

RF_ACCESS_ID=<access_id>
RF_SECRET_ACCESS_KEY=<secret_key>
RF_ROOT_URL=<rf_root_url>

Delete a RapidFort Service Account

You may delete service accounts via the RapidFort UI. Once a service account has been deleted via the UI or expires, the credentials will no longer be valid.