feat: add sha256 signatures to outgoing http requests (#2874)

This commit is contained in:
Adam Cooke
2024-03-13 08:52:29 +00:00
committed by GitHub
parent 9982bb8c31
commit 96d73653d7
11 changed files with 188 additions and 10 deletions
@@ -28,7 +28,9 @@ RSpec.describe WebhookDeliveryService do
}.to_json,
headers: {
"Content-Type" => "application/json",
"X-Postal-Signature" => /\A[a-z0-9\/+]+=*\z/i
"X-Postal-Signature" => /\A[a-z0-9\/+]+=*\z/i,
"X-Postal-Signature-256" => /\A[a-z0-9\/+]+=*\z/i,
"X-Postal-Signature-KID" => /\A[a-f0-9\/+]{64}\z/i
}
})
end