屏蔽storm ui的kill功能
今天有个storm的topology被人kill掉了,但是找不到是谁做的,storm的ui有kill topology的功能,但是没有权限验证,这样就导致知道ui地址的任何人都可以kill掉topology,比较危险,考虑把这个action disable掉。 有两种方法: 1.前端增加nginx,做location 分析ui页面,对应kill的button,html中的action为: 1 < input enabled = "" onclick = "confirmAction('xxxxxxxxxx','xxxxxxxx','kill',true,30)" type = "button" value = "Kill" > 调用了js的confirmAction方法,这个方法存在于storm-core/src/ui/public/js/script.js 中, 方法的定义如下: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 function confirmAction(id,name,...