Score:0

How important is it to have authentication on a dockerized database

us flag

The docker-compose example on the MongoDB docker hub page has a root password provided to the database and the app, but as far as I know, with docker's networking, only the other containers defined in the compose file would have access to the database container.

So how important is it to have a password on the database if the container isn't exposed externally?

Ginnungagap avatar
gu flag
What's your threat model?
NeverKedas avatar
us flag
@Ginnungagap Most of the containers I run need access to the database, and if one of my containers gets breached I'd likely have a larger issue than no credentials on my database. There aren't any ways someone realistically would breach the host system, and the only thing exposed would be a reverse proxy also running in a container. Most of my question is just regarding best practices.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.