3 ms·
Does Redis upstream still bind to all addresses by default on startup, or only to localhost? One nice thing is that some years ago, Debian/Ubuntu configured th
by gunapologist99 5y ago
Does Redis upstream still bind to all addresses by default on startup, or only to localhost?
One nice thing is that some years ago, Debian/Ubuntu configured the default config to only bind to localhost. (You can change it, but only if you need to, so it's "default secure" instead of "default insecure".)
That can really hurt, especially since you might build it and start it up for testing from within your personal user account (maybe just to benchmark a new server -- and perhaps you have sudo?), and then: boom, that entire machine is now pwned.
Binding to all interfaces by default is definitely not the wisest design decision when you could just bind to localhost and then let people bind to 0.0.0.0 as they like, but you still see some naive devs doing it even on new software (like seaweedfs.) Even Mongodb doesn't do that anymore.