close

Filter

loading table of contents...

Release Notes / Version 10.2101

Table Of Contents

MongoDB deployment with authentication

In Chef and Docker Deployment, MongoDB is deployed now with authentication enabled. The user coremedia/coremedia is created by default. In Docker deployment, the user root/root is created additionally. These credentials need to be changed for Live Deployments.

IMPORTANT : Enabling authentication and creating the initial user via skript in the MongoDB Docker file works only on a fresh install and if no users have been created yet in the MongoDB instance. Otherwise the user needs to be created manually (see below). Authentication can then be enabled manually, if required.

Authentication is performed against the admin database. Example:

use admin
db.auth('coremedia','coremedia')

The default mongoDb.clientURI is configured with credentials, e.g. mongoDb.clientURI=mongodb://coremedia:coremedia@${installation.host}:27017.

For development with a MongoDB without authentication, either the credentials prefix can be removed from the mongoDb.clientURI or a user can be created manually with:

use admin
db.createUser({user: 'coremedia', pwd: 'coremedia', roles: ['userAdminAnyDatabase', 'dbAdminAnyDatabase', 'readWriteAnyDatabase']});

(CMS-929)

Search Results

Table Of Contents