Minio のアクセスキーは最低3文字、シークレットキーは最低8文字必要

最低限の config で Minio を動かしたい場合、アクセスキーやシークレットキーも手抜きするんだけど、 Unable to load the configuration file: invalid credential in conf エラーが出てしまう。具体的に何がおかしいかまでは出ない。

調べてみたところ、たぶん以下が Minumun な config.json だと思う。

{
    "version": "26",
    "credential": {
        "accessKey": "333",
        "secretKey": "88888888"
    }
}

アクセスキーは最低3文字、シークレットキーは最低8文字必要みたい。

念の為ソース見てみると、pkg/auth/credentials.go#L28 このあたり。抜粋すると、

const (
    // Minimum length for Minio access key.
    accessKeyMinLen = 3

    // Maximum length for Minio access key.
    // There is no max length enforcement for access keys
    accessKeyMaxLen = 20

    // Minimum length for Minio secret key for both server and gateway mode.
    secretKeyMinLen = 8

    // Maximum secret key length for Minio, this
    // is used when autogenerating new credentials.
    // There is no max length enforcement for secret keys
    secretKeyMaxLen = 40

    // Alpha numeric table used for generating access keys.
    alphaNumericTable = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"

    // Total length of the alpha numeric table.
    alphaNumericTableLen = byte(len(alphaNumericTable))
)

うん、間違いなさそう。