Skip to content

Commit

Permalink
Update docs on auth db config (mlflow#11176)
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Fu <[email protected]>
  • Loading branch information
gabrielfu authored Feb 20, 2024
1 parent f85711e commit 3f0e14e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/source/auth/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,30 @@ the request is authenticated, or a ``Response`` object (typically
to implement a custom authentication method, see ``tests/server/auth/jwt_auth.py``.
**NOTE:** This example is not intended for production use.

Connecting to a Centralized Database
====================================

By default, MLflow Authentication uses a local SQLite database to store user and permission data.
In the case of a multi-node deployment, it is recommended to use a centralized database to store this data.

To connect to a centralized database, you can set the ``database_uri`` configuration variable to the database URL.

.. code-block:: ini
:caption: Example: ``/path/to/my_auth_config.ini``
[mlflow]
database_uri = postgresql://username:password@hostname:port/database
Then, start the MLflow server with the ``MLFLOW_AUTH_CONFIG_PATH`` environment variable
set to the path of your configuration file.

.. code-block:: bash
MLFLOW_AUTH_CONFIG_PATH=/path/to/my_auth_config.ini mlflow server --app-name basic-auth
The database must be created before starting the MLflow server. The database schema will be created automatically
when the server starts.

Custom Authentication
=====================

Expand Down

0 comments on commit 3f0e14e

Please sign in to comment.