Use a var block
Add support for configuring hook secret

Part of #8