findConfigurationSecrets
Function: findConfigurationSecrets()
findConfigurationSecrets(
configuration,options):object
Defined in: packages/core/src/services/secretscheck.ts:358
Find the unencrypted secrets of a configuration
Each service is checked against the schema of its type, with the global parameters it inherits:
a secret written in parameters is reported once, under parameters. The deployment units are
checked with the resources they inherit, reported under resources.
Parameters
configuration
the configuration to check
options
how to find the schemas
completeNamespace?
(type) => string
add the namespace to a service type
getSchema
(type) => JSONSchema7
the schema of a service type
getType?
(service) => string
the type of a service without one, from the application configuration
inheritingServices?
Record<string, any>
other services inheriting parameters, defined in another file
Returns
object
the findings, and the service types without schema
findings
findings:
SecretFinding[]
unknownTypes
unknownTypes:
string[]