Service accounts are recommended for CI/CD pipelines. The RapidFort CLI tools require authenticating with RapidFort.
- Step 1: Log into the RapidFort Dashboard
- Open a web browser, navigate to the RapidFort dashboard, and log in.
- Create a Service Account
- Go to the Settings page. Select Service Accounts and 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.
- Create the service account.Step 2: Create a Service Account
- Go to the Settings page. Select Service Accounts and Create a new service account.
- Add the Service Account Credentials
Copy the service account credentials to your clipboard or download the credentials to your system.
credentials
[rapidfort-user]
access_id = RFabcdefghijkl123456
secret_key = 01234567891011abcdefghijklmnopqrstuvwxyz
rf_root_url = https://rapidfort.example.com
To use the service account, you can either set environment variables or update the RapidFort credentials file on the client system.
You can set the following environment variables:
-
-
RF_ACCESS_ID
-
RF_SECRET_ACCESS_KEY
-
You can also update the RapidFort credentials file on the client system with the service account credentials. By default, the RapidFort credentials file is in ~/.rapidfort/credentials.
You may delete service accounts. Once a service account has been deleted, the access id and secret access key will no longer be valid.