Salesforce Certified Slack Developer free question 7 / 10 · Domain 5: Designing for Security
A team restricts API token usage to its data center ranges. A job in a different network then calls the Web API and posts through an incoming webhook. What happens?
- Both the Web API call and the webhook post succeed because tokens are checked first
- The Web API call succeeds, and the webhook post is rejected for the unlisted address
- The Web API call is rejected, but the incoming webhook post still succeeds normally
- Both the Web API call and the webhook post are rejected for the unlisted address
Show the answer and explanation
Answer: C
Why this is correct
Slack can limit the use of an app OAuth tokens to a list of IP addresses and ranges. Once a list exists, Slack accepts Web API method calls only from those addresses and rejects requests from unlisted addresses. The restriction applies to token use against the Web API and the SCIM API for local or distributed apps, and the documentation states that allowed IP listing does not apply to incoming webhooks. The list accepts up to 20 entries, each a CIDR range or a single address, and IPv6 is not supported. Local IP addresses cannot be added to allowed lists, and IPv6 is not supported.
Why the other options are wrong
"Both the Web API call and the webhook post are rejected for the unlisted address" … The allow list applies to token use against the Web API and the SCIM API, not to incoming webhooks.
"Both the Web API call and the webhook post succeed because tokens are checked first" … Slack rejects Web API calls from unlisted addresses once an allow list exists.
"The Web API call succeeds, and the webhook post is rejected for the unlisted address" … The behavior is reversed: the Web API call is rejected and the webhook is not covered by the list.
Key points
IP allow list: Web API and SCIM only. Not incoming webhooks. Up to 20 entries, IPv4 only.