description |
---|
Verifies that request bodies are from Envoy and are meant for your plugin. |
Param | Type |
---|---|
[options] | SignatureVerifierOptions |
- instance
- .verify(req, rawBody) ⇒
boolean
- .verify(req, rawBody) ⇒
Verifies that the signature provided matches the request body.
Kind: instance method of EnvoySignatureVerifier
Param | Type |
---|---|
req | |
rawBody | Buffer |
Properties
Name | Type | Default |
---|---|---|
algorithm | string |
"sha256" |
encoding | string |
"base64" |
secret | string |
process.env.ENVOY_CLIENT_SECRET |
header | string |
"x-envoy-signature" |