Skip to main content

Setup GitLab for Console

Users are dynamically created upon logging in to GitLab, so you'll need to log in as the console-bot user in order to create the user within GitLab.

After logging in as console-bot, log out of GitLab and log in as the default admin user for GitLab.

Assign admin privileges to the console-bot user:

  1. Go to the admin panel by clicking Admin near the bottom-left of the screen or by going to https://{{GitLab_Hostname}}/admin.
  2. Go to Users.
  3. Click Edit for the console-bot user.
  4. Change Access level to Administrator
  5. Click Save changes.

Create Personal Access Token:

  1. Log in to GitLab as console-bot.
  2. Click the user icon in the top-left corner, and select Preferences.
  3. Click Access Tokens on the left-hand panel.
  4. Click Add new token:
    1. Name: console-bot-admin-integration.
    2. Set an appropriate expiration date for the environment. This token will need to be manually rotated.
    3. Scopes: api and admin_mode.
    4. Click Create token.
  5. Save the value for the token.
caution

Removing or altering permissions in GitLab for console-bot after access tokens have been set could lead to unexpected issues.

To configure Console to use the access token, the following configuration should be placed into the bigbang-secrets.yaml:

packages:
console:
values:
backend:
gitlab:
enabled: "true"
accessToken: "<Personal Access Token Value>"
host: "gitlab.<DOMAIN>" # this value can be omitted but is required when setting a custom subdomain for GitLab.