readSecretString

readSecretString $secretName $dataPath

Read a string value from a secret’s data field and print it without escaping.

Example:

readSecretString ssh .privateKey >~/.ssh/id_rsa

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