Files
pruefwerk/compliance-agent/src/webhooks/mod.rs
T
sharang 7f2b128efd
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 6s
CI / Deploy Docs (push) Skipped
CI / Deploy Dashboard (push) Successful in 5m29s
CI / Deploy MCP (push) Successful in 3m28s
CI / Deploy Agent (push) Successful in 9m6s
feat(webhooks): the target page shows its last webhook deliveries, refused ones too (#544)
2026-10-09 13:51:47 +00:00

22 lines
629 B
Rust

pub mod deliveries;
pub mod gitea;
pub mod gitea_source;
pub mod github;
pub mod gitlab;
pub mod server;
pub use server::start_webhook_server;
use compliance_core::models::OnboardedTarget;
use crate::agent::ComplianceAgent;
/// The target's webhook secret, opened for verification. `None` when the
/// target has none or it cannot be opened; the receivers then reject the
/// delivery, because without a secret nothing proves who sent it.
fn webhook_secret(agent: &ComplianceAgent, target: &OnboardedTarget) -> Option<String> {
agent
.secrets
.open_opt(target.webhook_secret.as_ref(), "webhook secret")
}