readSecretJSON

readSecretJSON $secretName $dataPath

Read from a secret’s data field and print the query result as JSON.

Example:

readSecretJSON ssh .extraConfigItems >~/myapp/extraConfigItems.json

Parameters

$secretName

The name of the secret to read. Must match the attribute name of a secretsMap entry.

$dataPath

A jq "filter" where . is the data field of the secret identified by $secretName.

Example: .password