Quick answer

The scanner looks for common patterns: password=, api_key=, Bearer tokens, AWS keys, private key headers.

Potential Secret Found

The scanner looks for common patterns: password=, api_key=, Bearer tokens, AWS keys, private key headers. If found, treat as a reminder to avoid committing real secrets.

Common causes

How to fix

Secrets Scanner detected content that looks like a credential, token, or private key. This page helps you understand what triggered the match, why it matters, and how to respond safely before the content is committed, shared, or deployed. Common examples include strings such as password=, api_key=, Bearer tokens, AWS access keys, and private key headers. Security teams, developers, DevOps engineers, and code reviewers use secret scanning to reduce the chance of exposing sensitive access data in source code, logs, configuration files, and pasted text. If the match is real, the safest next step is to remove it from the content and rotate or revoke the secret at the source.

How This Validator Works

This validator scans text for patterns that commonly resemble secrets or credentials. It may look for known prefixes, token formats, key headers, and high-entropy strings that often appear in API keys, bearer tokens, private keys, and environment variables. The result is a potential match, not always a confirmed secret. That distinction matters because some strings can look sensitive even when they are placeholders, examples, or test values.

Common Validation Errors

Secret scanners often produce useful warnings, but they can also flag non-sensitive content. Understanding the most common causes helps you decide whether the match is real, a placeholder, or a false positive.

Where This Validator Is Commonly Used

Secret scanning is commonly used anywhere sensitive values might be stored, copied, or transmitted. It is especially useful in workflows where content can be committed to a repository, shared in tickets, or published in logs and documentation.

Why Validation Matters

Secrets validation helps reduce accidental exposure of credentials that could be used to access systems, services, or data. Even a short-lived leak can create operational risk if a token is copied into a public repo, shared in a ticket, or indexed by search engines. Validating content before it is published supports safer development practices, cleaner reviews, and faster incident response when sensitive values are discovered.

Technical Details

This page is designed for secret-pattern detection rather than full credential verification. It can identify content that resembles common secret formats, but it cannot confirm whether a value is active, revoked, expired, or safe to use. In practice, teams often combine pattern scanning with repository rules, secret managers, and access-control policies.

Validation type Pattern-based secret detection
Typical inputs Plain text, code snippets, config values, logs, and pasted content
Common matches Passwords, API keys, bearer tokens, private keys, access tokens
Output meaning Potential secret found; review manually before taking action
Limitations May flag placeholders or sample data; does not verify secret validity

FAQ

Is a “potential secret found” result always a real secret?

No. It means the content matched a pattern that often belongs to a secret, credential, or token. Some matches are real, while others are placeholders, examples, or test values. Review the surrounding context carefully before deciding whether the value should be removed, replaced, or rotated.

What should I do if the scanner found a real secret?

Remove the secret from the content, replace it with a placeholder, and rotate or revoke the credential at the source if it may have been exposed. If the content is already committed or shared, treat it as a security event and follow your team’s incident response process.

Can this scanner tell me whether a token is active?

No. Pattern-based secret scanners usually identify strings that look sensitive, but they do not confirm whether a token is valid, expired, or currently authorized. To determine that, you would need service-specific checks or administrative controls outside the scanner.

Why do documentation examples sometimes trigger secret scanners?

Documentation often includes realistic-looking examples such as API keys, bearer tokens, and environment variable names. Those examples can resemble real secrets even when they are intentionally fake. Using clearly marked placeholders helps reduce false positives while keeping examples understandable.

What kinds of strings are commonly flagged?

Common matches include password assignments, API key fields, authorization headers, private key blocks, cloud access keys, and long random strings with high entropy. Many scanners also flag values in .env files, JSON configs, and pasted code that resembles production credentials.

Should I store secrets in source code?

In general, no. Secrets are usually better stored in a dedicated secret manager, environment injection system, or platform-specific vault. Keeping credentials out of source code reduces the chance of accidental exposure through commits, forks, logs, or documentation.

Why might a scanner flag a fake example value?

Some detection rules are intentionally broad so they can catch real secrets before they are exposed. That means a placeholder like api_key=example or a sample token format may still trigger a warning. This is normal and helps teams review sensitive-looking content more carefully.

Does removing the secret from the file fix the problem?

It helps, but it may not be enough if the secret was already copied, committed, cached, or shared elsewhere. If the value was real, rotate or revoke it and check any places where it may have been replicated, including logs, forks, backups, and build artifacts.

Can secret scanning be used in CI/CD pipelines?

Yes. Many teams run secret scanners in pre-commit hooks, pull request checks, and CI/CD pipelines to catch sensitive values before release. This is a common defense-in-depth practice, especially for repositories that handle infrastructure code, deployment files, or operational scripts.

Related Validators & Checkers

FAQ

Does the scanner store my content?
No. Content is processed in memory and not stored.
Should I paste real secrets?
No. Use sample data to test; never paste real credentials.

Fix it now

Try in validator (prefill this example)

Related

All tools · Canonical