mirror of
https://github.com/minio/mc.git
synced 2025-11-10 13:42:32 +03:00
Large MC Update (new encryption flags, functional test suite, removal of session code, minor cleanup, vuln. updates ) (#4882)
This commit is contained in:
@@ -80,7 +80,7 @@ var sqlCmd = cli.Command{
|
||||
Action: mainSQL,
|
||||
OnUsageError: onUsageError,
|
||||
Before: setGlobalsFromContext,
|
||||
Flags: append(append(sqlFlags, ioFlags...), globalFlags...),
|
||||
Flags: append(append(sqlFlags, encCFlag), globalFlags...),
|
||||
CustomHelpTemplate: `NAME:
|
||||
{{.HelpName}} - {{.Usage}}
|
||||
|
||||
@@ -90,8 +90,6 @@ USAGE:
|
||||
FLAGS:
|
||||
{{range .VisibleFlags}}{{.}}
|
||||
{{end}}{{end}}
|
||||
ENVIRONMENT VARIABLES:
|
||||
MC_ENCRYPT_KEY: list of comma delimited prefix=secret values
|
||||
|
||||
SERIALIZATION OPTIONS:
|
||||
For query serialization options, refer to https://min.io/docs/minio/linux/reference/minio-mc/mc-sql.html#command-mc.sql
|
||||
@@ -104,7 +102,7 @@ EXAMPLES:
|
||||
{{.Prompt}} {{.HelpName}} --query "select count(s.power) from S3Object s" myminio/iot-devices/power-ratio.csv
|
||||
|
||||
3. Run a query on an encrypted object with customer provided keys.
|
||||
{{.Prompt}} {{.HelpName}} --encrypt-key "myminio/iot-devices=32byteslongsecretkeymustbegiven1" \
|
||||
{{.Prompt}} {{.HelpName}} --enc-c "myminio/iot-devices=MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTIzNDU2Nzg5MDA" \
|
||||
--query "select count(s.power) from S3Object s" myminio/iot-devices/power-ratio-encrypted.csv
|
||||
|
||||
4. Run a query on an object on MinIO in gzip format using ; as field delimiter,
|
||||
@@ -445,7 +443,7 @@ func mainSQL(cliCtx *cli.Context) error {
|
||||
query string
|
||||
)
|
||||
// Parse encryption keys per command.
|
||||
encKeyDB, err := getEncKeys(cliCtx)
|
||||
encKeyDB, err := validateAndCreateEncryptionKeys(cliCtx)
|
||||
fatalIf(err, "Unable to parse encryption keys.")
|
||||
|
||||
// validate sql input arguments.
|
||||
|
||||
Reference in New Issue
Block a user