# configuration/constants/credential.constants.ts

> 32 lines of code and 4 definitions.

Tree: Project Scripts
Language: typescript
Layer: infrastructure
Canonical: https://banes-lab.com/anatomy/scripts#file-scripts-configuration-constants-credential-constants-ts
Source text: https://banes-lab.com/source/scripts/configuration/constants/credential.constants.ts.txt

Listed in [configuration/constants](https://banes-lab.com/api/source/scripts/configuration/constants.md), after [configuration/constants/coverage.constants.ts](https://banes-lab.com/source/scripts/configuration/constants/coverage.constants.ts.md) and before [configuration/constants/nginx.constants.ts](https://banes-lab.com/source/scripts/configuration/constants/nginx.constants.ts.md).

## Definitions

- `CREDENTIAL_EXTENSIONS` (lexical_declaration, line 3, exported)
- `TOKEN_BREAKS` (lexical_declaration, line 13, exported)
- `LINE_BREAK` (lexical_declaration, line 32, exported)
- `CREDENTIAL_EXCLUSIONS` (lexical_declaration, line 34, exported)

## Contained in

- [configuration/constants](https://banes-lab.com/anatomy/scripts/folder-scripts-configuration-constants.md)

## Source

```typescript
import type { ExclusionReason } from "@ssot/secrets";

export const CREDENTIAL_EXTENSIONS: ReadonlySet<string> = new Set([
    ".conf",
    ".html",
    ".json",
    ".md",
    ".txt",
    ".yaml",
    ".yml",
]);

export const TOKEN_BREAKS: ReadonlySet<string> = new Set([
    " ",
    "\t",
    "\r",
    '"',
    "'",
    "`",
    "(",
    ")",
    "[",
    "]",
    "{",
    "}",
    "<",
    ">",
    ",",
    ";",
]);

export const LINE_BREAK = "\n";

export const CREDENTIAL_EXCLUSIONS: readonly { readonly key: string; readonly reason: ExclusionReason }[] = [
    { key: "govlab.quality.catalog.data", reason: "third-party-rule-text" },
];
```
