一、该问题的重现步骤是什么?
安全扫描,发现
actuator未授权访问:
http://xxx.xxx.xxx.xx:8287/api/blade-log/actuator/heapdump
http://xxx.xxx.xxx.xx:8287/api/blade-system/actuator/heapdump
http://xxx.xxx.xxx.xx:8287/api/blade-business/actuator/heapdump
http://xxx.xxx.xxx.xx8287/api/blade-external/actuator/heapdump
http://xxx.xxx.xxx.xx:8287/api/blade-auth/actuator/heapdump
http://xxx.xxx.xxx.xx:8287/api/actuator/heapdump
可下载heapdump,泄露信息
二、你期待的结果是什么?实际看到的又是什么?
1、log日志不记录health接口报错,避免数据表数据过大。
2、health接口只限制允许本地访问。
3、health接口外部访问加鉴权。
4、后续容器化这个health的访问要如何处理。
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
<revision>4.6.0.RELEASE</revision>,使用的是spring Cloude 版本
四、请提供详细的错误堆栈信息,这很重要。
五、若有更多详细信息,请在下面提供。
升级最新版本,然后启动的时候用prod环境 --spring.profiles.active=prod ,系统会自动拒绝非白名单ip访问 actuator接口。
不满足你需求的可以自行拓展。
线上系统你可以访问下看看:https://api.ai.bladex.cn/blade-system/actuator/health
扫一扫访问 Blade技术社区 移动端