Skip to content

add reading the SecretKey from environment variables. #5259

@zhujintao

Description

@zhujintao

config:

	"aliases": {
		"default": {
			"url": "http://127.0.0.1:9000",
			"accessKey": "minioadmin",
			"secretKey": "$MINIO_SECRET",
			"api": "s3v4",
			"path": "auto"
		},

NewS3Config:

		s3Config.SecretKey = aliasCfg.SecretKey
		secretEnv := os.ExpandEnv(aliasCfg.SecretKey)
		if secretEnv != "" {
			s3Config.SecretKey = secretEnv
		}

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