Skip to content

Does the minio/minio image support *_FILE credentials? #1499

@dennisvang

Description

@dennisvang

Our goal is to set up Minio via Docker, using Docker secrets (or kubernetes). For this reason it would be convenient if we could configure root credentials via files instead of environment variables, similar to the way it is done in the postgres image.

The root credentials docs do mention MINIO_ROOT_PASSWORD, and so on, but not MINIO_ROOT_PASSWORD_FILE. The same holds for the quickstart on Docker hub.

Does the minio/minio Docker image support file-based root credentials, like MINIO_ROOT_PASSWORD_FILE?

I assume it does (or did, at some point in time), based on the following related issue, but I cannot find any mention of it in the docs.

Judging from image layer 21, there are indeed environment variables ending in _FILE, including MINIO_ROOT_PASSWORD_FILE:

ENV MINIO_ACCESS_KEY_FILE=access_key MINIO_SECRET_KEY_FILE=secret_key MINIO_ROOT_USER_FILE=access_key MINIO_ROOT_PASSWORD_FILE=secret_key MINIO_KMS_SECRET_KEY_FILE=kms_master_key MINIO_UPDATE_MINISIGN_PUBKEY=RWTx5Zr1tiHQLwG9keckT0c45M3AGeHD6IvimQHpyRywVWGbP1aVSGav MINIO_CONFIG_ENV_FILE=config.env MC_CONFIG_DIR=/tmp/.mc

Of course I've tried specifying MINIO_ROOT_PASSWORD_FILE in a compose file, and this appears to work as expected.

However, the fact that it is not documented makes me worry.

Is there a reason this is not documented?

If not, could you add a section in the docs explaining that one can use *_FILE based credentials?
It would also be great if this could be mentioned in the quickstart on Docker hub.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions