function hideValueIfSecret(setting) {
    if (setting.value && isSecretSetting(setting)) {
        return {...setting, value: obfuscatedSetting};
    }
    return setting;
}
@description The function that obfuscates a write-only setting
@param {Object} setting setting record
@param {String} setting.value
@param {String} setting.key
@returns {Object} settings record with obfuscated value if it's a secret