Access Tokens
GitLab Environment — Access Tokens
Access tokens let Git, CI runners, and tools authenticate to git.nexus-cloud.uk without using your account password.
Personal Access Token (HTTPS)
- Sign in to git.nexus-cloud.uk
- Click your avatar → Preferences → Access Tokens
- Create a token with a name and expiry date
- Enable scopes:
- read_repository — clone and pull
- write_repository — push code
- api — if tools need the GitLab API
- Copy the token immediately — it is shown only once
Use the token as the password when Git prompts over HTTPS:
git clone https://git.nexus-cloud.uk/your-group/your-project.git
# Username: your_gitlab_username
# Password: glpat-xxxxxxxxxxxx
Store tokens in a password manager. Do not commit tokens to repositories.
SSH keys (recommended for daily dev)
- Generate a key (if you do not have one):
ssh-keygen -t ed25519 -C "you@example.com"
- Copy the public key (
~/.ssh/id_ed25519.pub) - GitLab → Preferences → SSH Keys → paste and save
- Clone with SSH URLs (
git@git.nexus-cloud.uk:group/project.git)
CI/CD variables
For pipelines that deploy to game servers, store secrets in Settings → CI/CD → Variables:
- Mark sensitive values as Masked and Protected
- Use File type for SSH private keys where needed
Never hard-code passwords or API keys in .gitlab-ci.yml.
Revoking access
Delete unused tokens and remove SSH keys from GitLab when a developer leaves the team.
Kas see vastus oli kasulik?
0 Kasutajad peavad seda kasulikuks (0 Hääled)

