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
- Log into the RapidFort UI
- Navigate to Settings --> Service Accounts
- Select
Create a new service account
- Name/Tag: Enter a tag for the service account (e.g. "GitLab Runner").
- Expiration time: Select an expiration time (e.g. 90 days).
- Password: Enter your password.
- Click
Create
- 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.