Git Product home page Git Product logo

Comments (3)

radinsky avatar radinsky commented on August 14, 2024

Yes, it's easy to create whitelist array and to get the self.client_address[0] from the request.

from broadlink-http-rest.

uudruid74 avatar uudruid74 commented on August 14, 2024

I've managed to get Google Assistant integrated, a significant milestone. However, to make things easy, I used IFTTT (if this then that) and the "WebHooks" service they have to send random HTML requests. This can be expanded to way beyond just Google Assistant since IFTTT supports just about anything as a trigger. If you want to lower the temperature of house when a stock rises, I think you could do that!

However, WebHooks requests are made from the Internet, so security is a major concern. Here is a list of security-related issues I've implemented (about to push to my tree) for comment. All in "General"

  • serverAddress = IP to listen on, rather than 0.0.0.0
  • serverPort = listen port (defaults to 8080)
  • learnFrom = IP addresses that can issue new commands to learn from (default is any)
  • broadcastAddress = a pending patch to python-broadlink will allow device discover to use a specified broadcast IP
  • Autodetect = if set to an int, do device discovery and add detected devices to settings.ini Timeout in the given seconds. This option won't persist and is auto-cleared.
  • allowOverwrite = if set to anything, allow learned commands to overwrite an existing entry. The default is to deny changing a command that is already learned
  • restrictAccess = restrict all operations to this list of IPs
  • password = allow password-protected POST operations from any address

If password is specified, then GET operations are only allowed from hosts in restrictAccess. GET operations won't need a password, but they'll only be allowed from specific hosts. There is currently no way to restrict hosts AND require a password, but serverAddress combined with firewall rules on the underlying host would be solution for the security paranoid, setting password and not restrictAccess.

from broadlink-http-rest.

uudruid74 avatar uudruid74 commented on August 14, 2024

Resolved by #13

from broadlink-http-rest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.