pub enum SignatureVerification {
Payments,
Hmac {
secret: &'static str,
},
}Expand description
Which verifier proves a module’s RoutePolicy::Signature deliveries
(issue #533): the Payments port — the default every existing module was
built against — or the core webhook_signature HMAC scheme keyed by the
module’s own config secret. The production gate demands whichever the
module named, never both and never neither.
Variants§
Payments
Payments::verify_webhook — the default; production requires an
effective Payments port.
Hmac
A webhook_signature scheme keyed by a module-scoped config secret:
secret is a ModuleConfig
suffix, read as {MODULE}_{SECRET} ("WEBHOOK_SECRET" on module
pos is POS_WEBHOOK_SECRET). Production requires that key — see
webhook_secret_readiness — and no Payments port.
Trait Implementations§
Source§impl Clone for SignatureVerification
impl Clone for SignatureVerification
impl Copy for SignatureVerification
Source§impl Debug for SignatureVerification
impl Debug for SignatureVerification
impl Eq for SignatureVerification
Source§impl PartialEq for SignatureVerification
impl PartialEq for SignatureVerification
impl StructuralPartialEq for SignatureVerification
Auto Trait Implementations§
impl Freeze for SignatureVerification
impl RefUnwindSafe for SignatureVerification
impl Send for SignatureVerification
impl Sync for SignatureVerification
impl Unpin for SignatureVerification
impl UnsafeUnpin for SignatureVerification
impl UnwindSafe for SignatureVerification
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.