provide custom webhook secret to all resources which take webhooks

This commit is contained in:
mbecker20
2024-08-11 22:05:26 -07:00
parent 197e938346
commit 8d75fa3f2f
25 changed files with 302 additions and 93 deletions
+6
View File
@@ -348,6 +348,12 @@ impl Resolve<CreateStackWebhook, User> for State {
..
} = core_config();
let webhook_secret = if stack.config.webhook_secret.is_empty() {
webhook_secret
} else {
&stack.config.webhook_secret
};
let host = webhook_base_url.as_ref().unwrap_or(host);
let url = match action {
StackWebhookAction::Refresh => {