Code Monkey home page Code Monkey logo

Comments (4)

iyangsj avatar iyangsj commented on June 13, 2024 1

1 这个功能内部版本BFE是支持的,可以考虑将这个功能开源出来

  • 如果基于开源版本直接实现,可以调用 web_monitor库的 InitReloadACL() 来定制允许的源地址

2 一些外部用户采用了如下方案来解决这类问题,供参考: @AFreeCoder

  • Step1 配置一个特殊的Product及Cluster,Cluster仅包含一个后端实例,指向了“127.0.0.1:<monitor_port>”
  • Step2 配置特殊的路由规则,将热加载请求转发到相应Prodcut及Cluster
    (例如:热加载请求使用约定的Host及特殊Header)
  • Step3 配置访问控制规则,仅允许受限的访问
    (例如:基于访问源地址、基于请求认证等)

from bfe.

mileszhang2016 avatar mileszhang2016 commented on June 13, 2024

从安全角度考虑,BFE对发起reload的客户端来源地址确实做了限制,只允许从同机发起。

一种可能的解决方案是对于web-monitor端口的访问增加认证控制机制,从而允许远程触发reload。
如果哪位同学有兴趣,也欢迎贡献这方面的功能代码。

from bfe.

kwanhur avatar kwanhur commented on June 13, 2024

建议先将允许的来源地址转移至bfe_server.conf配置文件,而非硬编码在代码中。

from bfe.

bhavyastar avatar bhavyastar commented on June 13, 2024

Can I work on this issue? @iyangsj @mileszhang2016

from bfe.

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.