SIGN IN SIGN UP

fix: verify server ownership before running IP detection

validateDomain accepted an arbitrary serverId and used it to look up
the server and SSH into it, without checking it belonged to the
caller's active organization. A member with domain:read could probe
other orgs' servers and get their SSH/detected IPs back in the
response.

Addresses greptile review on #5214
M
Mauricio Siu committed
4b7a6295fc88decc3d032d1bb058bdd4f77cb2a2
Parent: 9761616