Skip to content

block external IP#17248

Merged
balloob merged 2 commits intodevfrom
limit-emulated-hue-local
Oct 8, 2018
Merged

block external IP#17248
balloob merged 2 commits intodevfrom
limit-emulated-hue-local

Conversation

@balloob
Copy link
Copy Markdown
Member

@balloob balloob commented Oct 8, 2018

Description:

I was looking for the auth issue by @awarecan to link the new webhook trigger PR #17246 when I stumbled upon #15427. I wish I had seen this earlier or that it was escalated.

Anyway, here is a PR to block all external IPs from accessing the emulated Hue APIs.

Could probably be a decorator but wanted to get this out fast.

I really hate the emulated Hue component, it's been such a source of problems.

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass

If the code does not interact with devices:

  • Tests have been added to verify that the new code works.

@awarecan
Copy link
Copy Markdown
Contributor

awarecan commented Oct 8, 2018

As long as 8300 port is not accessible from external we should be fine, but yes, a block for all external IP access is a quick fix.

Copy link
Copy Markdown
Contributor

@awarecan awarecan left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@OverloadUT OverloadUT left a comment

Choose a reason for hiding this comment

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

Spot checked for style issues or obvious logic failures, but I can't comment much on the accuracy of the implementation

@balloob balloob merged commit 68d7293 into dev Oct 8, 2018
@ghost ghost removed the in progress label Oct 8, 2018
@balloob balloob deleted the limit-emulated-hue-local branch October 8, 2018 18:50
balloob added a commit that referenced this pull request Oct 9, 2018
* block external IP

* Update __init__.py
@balloob balloob mentioned this pull request Oct 12, 2018
@home-assistant home-assistant locked and limited conversation to collaborators Feb 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants