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
+12
View File
@@ -0,0 +1,12 @@
# frozen_string_literal: true
require "rails_helper"
RSpec.describe Postal do
describe "#signer" do
it "returns a signer with the installation's signing key" do
expect(Postal.signer).to be_a(Signer)
expect(Postal.signer.private_key.to_pem).to eq OpenSSL::PKey::RSA.new(File.read(Postal::Config.postal.signing_key_path)).to_pem
end
end
end