Commit Graph
4242 Commits
Author SHA1 Message Date
Poorna d6ffdbc8fb admin trace: convert trace type to string in json fmt (#4029) 2022-03-25 01:52:53 -07:00
Harshavardhana 84a7b83eda use globalRootCAs always do not initialize new certPools
automatic prompt for certs broke system trusted tls endpoints
since it ignored the currently loaded certs as trusted.

if they are available and we can establish TLS we should
proceed instead of failing and asking users to always use
`--insecure`
RELEASE.2022-03-17T20-25-06Z
2022-03-17 12:56:43 -07:00
Anis Elleuch de063f9252 Fix alias add when --insecure is passed in a non tty (#4025)
--insecure does not have an effect when running mc in a non-terminal. This
commit fixes the behavior by ignoring the prompt from trusting self
signed certificate when --insecure is passed as well.
2022-03-17 10:35:24 -07:00
Harshavardhana b01f48836a replicate add should enable all replication types by default (#4021)
fixes #4020
RELEASE.2022-03-17T07-21-29Z
2022-03-16 13:06:05 -07:00
Andreas Auernhammer 3252573ed2 alias: fetch peer certificate when adding an alias (#4010)
This commit adds an extension to the `alias set`
command. When adding an alias fails due to a TLS
trust error - i.e. remote peer certificate verification
fails - `mc` fetches the remote peer certificate,
computes the public key fingerprint and asks the user
to confirm the fingerprint.

When the user confirms the fingerprint, the certificate
is added to the `CAs` directory.

This allows users to use a TOFU authentication with
self-signed certificates - similar to SSH.

Signed-off-by: Andreas Auernhammer <hi@aead.dev>
2022-03-16 10:00:25 -07:00
Anis Elleuch 0f31ce23b9 mv: Fix regression when checking lock in target bucket (#4015)
A recent commit changed the behavior of client-s3.GetObjectLockConfig()
without properly checking the behavior of the callers introducing a bug
during mv command where the target is an S3 server.

Add some tests for the mc mv command as well.
RELEASE.2022-03-13T22-34-00Z
2022-03-11 15:10:02 -08:00
Anis Elleuch 869c875967 svcacct: Show successful message after deletion (#4016)
Fix some typo that prevented the command to print a success message
when a service account is deleted.
2022-03-11 15:09:46 -08:00
Poorna bd00af5a71 Allow remote target endpoint to point to different host (#4012) RELEASE.2022-03-09T02-08-36Z 2022-03-08 17:42:16 -08:00
Krishna Srinivas def1988b92 Implement "mc support perf net" for network throughput test (#3998) 2022-03-08 11:30:42 -08:00
Harshavardhana f13defa545 update some wording and docs under tier commands (#4007) RELEASE.2022-03-03T21-12-24Z 2022-03-01 17:12:26 -08:00
Shireesh Anjal a7a9b65237 Remove --schedule flag from support diag command (#4003)
Going forward, periodic upload of diagnostics is not expected to be
performed using the `support diag` command.
2022-03-01 10:53:59 -08:00
Anis Elleuch 88b984a6e2 more validation for retention commands (#4004) 2022-03-01 10:53:43 -08:00
Krishnan Parthasarathi 9aa7712c43 Add support for tier-rm/tier-verify (#3996) 2022-03-01 10:53:09 -08:00
Klaus Post 0d5acd8820 Fix arm FreeBSD build (#4006)
Fixes #4005

Tested with `GOOS=freebsd GOARCH=arm go build .`.
2022-03-01 10:23:05 -08:00
supriyo-biswas 9de0045882 Quote special characters in share curl command (#4000)
* Quote special characters in share curl command
* Add testcases and other unsafe chars
2022-02-28 12:25:19 -08:00
Anis Elleuch cce6451b63 watch: Clean up watch when restarting mirror after an error (#3993)
Add cleanup for watch code when it exits and mirroring is restarted.
2022-02-25 20:15:21 -08:00
Harshavardhana a1d6c3d4af remove trimming of top level path RELEASE.2022-02-26T03-58-31Z 2022-02-25 18:10:25 -08:00
Klaus Post 5488be0c8b Add cpuio profile type (#3988) 2022-02-25 10:46:22 -08:00
jinapurapu 9cf722a3aa Updated help text to clarify alias (#4001) 2022-02-24 16:04:29 -08:00
Anis Elleuch 096fbbf24a mirror: Proper cleanup after exit (#3994) 2022-02-24 14:24:22 -08:00
Harshavardhana af342c3780 update wording of svacct command line 2022-02-24 13:31:00 -08:00
Harshavardhana d7846dab9e update CREDITs file for new deps 2022-02-24 12:59:29 -08:00
Harshavardhana b44a7642ed update go mod tidy -compat=1.17 2022-02-24 12:58:21 -08:00
Krishnan Parthasarathi 2cae86c783 tier-info: Add bar charts for 24hr dailys tier-stats (#3928) 2022-02-24 12:51:21 -08:00
Harshavardhana 620455a22c update minio-go/v7 to v7.0.23 RELEASE.2022-02-23T03-15-59Z 2022-02-22 18:50:59 -08:00
Harshavardhana dec8d91dbc fix: rename 'perf drives' to 'perf drive' (#3991) 2022-02-22 10:13:07 -08:00
Shireesh Anjal f4f5932d3f Add mc support callhome get command (#3986)
* Add `mc support callhome get` command

Will print all the callhome settings (currently just `logs=on|off`)

* Rename retrieveCallhomeSetting to printCallhomeSetting

As it doesn't need to return anything, and only prints the setting.
2022-02-21 15:47:31 -08:00
Anis Elleuch 3902b3b03f Refactor profiling and add goroutines (#3992)
Running mc like this,

`MC_PROFILER=mem,goroutine mc ...` will start profiling and save
profiling data when mc quits with Control-C.
2022-02-21 14:50:51 -08:00
Harshavardhana c7a8815414 fix: rm should reject --non-current with --recursive (#3987) 2022-02-18 02:59:34 -08:00
Shireesh Anjal 99bdf20c64 Remove cli flag subnet-proxy (#3989)
System now supports setting the subnet proxy as a config, so the command
line flag is not required anymore.
2022-02-17 11:05:53 -08:00
Harshavardhana 3b15bec803 update minio-go to v7.0.22 2022-02-16 10:40:26 -08:00
Harshavardhana c5e56141bd fix: admin info output for multiple pools (#3985)
fixes #3984
fixes #3976
2022-02-16 10:35:24 -08:00
Shireesh Anjal 220f7c217a Fix cluster registration failing when proxy not set (#3983) RELEASE.2022-02-16T05-54-01Z 2022-02-15 04:03:39 -08:00
Klaus Post 2f42260f98 Add remote zip support to mc ls/cp/cat (#3977)
--zip flag is hidden for now
2022-02-15 03:09:39 -08:00
Harshavardhana a11a264933 extend 'mc support inspect --export=json' to export JSON directly (#3981)
this is essentially the same code at
https://github.com/minio/minio/tree/master/docs/debugging/xl-meta

--export option provides exporting 'xl.meta' information as 'JSON'
or export the inlined-data 'JSON' that represents 'version-id' and
the corresponding size of the inlined data.

This essentially now provides full visibility of the inspected data
that is captured, extracts and converts into some parseable
JSON.
2022-02-15 01:52:18 -08:00
Shireesh Anjal c7537a171f Improve descriptions of support commands (#3982) 2022-02-14 02:48:56 -08:00
Shireesh Anjal 65efe40a82 Use subnet proxy from minio config if available (#3969)
minio now supports storing the proxy to be used for connecting to subnet
in the `subnet proxy` config. So mc can use it if available when
communicating with subnet during cluster registration or diagnostics
upload.
2022-02-13 22:13:27 -08:00
Shireesh Anjal f65871e305 Move admin speedtest to support perf (#3966)
related to drives and objects sub-commands
2022-02-13 22:13:06 -08:00
Shireesh Anjal ab2bce93ea Move admin profile to support profile (#3972)
As part of reorganization of support related commands
2022-02-13 16:08:52 -08:00
Shireesh Anjal 7b93343803 Move admin inspect to support inspect (#3971) 2022-02-13 15:38:06 -08:00
Poorna c579c0b403 Add subcommands to mc replicate resync (#3964)
This PR adds `start` and `status` subcommands for
managing replication resync
2022-02-13 15:36:24 -08:00
Harshavardhana c595efe440 fix: some inconsistencies in 'mc support' command RELEASE.2022-02-13T23-26-13Z 2022-02-13 15:21:46 -08:00
Harshavardhana cb1daf1567 simplify wording for mc replicate edit and default sane values (#3980) 2022-02-11 17:07:53 -08:00
Harshavardhana 2be75594d0 simplify wording for mc replicate add and default sane values (#3978) 2022-02-11 16:36:37 -08:00
Harshavardhana ed42cdc3a8 fix: alias import comment formatting (#3979) 2022-02-11 13:27:48 -08:00
jinapurapu 8e3b5ebc46 Add alias import command (#3958) 2022-02-11 10:15:02 -08:00
Shireesh Anjal 5d50c9beb9 Error out from support diag if cluster not registered (#3970)
If user tries to run `mc support diag` for a cluster that is not yet
registered, error out asking the user to register the cluster first.
2022-02-11 09:28:15 -08:00
Poorna 9b6f6cdbb4 Add admin replicate remove command to allow removal of sites (#3919) 2022-02-10 18:50:11 -08:00
Sidhartha Mani 006c48c51c add admin speedtest drive command (#3939) 2022-02-10 17:53:39 -08:00
Klaus Post e71b1c80b4 Skip Shell check on Windows (#3973)
Fixes `mc: <ERROR> Failed to enable autocompletion. Cannot 
determine shell-type and SHELL environment variable found: exit status 1.` 
on Windows.
2022-02-10 17:52:02 -08:00