# configuration/strings/environment.strings.ts

> 12 lines of code and 4 definitions.

Tree: Secrets
Language: typescript
Layer: product
Canonical: https://banes-lab.com/anatomy/secrets#file-secrets-configuration-strings-environment-strings-ts
Source text: https://banes-lab.com/source/secrets/configuration/strings/environment.strings.ts.txt

Listed in [configuration/strings](https://banes-lab.com/api/source/secrets/configuration/strings.md), after [configuration/strings/detector.strings.ts](https://banes-lab.com/source/secrets/configuration/strings/detector.strings.ts.md).

## Definitions

- `answerMalformed` (lexical_declaration, line 5, exported)
- `keyMissing` (lexical_declaration, line 9, exported)
- `vaultRefused` (lexical_declaration, line 1, exported)
- `valueMalformed` (lexical_declaration, line 13, exported)

## Contained in

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

## Used by

- [core/adapters/environment.adapter.ts](https://banes-lab.com/source/secrets/core/adapters/environment.adapter.ts.md)
- [core/resolvers/environment.resolver.ts](https://banes-lab.com/source/secrets/core/resolvers/environment.resolver.ts.md)

## Linked from

- [core/adapters](https://banes-lab.com/anatomy/secrets/folder-secrets-core-adapters.md)
- [core/resolvers](https://banes-lab.com/anatomy/secrets/folder-secrets-core-resolvers.md)

## Source

```typescript
export const vaultRefused = function vaultRefused(entry: string, reason: string): string {
    return `@ssot/secrets: the vault refused a read of ${entry}: ${reason}. Unlock the vault, or add the entry and its fields.`;
};

export const answerMalformed = function answerMalformed(entry: string): string {
    return `@ssot/secrets: the vault answered a read of ${entry} with something that is not the expected answer.`;
};

export const keyMissing = function keyMissing(key: string, entry: string): string {
    return `@ssot/secrets: ${key} is required and ${entry} holds no field labeled ${key}. Add it to the vault, because no key has a default.`;
};

export const valueMalformed = function valueMalformed(key: string, kind: string): string {
    return `@ssot/secrets: the value of ${key} is not a valid ${kind}. Set it to a value of that kind in the vault.`;
};
```
