Skip to main content

findUnencryptedSecrets

@webda/core


Function: findUnencryptedSecrets()

findUnencryptedSecrets(value, schema, root?, path?): SecretFinding[]

Defined in: packages/core/src/services/secretscheck.ts:264

Find the secrets of a value that are not encrypted

A schema node marked SECRET_KEYWORD must hold a crypt: or scrypt: string, or nothing. The findings never contain the values.

Parameters​

value​

any

the value, a service configuration for example

schema​

JSONSchema7

its schema

root?​

JSONSchema7 = schema

the document holding the definitions, for $ref

path?​

(string | number)[] = []

path of the value, prefixed to the findings

Returns​

SecretFinding[]

the findings