# Leaked GitLab OAuth Secret? Renew It Now

> GitLab OAuth application secret exposed on GitHub? Renew it, review authorized users and tokens. Step-by-step guide.

Source: https://leakwatch.net/secrets/gitlab-oauth-application-secret

---

[LeakWatch](/)

[Product](/product)[Live feed](/leaks)[Guides](/secrets)[Blog](/blog)[Free scan](/)

1.  [Home](/)
2.  [Secrets](/secrets)
3.  GitLab OAuth Application Secret

Code & CI · Secret guide

# Leaked GitLab OAuth Application Secret: what to do in the first hour

High severityDetected onlyLast verified October 30, 2026 · 5 min read

A GitLab OAuth application secret is the confidential half of an OAuth application registered in GitLab: the application ID identifies the app, and the secret proves that a request really comes from it. With both, someone can exchange authorization codes for access tokens, impersonating your application in front of GitLab, and can run phishing flows that show your app’s name on a genuine GitLab consent screen. The secret alone does not log anyone in, because a user still has to authorize the app. The main danger is therefore abuse of your application’s identity and of the users who already authorized it. Renew the secret first, then review authorizations.

[Check your GitHub account for leaked secrets — free](/)

Provider

GitLab

Severity

High

Impact

Source code and build access

Checked live by LeakWatch

No

## What a GitLab OAuth Application Secret looks like

The secret has a fixed prefix followed by a long block of letters, digits, dashes and underscores:

```text
gloas-XXXXXXXX…   GitLab OAuth application secret (masked, 6-character prefix + 64 characters)
```

The body is 64 characters in the form this rule recognizes. Secrets created before the prefix existed are plain 64-character hexadecimal strings, so an older application may hold a secret that has no recognizable start. The application ID, a separate value, is public by design and appears in authorization URLs, so finding it in code is not a leak. Look for the secret next to variables such as `GITLAB_CLIENT_SECRET`, `GITLAB_APP_SECRET` or `OAUTH_CLIENT_SECRET`, in Rails or Devise configuration, in single sign-on settings, or in the `client_secret` parameter of a call to the token endpoint `/oauth/token`.

## How GitLab OAuth Application Secrets get leaked

-   **Committed configuration.** The secret sits in an environment file, a framework config or a Helm values file next to the application ID.
-   **Sample code.** A tutorial or internal demo shows a working login with the real secret still in it.
-   **Single sign-on settings.** An identity configuration for a tool that signs in with GitLab is exported or backed up with the secret in clear text.
-   **Mobile and frontend code.** The secret is placed in a client that ships to users, where it can be extracted. A confidential secret should only live on a server.
-   **CI/CD logs.** A deployment step prints the environment, including the client secret.

## What to do in the first hour

1.  **Renew the secret.** Open the application in GitLab and generate a new secret, which invalidates the previous value. See the revocation section below.
2.  **Deploy the new secret** to your server or secret manager, and test the sign-in flow end to end.
3.  **Review who authorized the app.** If the application is in use, consider the users who already granted it access. If you suspect abuse, revoke the application’s existing access tokens, which forces users to sign in again.
4.  **Check the application settings.** Verify the redirect URIs and the scopes. Remove any redirect address you do not recognize, because an attacker may have wanted to add one, and give the app the narrowest scopes it needs.
5.  **Look at activity.** In the audit events of the user, group or instance that owns the application, check for changes to the application and for unexpected sign-ins and API calls from users who authorized it.
6.  **Check related secrets.** The same file may hold other credentials, such as a personal access token. Rotate those too.
7.  **Clean up the code** and search the history. See [I accidentally pushed an API key to GitHub](/blog/i-accidentally-pushed-an-api-key-to-github).

Not sure what else leaked from the same repository? [Run a free scan](/).

[Not sure what else leaked? Run a free scan.](/)

## Revoke it at GitLab

OAuth applications are owned by a user, a group or the whole instance, and each owner has an applications page in its settings. Sign in to your GitLab applications page, find the application, and use the action that renews its secret. If the application is no longer needed, delete it, which also removes the access tokens it issued. Renewing replaces the secret, so any server using the old one will fail to sign users in until you update it. A person has not confirmed the exact menu wording for this guide, and GitLab changes its settings between releases, so for a group or an instance look for the section where applications are listed, and follow the [GitLab documentation on OAuth applications](https://docs.gitlab.com/integration/oauth_provider/).

## How LeakWatch detects it

The rule is called GitLab Oauth App Secret. It looks for the literal prefix `gloas-` followed by exactly 64 characters from letters, digits, dashes and underscores. A shorter body or a different prefix is refused. The pattern has no boundary at the end, so a longer run of such characters can still match on its first 64. Older secrets in hexadecimal form without the prefix are not reported. The severity is **high**. This type is not checked live: LeakWatch does not send any request to GitLab with the secret it found.

LeakWatch detects this format but does **not** check it live: it can tell you the key is exposed, not whether it still works. Assume it does until you have revoked it.

## FAQ

Is the application ID also a secret?

No. It is shown in authorization links and is meant to be public. Only the secret needs protection, and it should live on a server, never in a mobile app or a web page script.

Can someone sign in as my users with only the secret?

Not without more. They still need a user to authorize the app or an authorization code. But they can imitate your application, so renew the secret and review what users granted.

Will renewing the secret sign my users out?

No, existing access tokens keep working. Only new token requests need the new secret. If you suspect abuse, revoke the issued tokens as well, accepting that users sign in again.

## Related

-   [GitLab Personal Access Token](/secrets/gitlab-personal-access-token)
-   [Google OAuth Client Secret](/secrets/google-oauth-client-secret)
-   [Bitbucket Client Secret](/secrets/bitbucket-client-secret)
-   [I accidentally pushed an API key to GitHub](/blog/i-accidentally-pushed-an-api-key-to-github)
-   [Which vendors leak most this week](/leaks/trends)
-   [All secret guides](/secrets)

[Get alerted next time a secret leaks — create a free account](/)

LeakWatch is not affiliated with GitLab.

![Gabriel Diyan, founder of LeakWatch](/brand/Photo-Gabriel-Diyan.webp)

Gabriel Diyan (0xCr0c0)

Cybersecurity student, founder of LeakWatch. I built and run the scanner described here — the detection patterns, the false-positive classifier and the provider validators are mine. [More about who I am](/about).

[GitHub](https://github.com/Leakwatch-Scan) · [X](https://x.com/LeakwatchScan) · [LinkedIn](https://www.linkedin.com/in/gabriel-diyan-80a378375) · [GitHub (personal)](https://github.com/crocogab)

LeakWatch

Secrets leak into public commits every minute. This watches the forges for yours. Built and run by [Gabriel Diyan](/about), a cybersecurity student — [why LeakWatch exists](/about).

Scan

-   [Product](/product)
-   [Live feed](/leaks)
-   [Trends](/leaks/trends)
-   [API docs](/docs)
-   [CI/CD](/docs?tab=ci)

Read

-   [Blog](/blog)
-   [Secret guides](/secrets)
-   [Changelog](/changelog)
-   [About](/about)

Verify

-   [Security](/security)
-   [Privacy](/privacy)
-   [Terms](/terms)
-   [Legal](/legal)
-   [Contact](/contact)
-   [Status](https://status.leakwatch.net)

© 2026 LeakWatch

[GitHub](https://github.com/Leakwatch-Scan)[X](https://x.com/LeakwatchScan)
