Replies: 2 comments 1 reply
-
My standpoint now is:
We should consider security more seriously. |
Beta Was this translation helpful? Give feedback.
-
There is a third option - a Unix socket. Access control is delegated to OS file permissions. It's a much smoother experience for software on the same host that uses the JSON-RPC interface - it can expect the socket to be in a default location and there's no longer a need to share a password through a config as a password is unnecessary. Port clashes aren't possible. |
Beta Was this translation helpful? Give feedback.
-
The discussion about authentication for the hopefully (?) soon-to-be-merged JSON-RPC implementation in #1975 starts getting longer, so I'm replying here to keep the PR focused on the code.
Right. It's a controversial topic by its own. However, I think the situation with regards to JSON-RPC is clearer (at least to me): We are introducing an API which (also) contains admin functionality (e.g. recorder control, change of welcome message HTML, etc.) and might easily be extended to cover even more use cases. Therefore, I can currently think of these two options:
Yes, and the precedence implies (at least in my bubble): Admins are regularly bitten by this, because they've never known about that open-ness, forgot about it or changed a minor, "unrelated" part (e.g. firewall rules).
https://www.securityweek.com/thousands-mongodb-databases-found-exposed-internet
https://www.bleepingcomputer.com/news/security/mongodb-databases-held-for-ransom-by-mysterious-attacker/
I agree that this is how it should be. Nevertheless, in practice, you'll find lots of server admins which work solely based on tutorials with little understanding of networking or other basic concepts. The general increase in abstractions pushes this mindset. That's why I like the "prevent people from shooting in their foot" approach.
I don't think it's part of the spec and it would probably require specific API clients to work with it like that. The idea of the authentication PoC works on the application-level part of the spec.
Originally posted by @Rob-NY in #1975 (comment)
cc @Rob-NY @ann0see @dtinth
Beta Was this translation helpful? Give feedback.
All reactions