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:
- Go to the admin panel by clicking
Adminnear the bottom-left of the screen or by going tohttps://{{GitLab_Hostname}}/admin. - Go to
Users. - Click
Editfor theconsole-botuser. - Change
Access leveltoAdministrator - Click
Save changes.
Create Personal Access Token:
- Log in to GitLab as
console-bot. - Click the user icon in the top-left corner, and select
Preferences. - Click
Access Tokenson the left-hand panel. - Click
Add new token:- Name:
console-bot-admin-integration. - Set an appropriate expiration date for the environment. This token will need to be manually rotated.
- Scopes:
apiandadmin_mode. - Click
Create token.
- Name:
- 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.