Code search and Corfedo AI
Find any code across every repository
Search all your repositories at once, on every code host. Or ask Corfedo AI how something works across your services, and get one answer with links to the lines it used.
Where do we verify webhook signatures, and do all services do it the same way?
Thought for 30s
Searched code for
where are webhook signatures verified- Query
- where are webhook signatures verified
Found usages, searched code
Found uses in code of
WebhookSignatureVerifier{ "name": "WebhookSignatureVerifier" }Searched order-sync for
createHmac OR timingSafeEqual- Query
- createHmac OR timingSafeEqual
- Repositories
- Legacy/order-sync
Read 4 files
Read WebhookSignatureVerifier.cs in platform-kit
- Repository
- platform/platform-kit
- Path
- src/PlatformKit.Webhooks/WebhookSignatureVerifier.cs
Read PartnerWebhookEndpoint.cs in payments-api
- Repository
- acme/payments-api
- Path
- src/Webhooks/PartnerWebhookEndpoint.cs
Read InvoiceWebhookHandler.cs in billing-service
- Repository
- acme/billing-service
- Path
- src/Webhooks/InvoiceWebhookHandler.cs
Read webhooks.js in order-sync
- Repository
- Legacy/order-sync
- Path
- lib/webhooks.js
Sources: all my sources.
Profile: Deep review
Three services verify webhook signatures, in two ways. acme/payments-api and acme/billing-service call WebhookSignatureVerifier from platform/platform-kit platform/platform-kit / src/PlatformKit.Webhooks/WebhookSignatureVerifier.cs:18-52. Legacy/order-sync has its own check, and it skips the timestamp.
| Repository | Verified by | Old requests |
|---|---|---|
| acme/payments-api | WebhookSignatureVerifier from platform-kit acme/payments-api / src/Webhooks/PartnerWebhookEndpoint.cs:24-31 | Rejected after five minutes |
| acme/billing-service | WebhookSignatureVerifier from platform-kit acme/billing-service / src/Webhooks/InvoiceWebhookHandler.cs:40-47 | Rejected after five minutes |
| Legacy/order-sync | Its own verifySignature Legacy/order-sync / lib/webhooks.js:12-29 | Not checked. It compares the signature and never reads x-timestamp |
A captured request to Legacy/order-sync still passes when it is sent again later. Add the timestamp check that platform-kit does in platform/platform-kit / src/PlatformKit.Webhooks/WebhookSignatureVerifier.cs:38-45.
Corfedo AI
One question, thousands of files read on your server
Corfedo AI does the searching and reading and hands back the answer. Asked from a coding agent, the work spends your Corfedo AI budget, not the agent’s context.
- Browser
- Coding agents
- Chat
- API and SDKs
One question
Corfedo AI on your serverIt reads what the person asking may read
- Searches codeBy description, exact text or pattern
- Reads filesCode, configuration and docs
- Runs scriptsOne script searches and reads many files
- Checks packages and findingsVersions in use and known vulnerabilities
- Hands parts to subagentsSeveral parts of a question at once
- Writes filesA report or a patch in the conversation
Back to you
- Answer
- Citations
- Downloadable files
Search
Describe it, or write exactly what you want
One search covers every repository you may read.
Code that does what you describe
where do we retry failed charges38 files in 6 repositories, first
GitHub:acme/payments-api src/Charges/ChargeRetryPolicy.cs
An exact message
"refund window has expired"2 files in 2 repositories, first
GitHub:acme/billing-service src/Refunds/RefundValidator.cs
A pattern
/Feature\.IsEnabled\("\w+"\)/ lang:csharp -file:test31 files in 4 repositories, first
GitHub:acme/payments-api src/Charges/ChargeService.cs
A class by part of its name
refund type:symbol kind:class5 classes in 2 repositories, first
RefundPolicyinGitHub:acme/billing-service
Code hosts
Every repository on every code host, kept up to date
Connect GitHub, GitLab™, Gitea, Forgejo, Bitbucket and Azure DevOps once. New repositories that match your selection, and new commits, arrive without anyone adding them.
Connect your code hosts
GitHub
- GitLab™
- Gitea
- Forgejo
Bitbucket
Azure DevOps
Read-only access is enough.
Pick the repositories
acme/*platform/**-archiveleft out
Indexing keeps up on its own
- New repositoriesfound and indexed
- New commitspicked up
Search keeps working while repositories update
GitHub:acme/payments-api
8c41f0aindexed, searchede7d2b90updating
Your team keeps searching while new commits are indexed.
Search and ask on the demo
Try your own queries and questions, then run Corfedo on your own repositories.