Commit Graph
4943 Commits
Author SHA1 Message Date
Harshavardhana 423ef1ba2a update go deps 2025-01-22 23:47:51 -08:00
Shubhendu a4f20fe74c Use latest madmin-go for policy content check (#5109)
Signed-off-by: Shubhendu Ram Tripathi <shubhendu@minio.io>
2025-01-22 23:41:01 -08:00
Mark Theunissen 5cfac09600 Improve the error message when trying to add multiple expiry options (#5117) 2025-01-22 22:51:38 -08:00
Klaus Post b436cd2436 mc find - allow absolute times (#5118)
For `--newer-than` and `--older-than`, allow using absolute times.

Example:

```
λ mc ls play/testbucket
[2025-01-22 09:57:12 CET] 676KiB STANDARD Daily checks Procedure for Portainer.docx
[2025-01-22 16:40:07 CET]  22KiB STANDARD dovrennost_mobilizaciya_0-2.docx

λ mc find -newer-than="2025-01-22 09:57:00 CET" play/testbucket
play/testbucket/Daily checks Procedure for Portainer.docx
play/testbucket/dovrennost_mobilizaciya_0-2.docx

λ mc find -newer-than="2025-01-22 09:57:13 CET" play/testbucket
play/testbucket/dovrennost_mobilizaciya_0-2.docx
```

We allow the same timestamp types as `--rewind` and add the printed type for easy copy+paste.
2025-01-22 22:51:15 -08:00
dorman 0019b7b83c fix: cp and mirror commands fail to be executed when the file length is 255 characters (#5114) 2025-01-21 02:19:00 -08:00
Harshavardhana cc8758c88d chore: update deps RELEASE.2025-01-17T23-25-50Z 2025-01-17 15:25:50 -08:00
qinyuren 95e1f70eb5 The version-id in the get command does not work (#5110) 2025-01-16 01:52:17 -08:00
Harshavardhana b1a3941f22 chore: update deps (#5102) 2025-01-02 05:11:34 -08:00
Klaus Post 147852cb37 Add go runtime profile type (#5098)
Available on AIStor.

Requires https://github.com/minio/madmin-go/pull/322

Lower minimum duration to 1 second. Useful (pretty much required) for traces.
2025-01-02 04:55:34 -08:00
Poorna bf7b5f620e fix ilm rule edit for --expire-all-object-versions (#5101)
Editing a rule with --expire-all-object-versions should be applied
to existing rule properly
2025-01-02 04:10:56 -08:00
Harshavardhana f4dd5e4a07 update all deps and update CREDITS (#5097) 2024-12-16 04:20:40 +05:30
Klaus Post 19017536cc Add support top rpc ui nicities (#5087)
* Split to/from. t/f keys to go directly. <tab> to switch.
* Sort by queue size (q)
* Filter/Sort by reconnects (r)
* Add PgUp+PgDn
* Pause with <space>
2024-12-15 01:26:01 -08:00
Klaus Post 86907df91d Improve trace stats (#5095)
Allows traces to be replayed in stats mode from `mc admin trace -json ALIAS >trace.json`, using `mc admin trace -in=trace.json`. `.zst` are automatically decompressed.

This is replayed at full speed, since I don't really see any value in keeping original speed.

Add scrolling to stats. Up+Down+Home+End

Add 'r' to reset min/max stats.
2024-12-15 01:25:34 -08:00
Anis Eleuch 1681e4497c heal: Do not print a cryptic msg when scanning a dangling object (#5084)
Healing in server side will list with quorum 1, so it will pick stale
objects as well. This is currently not rendered well in mc that shows
this cryptic message:
	Invalid parity shard count/surplus shard count given

Print the text sent by the server instead.
RELEASE.2024-11-21T17-21-54Z
2024-11-21 09:21:54 -08:00
Allan Roger Reid 35cb4b8177 Return delete markers in mc find (#5083)
* Default to list delete flags if they are part of the result set, so that they are not hidden from the find function

* Add --with-delete-marker flag to toggle the listing of delete markers. Defaults to false

* List delete markers as well when using the --versions flag
2024-11-20 10:10:21 -08:00
Harshavardhana bb4ff4951a when --no-list is specified avoid every List() call (#5082) RELEASE.2024-11-17T19-35-25Z 2024-11-17 11:35:25 -08:00
Anis Eleuch 308a8ea9d0 heal: Simplify bucket healing status (#5079)
Avoid using the drive count concept to pick a color for a bucket healing
result. This was straightforward when we were healing a bucket per erasure 
set, but now it becomes more complex to show a result.

Pick green if everything is okay, yellow if a bucket is missing in a
drive, red for any other drive state (unformatted, offline, ..), and
grey for any weird situation.
2024-11-13 08:33:49 -08:00
Anis Eleuch 63eb4a4609 lint: Fix new detected lint complaints (#5080) 2024-11-13 05:46:18 -08:00
Klaus Post 6ac18619cf Only warn if less than 28 days to cert expires (#5077)
Fixes #5076 as much as reasonable.
RELEASE.2024-11-05T11-29-45Z
2024-11-05 03:29:45 -08:00
dependabot[bot] 95a03f54da Bump github.com/golang-jwt/jwt/v4 from 4.5.0 to 4.5.1 (#5074)
Bumps [github.com/golang-jwt/jwt/v4](https://github.com/golang-jwt/jwt) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/golang-jwt/jwt/releases)
- [Changelog](https://github.com/golang-jwt/jwt/blob/main/VERSION_HISTORY.md)
- [Commits](https://github.com/golang-jwt/jwt/compare/v4.5.0...v4.5.1)

---
updated-dependencies:
- dependency-name: github.com/golang-jwt/jwt/v4
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-05 02:22:23 -08:00
dorman 9f4659884d Make the profiler easier to use (#5068) RELEASE.2024-10-29T15-34-59Z 2024-10-29 08:34:59 -07:00
Shubhendu a814b5deaf Mark batch job status properly (#5066)
Client side overall status was always shown as `in-progress` even if
job was successful or failed.

Signed-off-by: Shubhendu Ram Tripathi <shubhendu@minio.io>
2024-10-21 01:51:15 -07:00
Michael Fenn 65aa514dfa Add string/json output string mc pipe (#5065)
This commit adds a string message and json output to mc pipe.  The
implementation is heavily inspired by the one in mc cp, just adapted to
the different semantics of pipe.
2024-10-20 06:55:58 -07:00
Klaus Post d9b81b2956 Add support rpc JSON replay. (#5064)
Add realtime replay of captured JSON data.

Example:
```
λ mc support top rpc --json myminio >rpc.json

λ mc support top rpc -in=rpc.json
```
2024-10-18 14:18:41 -07:00
Klaus Post 2c4e3ad46b Report errors and better file names for mc support inspect (#5062)
Check the returned stream for errors and show them. Don't upload/keep pointless data

Use the request alias to create a better file name...

Example:

```
λ mc support inspect play/testbucket/testdat/**
mc: <ERROR> Unable to download file data. GetRawData: No files matched the given pattern.
```

Previously the error would just be ignored.

```
λ mc support inspect --airgap play/testbucket/testdata/**
File data successfully downloaded as inspect-play_testbucket_testdata.enc
```

Previously all files would be called `inspect-data.enc`, which would just be difficult to distinguish.
2024-10-15 08:15:39 -07:00
Klaus Post bad9b2c737 Add basic RPC metrics via mc support top rpc (#5060)
Example:
```
λ mc support top rpc myminio
      SERVER            CONCTD  PING    OUT Q   RECONNS STR IN  STR OUT MSG IN  MSG OUT
 To  127.0.0.1:9001       5     0.5ms     0        0    -> 20    0 ->   60007    60089
From 127.0.0.1:9001       5     0.5ms     0        0     -> 0    20 ->  60089    60002
 To  127.0.0.1:9002       5     0.0ms     0        0     -> 0    4 ->   34209    33937
From 127.0.0.1:9002       5     0.5ms     0        0     -> 4    0 ->   33938    34209
 To  127.0.0.1:9003       5     0.0ms     0        0     -> 0    4 ->   99379   101165
From 127.0.0.1:9003       5     0.0ms     0        0     -> 4    0 ->   101166   99379
 To  127.0.0.1:9004       5     0.5ms     0        0     -> 0    4 ->   33784    33029
From 127.0.0.1:9004       5     0.0ms     0        0     -> 4    0 ->   33030    33784
 To  127.0.0.1:9005       5     0.0ms     0        0     -> 0    4 ->   33515    33135
From 127.0.0.1:9005       5     0.5ms     0        0     -> 4    0 ->   33136    33515
 To  127.0.0.1:9006       5     0.0ms     0        0     -> 0    4 ->   33627    33161
From 127.0.0.1:9006       5     0.0ms     0        0     -> 4    0 ->   33162    33627
```

There is already server support for metrics.
2024-10-14 13:50:20 -07:00
Harshavardhana e20dea646f remove s390x support 2024-10-13 06:54:36 -07:00
Krutika Dhananjay cf128de2cf Do not fail mc-admin-policy-attach if policy already attached/detached (#5058)
Currently, attempts to attach a policy to a user who already has
the policy attached to them results in a 400.

This change handles cases where policy attach/detach operations
are automated using scripts/jobs. A re-run of the attach/detach
step should not fail the entire job.
RELEASE.2024-10-08T09-37-26Z
2024-10-08 02:37:26 -07:00
Taran Pelkey 07eeb10c06 Add mc admin accesskey commands (#5038) 2024-10-04 04:29:36 -07:00
Harshavardhana ce0b434152 upgrade dependencies (#5053) RELEASE.2024-10-02T08-27-28Z 2024-10-02 01:27:28 -07:00
Anis Eleuch 4616d11c20 heal: More UX changes (#5052)
- Do not show healing ETA anymore; there are some scenarios where the
  ETA can be wrong. Show when healing is started and the progress of the
  healing drive usage compared to nonhealing drives in the same erasure set.
- `--verbose` prints only offline/faulty and healing drives
- `--all-drives` to show information about all drives
- Add yes/no prompt when a user wants to heal the whole namespace
2024-10-01 15:14:33 -07:00
Harshavardhana 609f32a4ff cleanup use of os.Environ() re-use env.List(prefix) (#5048) 2024-09-27 05:08:56 -07:00
Harshavardhana 97fe232a9a add alias name to 'mc ready' (#5044) 2024-09-25 02:56:38 -07:00
llchry a5a54b4429 put: Add --disable-multipart to make it easier to use. (#5041) 2024-09-24 10:47:33 -07:00
Klaus Post be874766a7 Add --checksum param to pipe, put, cp, mirror (#5043)
Add checksums to pipe, cp, mirror commands.

> Add checksum to uploaded object. Values: MD5, CRC32, CRC32C, SHA1 or SHA256. Requires server trailing headers support like AWS, MinIO and possibly others.

`--md5` is hidden, but still applied.

Uploads to buckets with object locking will still use MD5.

Bonus: `mc stat` shows checksum information.
2024-09-24 08:25:16 -07:00
Poorna 3dac3d392f fix quota info (#5040) 2024-09-20 05:49:53 -07:00
11ebe952ea iam export:designate zip file name (#4995)
Co-authored-by: Harshavardhana <harsha@minio.io>


---------

Co-authored-by: Harshavardhana <harsha@minio.io>
Co-authored-by: Klaus Post <klauspost@gmail.com>
Co-authored-by: Aditya Manthramurthy <donatello@users.noreply.github.com>
RELEASE.2024-09-16T17-43-14Z
2024-09-16 10:43:14 -07:00
dormanandKlaus Post 37095dadcc mirror:Add the printing of event time (#4953)
* Add the printing of event time

* Update mirror-main.go

---------

Co-authored-by: Klaus Post <klauspost@gmail.com>
2024-09-16 10:30:02 -07:00
dorman 41aca25f6c alias: mc alias list command outputs the alias information specified by MC_CONFIG_ENV_FILE (#5028)
* Update alias-list.go
2024-09-16 10:23:10 -07:00
Anis EleuchandAnis Eleuch bbfe577d2e idp-ldap: Fix create-with-login command (#5036)
Currently, LDAP create-with-login command is not working properly when
the LDAP user does not have admin:CreateServiceAccount permission.

The permission is normally not needed since a user is allowed
to create a service account for itself. In that case, a temporary
account should be created and a new service account should be issued to
the temporary account access key, and not to the LDAP username as what
the code currently does.

This commit will send the correct target user in that case to make
create-with-login always successful.

Co-authored-by: Anis Eleuch <anis@min.io>
2024-09-14 20:56:26 -07:00
Shubhendu 04c5116c9b Fix regression (#5034)
A regression was introduced by https://github.com/minio/mc/pull/5032
where new `mc` with old MinIO wont import the IAM configs properly.

Signed-off-by: Shubhendu Ram Tripathi <shubhendu@minio.io>
RELEASE.2024-09-09T07-53-10Z
2024-09-09 00:53:10 -07:00
Anis Eleuch f2d65b6c18 scanner-status: Support both old & new scanner metrics (#4683)
When the scanner uses parallel erasure sets scanning, the cycle concept
for the whole scan is no longer relevant. This PR will show the number
of ongoing bucket scans. 

```
mc admin scanner status --bucket <bucket-name> ALIAS
```

Will print a detailed report of a particular bucket scan.

Like, when the last scan progress was saved for that bucket for all
erasure sets. Also it will print when a full scan of a bucket finished.

(A full bucket scan means the last time frame that was needed for each
of erasure sets to do sixteen cycles)
2024-09-08 01:15:30 -07:00
Anis Eleuch 3092b6bf14 tier: Add hidden --force to remove tiering command (#5031)
To ensure that the server can remove an internal tier configuration
when the tiering is unreachable or other corner cases where it is not
possible for the server to determine if the tier contains some data
or fully empty.
2024-09-06 11:28:18 -07:00
Shubhendu 25ea06308f Update to print skipped entities during IAM import (#5032)
Signed-off-by: Shubhendu Ram Tripathi <shubhendu@minio.io>
2024-09-05 08:31:14 -07:00
Taran Pelkey 54268c4808 Add edit, enable, and disable to mc idp ldap accesskey (#5033) 2024-09-05 04:03:52 -07:00
Anis Eleuch ba97441b5e mirror: Print errors in --json format when --skip-errs is provided (#5030) 2024-08-29 19:25:07 -07:00
Harshavardhana efc60a8a90 fix: docker buildx warnings 2024-08-26 09:48:09 -07:00
Harshavardhana a55d9a8d17 upgrade pkg/v3, minio-go/v7 deps (#5027) RELEASE.2024-08-26T10-49-58Z 2024-08-26 03:49:58 -07:00
Anis Eleuch 6801d70e55 heal: Do not show heal ETA when there is a retry attempt (#5025)
There is no suitable mechanism to estimate the ETA of healing when it is
retrying, although in most cases, it is just a listing that should be
quick enough. Hide the ETA anyway for now.
2024-08-26 01:50:57 -07:00
Harshavardhana 2e10255b6d allow cat to take part by part numbers (#5026) 2024-08-26 01:48:58 -07:00