You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add flag to AwsLambdaReceiver to enable/disable signature verification (#2107)
* Add flag to `AwsLambdaReceiver` to enable/disable signature verification
* Address PR comments
* Add blurb to `signingSecret` JSDoc saying that the value of it doesn't matter if sig verification is disabled
* The Slack Signing secret to be used as an input to signature verification to ensure that requests are coming from
45
+
* Slack.
46
+
*
47
+
* If the {@link signatureVerification} flag is set to `false`, this can be set to any value as signature verification
48
+
* using this secret will not be performed.
49
+
*
50
+
* @see {@link https://api.slack.com/authentication/verifying-requests-from-slack#about} for details about signing secrets
51
+
*/
43
52
signingSecret: string;
53
+
/**
54
+
* The {@link Logger} for the receiver
55
+
*
56
+
* @default ConsoleLogger
57
+
*/
44
58
logger?: Logger;
59
+
/**
60
+
* The {@link LogLevel} to be used for the logger.
61
+
*
62
+
* @default LogLevel.INFO
63
+
*/
45
64
logLevel?: LogLevel;
65
+
/**
66
+
* Flag that determines whether Bolt should {@link https://api.slack.com/authentication/verifying-requests-from-slack|verify Slack's signature on incoming requests}.
67
+
*
68
+
* @default true
69
+
*/
70
+
signatureVerification?: boolean;
71
+
/**
72
+
* Optional `function` that can extract custom properties from an incoming receiver event
73
+
* @param request The API Gateway event {@link AwsEvent}
0 commit comments