Prefix SCIM tokens

Release notes

GitLab SCIM tokens will be prefixed with glsoat- to enable secret detection if this credential is leaked.

Context

GitLab has been adding prefixes to many of its authentication tokens, see Prefix all authentication tokens for easier det... (&8923) and https://gitlab.com/gitlab-com/gl-security/appsec/appsec-team/-/issues/482+

We should prefix SCIM tokens.

So updating the model to have a prefix would cover all three of those endpoints.

Problem to solve

  • SCIM tokens live indefinitely
  • SCIM tokens are used to authorize requests against the GitLab API
  • If leaked, SCIM tokens allow read and update of users which can, for example, lead to account takeover. (Update the user's email from original to [email protected], do a password reset, and you're in).
  • SCIM tokens are 20 random characters, so are difficult to detect

Proposal

Downstream systems

Intended users

Feature Usage Metrics

Does this feature require an audit event?

This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.

Edited by Nick Malcolm