Please check gitlab-tutorial

Skip to content

Credentials inventory for GitLab self-managed

DETAILS: Tier: Ultimate Offering: Self-managed

As a GitLab administrator, you are responsible for the overall security of your instance. To assist, GitLab provides an inventory of all the credentials that can be used to access your self-managed instance.

This page describes how to manage the credentials inventory for GitLab self-managed. To manage credentials on GitLab.com, see Credentials inventory for GitLab.com.

In the credentials inventory, you can view all:

  • Personal access tokens (PATs).
  • Project access tokens
  • Group access tokens (introduced in GitLab 15.6).
  • SSH keys.
  • GPG keys.

You can also revoke, delete, and view:

  • Who they belong to.
  • Their access scope.
  • Their usage pattern.
  • When they:
    • Expire.
    • Were revoked.

Revoke a user's personal access token

You can revoke a user's personal access token.

  1. On the left sidebar, at the bottom, select Admin.
  2. Select Credentials.
  3. By the personal access token, select Revoke.

If a Revoke button is not available, the token may be expired or revoked, or an expiration date set.

Token state Revoke button displayed? Comments
Active Yes Allows administrators to revoke the PAT, such as for a compromised account
Expired No Not applicable; token is already expired
Revoked No Not applicable; token is already revoked

When a PAT is revoked from the credentials inventory, the instance notifies the user by email.

The credentials inventory page listing personal access tokens.

Revoke a user's project access token

  1. On the left sidebar, at the bottom, select Admin.
  2. Select Credentials.
  3. Select the Project access tokens tab.
  4. By the project access token, select Revoke.

The project access token is revoked and a background worker is queued to delete the project bot user.

The credentials inventory page listing project access tokens.

Delete a user's SSH key

  1. On the left sidebar, at the bottom, select Admin.
  2. Select Credentials.
  3. Select the SSH Keys tab.
  4. By the SSH key, select Delete.

The instance notifies the user.

The credentials inventory page listing SSH keys.

Review existing GPG keys

You can view all existing GPG in your GitLab instance by going to the credentials inventory GPG Keys tab, as well as the following properties:

The credentials inventory page listing GPG keys.