Function resolveSecretForProvider