Credentials inventory (ULTIMATE SELF)

GitLab administrators are responsible for the overall security of their instance. To assist, GitLab provides a Credentials inventory to keep track of all the credentials that can be used to access their self-managed instance.

Use Credentials inventory to see for your GitLab instance all:

  • Personal access tokens (PAT).
  • Project access tokens (GitLab 14.8 and later).
  • SSH keys.
  • GPG keys.

You can also revoke and delete and see:

  • Who they belong to.
  • Their access scope.
  • Their usage pattern.
  • When they expire. Introduced in GitLab 13.2.
  • When they were revoked. Introduced in GitLab 13.2.

To access the Credentials inventory:

  1. On the left sidebar, expand the top-most chevron ({chevron-down}).
  2. Select Admin Area.
  3. Select Credentials.

Revoke a user's personal access token

Introduced in GitLab 13.4.

If you see a Revoke button, you can revoke that user's PAT. Whether you see a Revoke button depends on the token state, and if an expiration date has been set. For more information, see the following table:

Token state Show Revoke button? 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.

Credentials inventory page - Personal access tokens

Revoke a user's project access token

Introduced in GitLab 14.8.

The Revoke button next to a project access token can be selected to revoke that particular project access token. This both:

  • Revokes the token project access token.
  • Enqueues a background worker to delete the project bot user.

Credentials inventory page - Project access tokens

Delete a user's SSH key

Introduced in GitLab 13.5.

You can Delete a user's SSH key by navigating to the credentials inventory's SSH Keys tab. The instance then notifies the user.

Credentials inventory page - SSH keys

Review existing GPG keys

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

Credentials inventory page - GPG keys