Closed zhuoyuan-liu closed 2 months ago
The idea behind this decision was to prevent recon attempts from an attacking actor. But I can make some changes to only respond to environments in osctrl-tls
using the UUID, and not the name. And reply with a 404 if the environment does not exist? Would that help? Thanks!
The idea makes sense to me. However, it is also a huge risk to expose osctrl publicly as a simple DDoS could bring it down. Also, this is a kind of tool for internal device management. In our setup, we deployed a nginx in front with mTLS to ensure all clients are trusted.
Implemented in https://github.com/jmpsec/osctrl/pull/511
I just found that the osctrl will return the default 200 status code if the environment does not exist. It makes confusing to the client side and it's hard for client-side debugging. I would suggest adding a proper status code and error message to the requests.