When webhook_secret is None on a repository, the webhook handlers silently skip HMAC/token verification and proceed to trigger a full scan. Any unauthenticated POST to /webhook/{type}/{repo_id} will execute the scan pipeline. Fix: Reject with 401 when webhook_secret is None. Use constant-time comparison for GitLab token. Files: webhooks/github.rs, webhooks/gitlab.rs, webhooks/gitea.rs
When webhook_secret is None on a repository, the webhook handlers silently skip HMAC/token verification and proceed to trigger a full scan. Any unauthenticated POST to /webhook/{type}/{repo_id} will execute the scan pipeline. Fix: Reject with 401 when webhook_secret is None. Use constant-time comparison for GitLab token. Files: webhooks/github.rs, webhooks/gitlab.rs, webhooks/gitea.rs
Fixed on main. Every webhook handler fails closed: without a webhook secret the delivery is rejected with 401 before anything runs (let Some(secret) = super::webhook_secret(..) else { return StatusCode::UNAUTHORIZED } in webhooks/github.rs, gitea.rs, gitlab.rs). GitHub and Gitea verify the HMAC with Mac::verify_slice (constant time); GitLab compares the token with subtle::ConstantTimeEq. Landed with #302 (secrets sealed at rest).
Fixed on main. Every webhook handler fails closed: without a webhook secret the delivery is rejected with 401 before anything runs (`let Some(secret) = super::webhook_secret(..) else { return StatusCode::UNAUTHORIZED }` in `webhooks/github.rs`, `gitea.rs`, `gitlab.rs`). GitHub and Gitea verify the HMAC with `Mac::verify_slice` (constant time); GitLab compares the token with `subtle::ConstantTimeEq`. Landed with #302 (secrets sealed at rest).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
When webhook_secret is None on a repository, the webhook handlers silently skip HMAC/token verification and proceed to trigger a full scan. Any unauthenticated POST to /webhook/{type}/{repo_id} will execute the scan pipeline. Fix: Reject with 401 when webhook_secret is None. Use constant-time comparison for GitLab token. Files: webhooks/github.rs, webhooks/gitlab.rs, webhooks/gitea.rs
Fixed on main. Every webhook handler fails closed: without a webhook secret the delivery is rejected with 401 before anything runs (
let Some(secret) = super::webhook_secret(..) else { return StatusCode::UNAUTHORIZED }inwebhooks/github.rs,gitea.rs,gitlab.rs). GitHub and Gitea verify the HMAC withMac::verify_slice(constant time); GitLab compares the token withsubtle::ConstantTimeEq. Landed with #302 (secrets sealed at rest).