Skip to content

MinIO should perform sanity checks at startup about reachability / TLS certificates  #3428

Open
@ecerulm

Description

@ecerulm

Is your feature request related to a problem? Please describe.

I did a new setup with 2 minio servers behind an HAProxy. I misconfigured the minio servers with MINIO_SERVER_URL pointing to the "https://haproxyaddress:9000" and the MinIO console was failing to login any user (I don't know the exact reason since it's not reported by minio, that's why I'm writing this issue).

The MinIO console login failed with a (IMHO, misleading) error message of Invalid Login which I think also can be improved (see #3427).

Anyway my problem when away when I just remove the MINIO_SERVER_URL, but I feel minio could have detected that MINIO_SERVER_URL was "wrong" at startup and reported it directly or even refused to start.

Describe the solution you'd like
At startup minio should do sanity checks for

  • MINIO_SERVER_URL / default address is reachable by the MinIO console, consider reporting these specifically:
    • DNS resolution failures,
    • Connection timeout ,
    • TLS certificate validation failure

It should print the result of the checks on the startup log, or even refuse to start.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context

@marktheunissen help me on Slack with my initial issue, and probably can write down more "sanity checks" that he already have in mind.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions