Skip to content
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

Allow requests to both slack.com and api.slack.com when running in local mode #60

Merged
merged 2 commits into from
Dec 4, 2023

Conversation

filmaj
Copy link
Contributor

@filmaj filmaj commented Dec 4, 2023

Re: slackapi/deno-slack-sdk#254

For local run mode, we, by default, allow network access to slack.com. However, this does not explicitly allow api.slack.com. Some of our APIs, like the SCIM APIs, are available at api.slack.com/scim. So today, developers can't access these APIs when running in local run mode.

Let's fix that!

I checked with the run-on-slack team, and tested this for deployed apps, and this is already allowed there. So this lines up local-run behaviour with deployed behaviour.

@filmaj filmaj added the bug Something isn't working label Dec 4, 2023
@filmaj filmaj self-assigned this Dec 4, 2023
Copy link

codecov bot commented Dec 4, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (97cf8f5) 95.08% compared to head (5044122) 95.09%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #60   +/-   ##
=======================================
  Coverage   95.08%   95.09%           
=======================================
  Files          14       14           
  Lines         549      550    +1     
  Branches       82       82           
=======================================
+ Hits          522      523    +1     
  Misses         27       27           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@filmaj filmaj marked this pull request as ready for review December 4, 2023 21:23
@filmaj filmaj requested a review from a team as a code owner December 4, 2023 21:23
Copy link
Contributor

@WilliamBergamin WilliamBergamin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 💯 great catch

@filmaj filmaj merged commit b20176a into main Dec 4, 2023
4 checks passed
@filmaj filmaj deleted the allow-api-slack-com branch December 4, 2023 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants