-
Notifications
You must be signed in to change notification settings - Fork 399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to disable signature verification #648
Comments
Wasn't able to replace it. Ended up computing the signature and sending that header. Need to add headers const computeSignature = (
version: string,
data: string,
timestamp: number,
signingSecret: string
) => {
const hmac = crypto.createHmac('sha256', signingSecret);
hmac.update(`${version}:${timestamp}:${data}`);
return `${version}=${hmac.digest('hex')}`;
}; Current version is |
Yes, currently it's not possible to replace/disable the logic from Also, I agree that this project can improve the module structure to support better and easier ways to write unit tests. |
Recently, we've implemented the feature to turn the verification off in the Java SDK.
We can consider adding something similar in Bolt for JS too. |
Description
Option to disable signature verification. This will be particularly useful for running tests and should be used only for tests. Since signature verification in production is a security feature.
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Example usage:
This currently doesn't work since the verification middleware wouldn't call the next middleware since the verification would fail. And I wasn't able to replace the
verifySignatureAndParseRawBody
with a fake. I will give some more tries. But maybe it is just easier to allow disabling this middleware from app options?The text was updated successfully, but these errors were encountered: