secrets #
Available since 1.8.0
Secrets contained in the Vault and loaded at Kuzzle startup.
They have the same format as in the JSON file:
/* config/secrets.enc.json */
{
"aws": {
"keyId": "a47de7426fbcb8904290e376f147bc73.8e4b35be62ecbc53"
}
}
init (config, context) {
console.log(context.secrets);
// {
// aws: {
// keyId: 'decrypted aws key id'
// }
// }
}
Edit this page on Github(opens new window)