Passwords management

Passwords management

Starting from Datafari 7.0

 

Where are passwords stored?

Datafari stores its sensitive passwords in the following folder:

{DATAFARI_HOME}/secrets

Each password is stored in a separate file. These files contain only the password itself.

What passwords are stored?

  1. Accounts to access to Datafari Admin UI or MCF Admin UI

  • Datafari Admin Password
    File: datafari_admin_password
    This is the password of the main Datafari administrator account.
    It is used to access the Datafari administration interface and secured features.

  • MCF Admin Password
    File: mcf_admin_password
    This password is used to access the ManifoldCF (MCF) interface, which manages connectors and data crawling.

  1. PostgreSQL accounts

  • PostgreSQL Admin Password
    File : pg_admin_password
    This is the password of the PostgreSQL superuser : postgres.
    It is used for database administration tasks (creation, maintenance, advanced operations).

  • PostgreSQL Datafari Password
    File : pg_datafari_password
    This password is used by Datafari to connect to its database (datafari). It contains all the tables used by the Datafari web application

  • PostgreSQL MCF Password
    File : pg_mcf_password
    This password is used by ManifoldCF to connect to its database.

  • PostgreSQL Apache password
    File : apache.pgpass
    This file allows Apache to connect to PostgreSQL automatically, without asking for a password.

How does it work?

Datafari reads these password files automatically when needed.

This means:

  • Passwords are not hardcoded in scripts

  • All credentials are centralized in one place

  • Services can work without manual password input

What happens when a password is changed?

Datafari Admin Password

If you change the admin password from the Datafari interface:

  • It is updated in the database

  • It is automatically updated in the corresponding secret file

MCF Admin Password

If you change the MCF admin password:

  • It is updated in the MCF configuration

  • It is also updated in the secret file

For the passwords into PostgreSQL, you have to change them manually, it cannot be done by the admin UI.

What happens during installation?

When Datafari is started for the first time:

  • Initial passwords are generated automatically

  • They are displayed in the installation console

  • They are saved in the secrets folder

⚠️ Important:
Make sure to save these passwords securely when they are displayed.