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

feature: add ability to make the restriction of api calls to private addresses optional #4790

Merged
merged 3 commits into from
Apr 14, 2020

Conversation

loganprice
Copy link
Contributor

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • New Query Runner (Data Source)
  • New Alert Destination
  • Other

Description

Add configuration item to make the restriction on private address optional

Related Tickets & Documents

#4193
https://discuss.redash.io/t/error-running-query-cant-query-private-addresses/4568

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

Copy link
Member

@arikfr arikfr left a comment

Choose a reason for hiding this comment

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

Thanks!

Just a small typo.

redash/settings/__init__.py Outdated Show resolved Hide resolved
@arikfr arikfr added this to the v9 milestone Apr 10, 2020
@arikfr arikfr merged commit 2d29240 into getredash:master Apr 14, 2020
@jgibbarduk
Copy link

Looks like the settings.ENFORCE_PRIVATE_ADDRESS_BLOCK was not added to line 261 in query_runner/__init__.py

https://github.com/getredash/redash/blob/master/redash/query_runner/__init__.py#L260-L262

When using the setting:
REDASH_ENFORCE_PRIVATE_IP_BLOCK: "false"

Redash continue to say "Error running query: Can't query private addresses."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants