minio/cmd
Aditya Manthramurthy bb6921bf9c
Send AuditLog via new middleware fn for admin APIs (#17632)
A new middleware function is added for admin handlers, including options
for modifying certain behaviors. This admin middleware:

- sets the handler context via reflection in the request and sends AuditLog
- checks for object API availability (skipping it if a flag is passed)
- enables gzip compression (skipping it if a flag is passed)
- enables header tracing (adding body tracing if a flag is passed)

While the new function is a middleware, due to the flags used for
conditional behavior modification, which is used in each route registration
call.

To try to ensure that no regressions are introduced, the following
changes were done mechanically mostly with `sed` and regexp:

- Remove defer logger.AuditLog in admin handlers
- Replace newContext() calls with r.Context()
- Update admin routes registration calls

Bonus: remove unused NetSpeedtestHandler

Since the new adminMiddleware function checks for object layer presence
by default, we need to pass the `noObjLayerFlag` explicitly to admin
handlers that should work even when it is not available. The following
admin handlers do not require it:

- ServerInfoHandler
- StartProfilingHandler
- DownloadProfilingHandler
- ProfileHandler
- SiteReplicationDevNull
- SiteReplicationNetPerf
- TraceHandler

For these handlers adminMiddleware does not check for the object layer
presence (disabled by passing the `noObjLayerFlag`), and for all other
handlers, the pre-check ensures that the handler is not called when the
object layer is not available - the client would get a
ErrServerNotInitialized and can retry later.

This `noObjLayerFlag` is added based on existing behavior for these
handlers only.
2023-07-13 14:52:21 -07:00
..
testdata Do not use inline data size in xl.meta quorum calculation (#14831) 2022-05-24 06:26:38 -07:00
acl-handlers.go xmlDecoder err use ErrMalformedXML when PutBucketACLHandler (#17185) 2023-05-11 11:11:15 -07:00
admin-bucket-handlers.go Send AuditLog via new middleware fn for admin APIs (#17632) 2023-07-13 14:52:21 -07:00
admin-handler-utils.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
admin-handlers-config-kv.go Send AuditLog via new middleware fn for admin APIs (#17632) 2023-07-13 14:52:21 -07:00
admin-handlers-idp-config.go Send AuditLog via new middleware fn for admin APIs (#17632) 2023-07-13 14:52:21 -07:00
admin-handlers-idp-ldap.go Send AuditLog via new middleware fn for admin APIs (#17632) 2023-07-13 14:52:21 -07:00
admin-handlers-pools.go Send AuditLog via new middleware fn for admin APIs (#17632) 2023-07-13 14:52:21 -07:00
admin-handlers-site-replication.go Send AuditLog via new middleware fn for admin APIs (#17632) 2023-07-13 14:52:21 -07:00
admin-handlers-users-race_test.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
admin-handlers-users.go Send AuditLog via new middleware fn for admin APIs (#17632) 2023-07-13 14:52:21 -07:00
admin-handlers-users_test.go chore: pkg imported more than once (#17444) 2023-06-26 09:21:29 -07:00
admin-handlers.go Send AuditLog via new middleware fn for admin APIs (#17632) 2023-07-13 14:52:21 -07:00
admin-handlers_test.go fix: A typo in per pool make/delete bucket errs calculation (#17553) 2023-07-03 09:47:40 -07:00
admin-heal-ops.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
admin-router.go Send AuditLog via new middleware fn for admin APIs (#17632) 2023-07-13 14:52:21 -07:00
admin-server-info.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
api-datatypes.go fix: audit log to support object names in multipleObjectNames() handler (#14017) 2022-01-03 01:28:52 -08:00
api-errors.go replication: add validation API (#17520) 2023-07-10 20:09:20 -07:00
api-errors_test.go allow quorum fileInfo to pick same parityBlocks (#17454) 2023-06-18 18:20:15 -07:00
api-headers.go Reduce allocations (#17584) 2023-07-06 16:02:08 -07:00
api-headers_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
api-resources.go allow prefix/markers to have '/' in the beginning to throw an empty (#17373) 2023-06-07 11:25:26 -07:00
api-resources_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00
api-response.go Reduce allocations (#17584) 2023-07-06 16:02:08 -07:00
api-response_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00
api-router.go replication: add validation API (#17520) 2023-07-10 20:09:20 -07:00
api-utils.go cleanup ignored static analysis (#16767) 2023-03-06 08:56:10 -08:00
api-utils_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
apierrorcode_string.go replication: add validation API (#17520) 2023-07-10 20:09:20 -07:00
auth-handler.go fix: set request ID in tracing context key (#17602) 2023-07-08 07:31:42 -07:00
auth-handler_test.go allow root user to be disabled via config settings (#17089) 2023-04-28 12:24:14 -07:00
authtype_string.go Signed trailers for signature v4 (#16484) 2023-05-05 19:53:12 -07:00
background-heal-ops.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
background-newdisks-heal-ops.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
background-newdisks-heal-ops_gen.go fix: heal only once per disk per set among multiple disks (#16358) 2023-01-05 20:41:19 -08:00
background-newdisks-heal-ops_gen_test.go Support for remote tier management (#12090) 2021-04-23 11:58:53 -07:00
batch-handlers.go Send AuditLog via new middleware fn for admin APIs (#17632) 2023-07-13 14:52:21 -07:00
batch-handlers_gen.go allow specification of path/virtual style bucket lookup in batch replication (#17201) 2023-05-21 15:16:31 -07:00
batch-handlers_gen_test.go feat: implement support batch replication (#15554) 2022-10-05 23:00:43 -07:00
batch-rotate.go Reduce allocations (#17584) 2023-07-06 16:02:08 -07:00
batch-rotate_gen.go Add support for batch key rotation (#16844) 2023-04-04 10:56:54 -07:00
batch-rotate_gen_test.go Add support for batch key rotation (#16844) 2023-04-04 10:56:54 -07:00
batchjobmetric_string.go Add support for batch key rotation (#16844) 2023-04-04 10:56:54 -07:00
benchmark-utils_test.go avoid locks for internal and invalid buckets in MakeBucket() (#16302) 2022-12-23 07:46:00 -08:00
bitrot-streaming.go Fix style of logOnceIf calls w/unique identifiers (#17631) 2023-07-11 13:17:45 -07:00
bitrot-whole.go Replaces 'disk'=>'drive' visible to end user (#15464) 2022-08-04 16:10:08 -07:00
bitrot.go use crypto/sha256 only for FIPS 140-2 compliance (#14983) 2022-05-27 06:00:19 -07:00
bitrot_test.go test: use `T.TempDir` to create temporary test directory (#15400) 2022-07-25 12:37:26 -07:00
bootstrap-messages.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
bootstrap-messages_test.go trace: Bootstrap to show the correct source line number (#16989) 2023-04-06 17:51:53 -07:00
bootstrap-peer-server.go prometheus: Fix internode stats (#17594) 2023-07-08 07:35:11 -07:00
bucket-encryption-handlers.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
bucket-encryption.go remove gateway completely (#15929) 2022-10-24 17:44:15 -07:00
bucket-encryption_test.go sse: add support for SSE-KMS bucket configurations (#12295) 2021-05-14 00:59:05 -07:00
bucket-handlers.go Avoid extra GetObjectInfo call in DeleteObject API (#17599) 2023-07-10 07:57:56 -07:00
bucket-handlers_test.go Remove 'null' version ID from directory object response (#17495) 2023-06-23 13:26:00 -07:00
bucket-lifecycle-audit.go Add lifecycle event source to audit log tags (#17248) 2023-05-22 15:28:56 -07:00
bucket-lifecycle-handlers.go Add updatedAt for GetBucketLifecycleConfig (#17271) 2023-05-24 22:52:39 -07:00
bucket-lifecycle-handlers_test.go more compliance related fixes (#17408) 2023-06-13 13:52:33 -07:00
bucket-lifecycle.go Reduce allocations (#17584) 2023-07-06 16:02:08 -07:00
bucket-lifecycle_test.go fix: for unexpected errors in reading versioning config panic (#14994) 2022-05-31 02:57:57 -07:00
bucket-listobjects-handlers.go remove delimiter if not set by client, also fetchOwner is optional (#17366) 2023-06-06 21:31:47 -07:00
bucket-metadata-sys.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
bucket-metadata.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
bucket-metadata_gen.go Add updatedAt for GetBucketLifecycleConfig (#17271) 2023-05-24 22:52:39 -07:00
bucket-metadata_gen_test.go Support for remote tier management (#12090) 2021-04-23 11:58:53 -07:00
bucket-notification-handlers.go migrate to minio/mux from gorilla/mux (#16456) 2023-01-23 16:42:47 +05:30
bucket-object-lock.go Avoid extra GetObjectInfo call in DeleteObject API (#17599) 2023-07-10 07:57:56 -07:00
bucket-policy-handlers.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
bucket-policy-handlers_test.go avoid locks for internal and invalid buckets in MakeBucket() (#16302) 2022-12-23 07:46:00 -08:00
bucket-policy.go fix: username replacements for aws:username must use parentUser (#16591) 2023-02-10 06:52:31 -08:00
bucket-quota.go Further print log messages once per error (#17618) 2023-07-10 07:59:57 -07:00
bucket-replication-handlers.go replication: add validation API (#17520) 2023-07-10 20:09:20 -07:00
bucket-replication-stats.go replication: clone metrics while loading metrics cache (#16462) 2023-01-24 02:10:32 -08:00
bucket-replication-utils.go replication: Simplify mrf requeueing and add backlog handler (#17171) 2023-07-12 23:51:33 -07:00
bucket-replication-utils_gen.go replication: Simplify mrf requeueing and add backlog handler (#17171) 2023-07-12 23:51:33 -07:00
bucket-replication-utils_gen_test.go replication: improve MRF healing. (#15556) 2022-08-22 16:53:06 -07:00
bucket-replication-utils_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
bucket-replication.go replication: Simplify mrf requeueing and add backlog handler (#17171) 2023-07-12 23:51:33 -07:00
bucket-replication_test.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
bucket-stats.go Fix bandwidth monitoring to be per remote target (#16360) 2023-01-19 18:52:16 +05:30
bucket-stats_gen.go Fix bandwidth monitoring to be per remote target (#16360) 2023-01-19 18:52:16 +05:30
bucket-stats_gen_test.go fetch bucket replication stats across peers in single call (#14956) 2022-05-23 09:15:30 -07:00
bucket-targets.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
bucket-versioning-handler.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
bucket-versioning.go remove gateway completely (#15929) 2022-10-24 17:44:15 -07:00
build-constants.go update '-v' flag behavior to include copyRight and license (#15097) 2022-06-16 16:10:48 -07:00
callhome.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
common-main.go fix: upon DNS refresh() failure use previous values (#17561) 2023-07-03 12:30:51 -07:00
common-main_test.go Remove deprecated io/ioutil (#15707) 2022-09-19 11:05:16 -07:00
config-common.go fix: inlined objects don't need to honor long locks (#17039) 2023-04-17 12:16:37 -07:00
config-current.go Honor global root CAs for kafka audit tls (#17481) 2023-06-21 10:50:40 -07:00
config-current_test.go Avoid config migration on every startup (#16278) 2022-12-19 11:10:14 -08:00
config-dir.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
config-encrypted_test.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
config-migrate.go fix: remove active healing on .minio.sys/ during startup (#17072) 2023-04-29 02:05:28 -07:00
config-migrate_test.go avoid attempting to migrate old configs (#17004) 2023-04-21 13:56:08 -07:00
config-versions.go avoid attempting to migrate old configs (#17004) 2023-04-21 13:56:08 -07:00
config.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
consolelogger.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
copy-part-range.go feat: Deprecate embedded browser and import console (#12460) 2021-06-17 20:27:04 -07:00
copy-part-range_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00
crossdomain-xml-handler.go fix: set request ID in tracing context key (#17602) 2023-07-08 07:31:42 -07:00
crossdomain-xml-handler_test.go fix: set request ID in tracing context key (#17602) 2023-07-08 07:31:42 -07:00
data-scanner-metric.go update missing license header in files (#17603) 2023-07-08 10:42:05 -07:00
data-scanner.go replication: Simplify mrf requeueing and add backlog handler (#17171) 2023-07-12 23:51:33 -07:00
data-usage-cache.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
data-usage-cache_gen.go Add Object Version count histogram (#16739) 2023-03-10 08:53:59 -08:00
data-usage-cache_gen_test.go Add Object Version count histogram (#16739) 2023-03-10 08:53:59 -08:00
data-usage-utils.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
data-usage.go change directory objects to never create new versions (#17109) 2023-05-02 16:09:33 -07:00
data-usage_test.go Remove deprecated io/ioutil (#15707) 2022-09-19 11:05:16 -07:00
decommetric_string.go Add trace support for decommissioning (#15502) 2022-08-10 12:46:45 -07:00
disk-cache-backend.go debug: Add X-Amz-Request-ID to lock/unlock calls (#16309) 2022-12-23 19:49:07 -08:00
disk-cache-check-support_contrib_windows.go Remove deprecated io/ioutil (#15707) 2022-09-19 11:05:16 -07:00
disk-cache-check-support_other.go Remove deprecated io/ioutil (#15707) 2022-09-19 11:05:16 -07:00
disk-cache-stats.go update license change for MinIO 2021-04-23 11:58:53 -07:00
disk-cache-utils.go etag: add `Format` and `Decrypt` functions (#14659) 2022-04-03 13:29:13 -07:00
disk-cache-utils_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
disk-cache.go Reduce allocations (#17584) 2023-07-06 16:02:08 -07:00
disk-cache_test.go Avoid cache GC of writebacks before commit syncs (#13860) 2021-12-08 14:52:31 -08:00
dummy-data-generator_test.go Remove deprecated io/ioutil (#15707) 2022-09-19 11:05:16 -07:00
dummy-handlers.go migrate to minio/mux from gorilla/mux (#16456) 2023-01-23 16:42:47 +05:30
dynamic-timeouts.go change default lock retry interval to 50ms (#15560) 2022-08-19 16:21:05 -07:00
dynamic-timeouts_test.go Revert "Revert "tests: Add context cancelation (#15374)"" 2022-10-14 03:08:40 -07:00
encryption-v1.go only allow decryption of etag for only sse-s3 (#17335) 2023-06-05 13:08:51 -07:00
encryption-v1_test.go validate correct ETag for the parts sent during CompleteMultipart (#15751) 2022-09-23 21:17:08 -07:00
endpoint-ellipses.go s3: Make/Delete buckets to use error quorum per pool (#17467) 2023-06-23 11:48:23 -07:00
endpoint-ellipses_test.go allow support for parity '0', '1' enabling support for 2,3 drive setups (#15171) 2022-06-27 20:22:18 -07:00
endpoint.go s3: Make/Delete buckets to use error quorum per pool (#17467) 2023-06-23 11:48:23 -07:00
endpoint_contrib_test.go Revert "deprecate embedded browser (#12163)" 2021-04-30 08:50:39 -07:00
endpoint_test.go fix: A typo in per pool make/delete bucket errs calculation (#17553) 2023-07-03 09:47:40 -07:00
erasure-coding.go feat: Single drive XL implementation (#14970) 2022-05-30 10:58:37 -07:00
erasure-common.go Use 'minio/pkg/sync/errgroup' and 'minio/pkg/workers' (#17069) 2023-04-25 22:57:40 -07:00
erasure-decode.go Print certain log messages once per error (#17484) 2023-06-24 20:29:13 -07:00
erasure-decode_test.go test: use `T.TempDir` to create temporary test directory (#15400) 2022-07-25 12:37:26 -07:00
erasure-encode.go Add number of offline disks in quorum errors (#16822) 2023-05-25 09:39:06 -07:00
erasure-encode_test.go Remove bloom filter (#16682) 2023-02-24 09:03:31 +05:30
erasure-errors.go Replaces 'disk'=>'drive' visible to end user (#15464) 2022-08-04 16:10:08 -07:00
erasure-heal_test.go Replaces 'disk'=>'drive' visible to end user (#15464) 2022-08-04 16:10:08 -07:00
erasure-healing-common.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
erasure-healing-common_test.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
erasure-healing.go Print certain log messages once per error (#17484) 2023-06-24 20:29:13 -07:00
erasure-healing_test.go fix: A typo in per pool make/delete bucket errs calculation (#17553) 2023-07-03 09:47:40 -07:00
erasure-metadata-utils.go Use 'minio/pkg/sync/errgroup' and 'minio/pkg/workers' (#17069) 2023-04-25 22:57:40 -07:00
erasure-metadata-utils_test.go fix: A typo in per pool make/delete bucket errs calculation (#17553) 2023-07-03 09:47:40 -07:00
erasure-metadata.go treat 0-byte objects to honor same quorum as delete marker (#17633) 2023-07-11 21:53:49 -07:00
erasure-metadata_test.go fallback on etags if they match when mtime is not same (#17424) 2023-06-17 19:18:20 -07:00
erasure-multipart.go fix: do not listAndHeal() inline with PutObject() (#17499) 2023-06-24 19:31:04 -07:00
erasure-object.go treat 0-byte objects to honor same quorum as delete marker (#17633) 2023-07-11 21:53:49 -07:00
erasure-object_test.go fix: A typo in per pool make/delete bucket errs calculation (#17553) 2023-07-03 09:47:40 -07:00
erasure-server-pool-decom.go fix: allow cancel of decom only when its in progress (#17607) 2023-07-10 07:55:38 -07:00
erasure-server-pool-decom_gen.go decom IAM, Bucket metadata properly (#15220) 2022-07-04 14:02:54 -07:00
erasure-server-pool-decom_gen_test.go fix: simplify usage calculation and progress (#14086) 2022-01-11 18:48:43 -08:00
erasure-server-pool-decom_test.go fix: A typo in per pool make/delete bucket errs calculation (#17553) 2023-07-03 09:47:40 -07:00
erasure-server-pool-rebalance.go under rebalance look for expired versions v/s remaining versions (#17482) 2023-06-21 13:23:20 -07:00
erasure-server-pool-rebalance_gen.go feat: introduce pool-level rebalance (#15483) 2022-10-25 12:36:57 -07:00
erasure-server-pool-rebalance_gen_test.go feat: introduce pool-level rebalance (#15483) 2022-10-25 12:36:57 -07:00
erasure-server-pool.go Fix style of logOnceIf calls w/unique identifiers (#17631) 2023-07-11 13:17:45 -07:00
erasure-sets.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
erasure-sets_test.go fix: A typo in per pool make/delete bucket errs calculation (#17553) 2023-07-03 09:47:40 -07:00
erasure-utils.go fix: parsing multipart uploadID under site replicated setup (#16048) 2022-11-10 16:17:45 -08:00
erasure.go Fix style of logOnceIf calls w/unique identifiers (#17631) 2023-07-11 13:17:45 -07:00
erasure_test.go test: use `T.TempDir` to create temporary test directory (#15400) 2022-07-25 12:37:26 -07:00
etcd.go Print certain log messages once per error (#17484) 2023-06-24 20:29:13 -07:00
event-notification.go Reduce allocations (#17584) 2023-07-06 16:02:08 -07:00
format-disk-cache.go fix: in disk cache readCacheFileStream should closed upon return (#16138) 2022-12-04 02:28:10 -08:00
format-disk-cache_test.go upgrade golang-lint to the latest (#15600) 2022-08-26 12:52:29 -07:00
format-erasure.go Use 'minio/pkg/sync/errgroup' and 'minio/pkg/workers' (#17069) 2023-04-25 22:57:40 -07:00
format-erasure_test.go Add active disk health checks (#17539) 2023-07-13 11:41:55 -07:00
format-meta.go update license change for MinIO 2021-04-23 11:58:53 -07:00
format_string.go Support for remote tier management (#12090) 2021-04-23 11:58:53 -07:00
ftp-server-driver.go fix: for FTP server driver allow implicit trust of TLS (#17541) 2023-06-30 08:04:13 -07:00
ftp-server.go Use os.ReadFile instead of ioutil.ReadFile (#17649) 2023-07-13 09:07:10 -07:00
generic-handlers.go fix: set request ID in tracing context key (#17602) 2023-07-08 07:31:42 -07:00
generic-handlers_contrib.go Revert "deprecate embedded browser (#12163)" 2021-04-30 08:50:39 -07:00
generic-handlers_test.go fix: set request ID in tracing context key (#17602) 2023-07-08 07:31:42 -07:00
global-heal.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
globals.go fear: Implement 'mc support top net' (#17598) 2023-07-13 11:41:19 -07:00
handler-api.go Add an option to make bucket notifications synchronous (#17406) 2023-06-20 17:38:59 -07:00
handler-utils.go prometheus: Fix internode stats (#17594) 2023-07-08 07:35:11 -07:00
handler-utils_test.go fix: reduce using memory and temporary files. (#17206) 2023-05-15 14:08:54 -07:00
hasher.go use crypto/sha256 only for FIPS 140-2 compliance (#14983) 2022-05-27 06:00:19 -07:00
healingmetric_string.go Check for abandoned data when healing (#16122) 2022-11-28 10:20:55 -08:00
healthcheck-handler.go disallow EC:0 if not set during server startup (#17141) 2023-05-04 14:44:30 -07:00
healthcheck-router.go migrate to minio/mux from gorilla/mux (#16456) 2023-01-23 16:42:47 +05:30
http-stats.go move per bucket metrics to peer location (#17627) 2023-07-11 07:46:24 -07:00
http-tracer.go Fix: set request id in trace context properly (#17622) 2023-07-10 15:40:44 -07:00
http-tracer_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
httprange.go fix: consistent replies for incorrect range requests on replicated buckets (#14345) 2022-03-08 13:58:55 -08:00
httprange_test.go fix: consistent replies for incorrect range requests on replicated buckets (#14345) 2022-03-08 13:58:55 -08:00
iam-etcd-store.go Add "name" and "description" params to service acc (#17172) 2023-05-17 17:05:36 -07:00
iam-etcd-store_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00
iam-object-store.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
iam-store.go fix: service account list for root user (#17547) 2023-06-30 08:02:12 -07:00
iam.go Fix locking in policy attach API (#17426) 2023-06-21 22:44:50 -07:00
jwt.go allow root user to be disabled via config settings (#17089) 2023-04-28 12:24:14 -07:00
jwt_test.go allow root user to be disabled via config settings (#17089) 2023-04-28 12:24:14 -07:00
kms-handlers.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
kms-router.go migrate to minio/mux from gorilla/mux (#16456) 2023-01-23 16:42:47 +05:30
last-minute.go Do lockless last minute latency metrics (#17576) 2023-07-05 10:40:45 -07:00
last-minute_gen.go Add detailed scanner metrics (#15161) 2022-07-05 14:45:49 -07:00
last-minute_gen_test.go Add detailed scanner metrics (#15161) 2022-07-05 14:45:49 -07:00
lceventsrc_string.go Add lifecycle event source to audit log tags (#17248) 2023-05-22 15:28:56 -07:00
leak-detect_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00
license-update.go Add monthly license update job (#16391) 2023-01-17 05:08:15 +05:30
listen-notification-handlers.go allow quorum fileInfo to pick same parityBlocks (#17454) 2023-06-18 18:20:15 -07:00
local-locker.go add lock metrics per node (#16943) 2023-04-03 21:23:24 -07:00
local-locker_test.go cleanup Go linter settings (#16736) 2023-03-04 20:57:35 -08:00
lock-rest-client.go allow quota enforcement to rely on older values (#17351) 2023-06-05 16:56:35 -07:00
lock-rest-client_test.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
lock-rest-server-common.go internode lockArgs should use messagepack (#13329) 2021-09-30 11:53:01 -07:00
lock-rest-server-common_test.go Revert "Make localLocker lock attempts cancellable (#16510)" (#16884) 2023-03-23 10:26:21 -07:00
lock-rest-server.go prometheus: Fix internode stats (#17594) 2023-07-08 07:35:11 -07:00
lock-rest-server_test.go Remove deprecated io/ioutil (#15707) 2022-09-19 11:05:16 -07:00
main.go add a message of removal for gateway and hide the command (#15965) 2022-10-28 14:11:20 -07:00
metacache-bucket.go converge SNSD deployments into single code (#15988) 2022-11-01 16:41:01 -07:00
metacache-bucket_test.go askDisks for strict quorum to be equal to read quorum (#14623) 2022-03-25 16:29:45 -07:00
metacache-entries.go change directory objects to never create new versions (#17109) 2023-05-02 16:09:33 -07:00
metacache-entries_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
metacache-manager.go remove gateway completely (#15929) 2022-10-24 17:44:15 -07:00
metacache-marker.go Run staticcheck on CI (#16170) 2022-12-05 11:18:50 -08:00
metacache-server-pool.go replication: Simplify mrf requeueing and add backlog handler (#17171) 2023-07-12 23:51:33 -07:00
metacache-set.go reduce 250ms to 50ms retry looking for metacache block (#16795) 2023-03-17 14:44:01 -07:00
metacache-stream.go Reduce allocations (#17584) 2023-07-06 16:02:08 -07:00
metacache-stream_test.go Remove deprecated io/ioutil (#15707) 2022-09-19 11:05:16 -07:00
metacache-walk.go Print certain log messages once per error (#17484) 2023-06-24 20:29:13 -07:00
metacache.go converge SNSD deployments into single code (#15988) 2022-11-01 16:41:01 -07:00
metacache_gen.go re-arrange metacache struct to be optimal (#13609) 2021-11-08 10:26:08 -08:00
metacache_gen_test.go Support for remote tier management (#12090) 2021-04-23 11:58:53 -07:00
metacache_test.go Stop async listing earlier (#13160) 2021-09-08 11:06:45 -07:00
metrics-realtime.go fear: Implement 'mc support top net' (#17598) 2023-07-13 11:41:19 -07:00
metrics-router.go migrate to minio/mux from gorilla/mux (#16456) 2023-01-23 16:42:47 +05:30
metrics-v2.go move per bucket metrics to peer location (#17627) 2023-07-11 07:46:24 -07:00
metrics.go prometheus: Fix internode stats (#17594) 2023-07-08 07:35:11 -07:00
mrf.go fix: do not listAndHeal() inline with PutObject() (#17499) 2023-06-24 19:31:04 -07:00
namespace-lock.go allow quota enforcement to rely on older values (#17351) 2023-06-05 16:56:35 -07:00
namespace-lock_test.go Support for remote tier management (#12090) 2021-04-23 11:58:53 -07:00
naughty-disk_test.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
net.go add configurable VRF interface and user-timeout (#17108) 2023-05-03 14:12:25 -07:00
net_test.go add configurable VRF interface and user-timeout (#17108) 2023-05-03 14:12:25 -07:00
notification-summary.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
notification.go replication: Simplify mrf requeueing and add backlog handler (#17171) 2023-07-12 23:51:33 -07:00
object-api-common.go Add active disk health checks (#17539) 2023-07-13 11:41:55 -07:00
object-api-datatypes.go Avoid extra GetObjectInfo call in DeleteObject API (#17599) 2023-07-10 07:57:56 -07:00
object-api-deleteobject_test.go avoid locks for internal and invalid buckets in MakeBucket() (#16302) 2022-12-23 07:46:00 -08:00
object-api-errors.go replication: add validation API (#17520) 2023-07-10 20:09:20 -07:00
object-api-getobjectinfo_test.go avoid locks for internal and invalid buckets in MakeBucket() (#16302) 2022-12-23 07:46:00 -08:00
object-api-input-checks.go fix: avoid URL unsafe chars in multipart upload ID (#16034) 2022-11-09 16:41:16 -08:00
object-api-interface.go Avoid extra GetObjectInfo call in DeleteObject API (#17599) 2023-07-10 07:57:56 -07:00
object-api-listobjects_test.go fix: A typo in per pool make/delete bucket errs calculation (#17553) 2023-07-03 09:47:40 -07:00
object-api-multipart_test.go Signed trailers for signature v4 (#16484) 2023-05-05 19:53:12 -07:00
object-api-options.go Add PostObject Checksum (#17244) 2023-05-23 07:58:33 -07:00
object-api-putobject_test.go Signed trailers for signature v4 (#16484) 2023-05-05 19:53:12 -07:00
object-api-utils.go Fix hasSpaceFor in SNSD setup (#17630) 2023-07-11 14:29:34 -07:00
object-api-utils_test.go Reduce allocations in Walkdir (#17036) 2023-04-15 10:25:25 -07:00
object-handlers-common.go more compliance related fixes (#17408) 2023-06-13 13:52:33 -07:00
object-handlers-common_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
object-handlers.go replication: Simplify mrf requeueing and add backlog handler (#17171) 2023-07-12 23:51:33 -07:00
object-handlers_test.go Stricter partNumber checks (#17270) 2023-05-24 08:00:47 -07:00
object-lambda-handlers.go Reduce allocations (#17584) 2023-07-06 16:02:08 -07:00
object-multipart-handlers.go fix: handle copyObjectPart encryption properly (#17530) 2023-06-28 09:43:50 -07:00
object_api_suite_test.go avoid locks for internal and invalid buckets in MakeBucket() (#16302) 2022-12-23 07:46:00 -08:00
os-dirent_fileino.go fix: enable go1.17 github ci/cd (#12997) 2021-08-18 18:35:22 -07:00
os-dirent_ino.go fix: enable go1.17 github ci/cd (#12997) 2021-08-18 18:35:22 -07:00
os-dirent_namelen_bsd.go fix: enable go1.17 github ci/cd (#12997) 2021-08-18 18:35:22 -07:00
os-dirent_namelen_linux.go fix: enable go1.17 github ci/cd (#12997) 2021-08-18 18:35:22 -07:00
os-instrumented.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
os-readdir-common.go Add option in readDir to enable symlink following of dirs (#12668) 2021-07-09 16:20:51 -07:00
os-readdir_test.go Remove deprecated io/ioutil (#15707) 2022-09-19 11:05:16 -07:00
os-reliable.go fix: fork os.MkdirAll to optimize cases where parent exists (#15379) 2022-07-24 00:43:11 -07:00
os-reliable_test.go test: use `T.TempDir` to create temporary test directory (#15400) 2022-07-25 12:37:26 -07:00
os_other.go fix: syscall to record time on non-linux (#17383) 2023-06-13 11:04:50 -07:00
os_unix.go fix: time() returned function not being called as expected in globalSync() (#17319) 2023-05-31 09:40:23 -07:00
os_windows.go fix: on windows use FindClose close handler (#17306) 2023-05-30 02:15:57 -07:00
osmetric_string.go fix: intrument os.OpenFile differently for Reads and Writes (#15449) 2022-08-01 13:22:43 -07:00
peer-rest-client.go replication: Simplify mrf requeueing and add backlog handler (#17171) 2023-07-12 23:51:33 -07:00
peer-rest-common.go replication: Simplify mrf requeueing and add backlog handler (#17171) 2023-07-12 23:51:33 -07:00
peer-rest-server.go replication: Simplify mrf requeueing and add backlog handler (#17171) 2023-07-12 23:51:33 -07:00
peer-s3-client.go fix: A typo in per pool make/delete bucket errs calculation (#17553) 2023-07-03 09:47:40 -07:00
peer-s3-server.go prometheus: Fix internode stats (#17594) 2023-07-08 07:35:11 -07:00
perf-tests.go feat: support perf site replication (#17477) 2023-07-05 22:28:26 -07:00
policy_test.go do not remove Sid from svcaccount policies (#14064) 2022-01-10 14:26:26 -08:00
post-policy-fan-out.go fix: under FanOut API avoid repeated md5sum calculation (#17572) 2023-07-05 03:16:05 -07:00
post-policy_test.go Add test for fixed post policy exploit (#16855) 2023-03-20 01:06:45 -07:00
postpolicyform.go add gocritic/ruleguard checks back again, cleanup code. (#13665) 2021-11-16 09:28:29 -08:00
postpolicyform_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00
prepare-storage.go fix: in printEndpointError count error once per init() (#17193) 2023-05-12 10:41:54 -07:00
rebalance-admin.go Check pool-index for invalid setups (#16501) 2023-01-30 18:33:07 +05:30
rebalancemetric_string.go feat: introduce pool-level rebalance (#15483) 2022-10-25 12:36:57 -07:00
rebalstatus_string.go feat: introduce pool-level rebalance (#15483) 2022-10-25 12:36:57 -07:00
routers.go fix: set request ID in tracing context key (#17602) 2023-07-08 07:31:42 -07:00
s3-zip-handlers.go Avoid extra GetObjectInfo call in DeleteObject API (#17599) 2023-07-10 07:57:56 -07:00
scannermetric_string.go Run staticcheck on CI (#16170) 2022-12-05 11:18:50 -08:00
server-main.go fear: Implement 'mc support top net' (#17598) 2023-07-13 11:41:19 -07:00
server-main_test.go fix: A typo in per pool make/delete bucket errs calculation (#17553) 2023-07-03 09:47:40 -07:00
server-rlimit.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
server-startup-msg.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
server-startup-msg_test.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
server_test.go remove delimiter if not set by client, also fetchOwner is optional (#17366) 2023-06-06 21:31:47 -07:00
service.go support 'mc admin service restart' for windows (#16512) 2023-02-01 17:31:46 +05:30
setup-type.go remove gateway completely (#15929) 2022-10-24 17:44:15 -07:00
sftp-server-driver.go fix: for FTP server driver allow implicit trust of TLS (#17541) 2023-06-30 08:04:13 -07:00
shared-lock.go fix: allow global leader lock context merge to be canceled (#16603) 2023-02-13 01:26:38 -08:00
signals.go fix: do not os.Exit(1) while writing goroutines during shutdown (#17640) 2023-07-12 07:18:30 -07:00
signature-v2.go upgrade golang-lint to the latest (#15600) 2022-08-26 12:52:29 -07:00
signature-v2_test.go Revert "Revert "tests: Add context cancelation (#15374)"" 2022-10-14 03:08:40 -07:00
signature-v4-parser.go cleanup ignored static analysis (#16767) 2023-03-06 08:56:10 -08:00
signature-v4-parser_test.go cleanup ignored static analysis (#16767) 2023-03-06 08:56:10 -08:00
signature-v4-utils.go use slices package and remove some helpers (#17342) 2023-06-06 10:12:52 -07:00
signature-v4-utils_test.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
signature-v4.go Reduce allocations (#17584) 2023-07-06 16:02:08 -07:00
signature-v4_test.go Revert "Revert "tests: Add context cancelation (#15374)"" 2022-10-14 03:08:40 -07:00
site-replication-utils.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
site-replication-utils_gen.go feat: Add support for site level resync (#15753) 2022-11-14 07:16:40 -08:00
site-replication-utils_gen_test.go feat: Add support for site level resync (#15753) 2022-11-14 07:16:40 -08:00
site-replication.go feat: support perf site replication (#17477) 2023-07-05 22:28:26 -07:00
site-replication_test.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
speedtest.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
storage-datatypes.go allow quorum fileInfo to pick same parityBlocks (#17454) 2023-06-18 18:20:15 -07:00
storage-datatypes_gen.go fix: encrypt checksums in metadata (#15620) 2022-08-31 08:13:23 -07:00
storage-datatypes_gen_test.go Independent Multipart Uploads (#15346) 2022-07-19 08:35:29 -07:00
storage-datatypes_test.go Remove deprecated io/ioutil (#15707) 2022-09-19 11:05:16 -07:00
storage-errors.go Do not return an error when version disparity is detected (#16269) 2022-12-16 08:52:12 -08:00
storage-interface.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
storage-rest-client.go use strconv variants to improve on performance per 'op' (#17626) 2023-07-11 07:46:58 -07:00
storage-rest-common.go Check for abandoned data when healing (#16122) 2022-11-28 10:20:55 -08:00
storage-rest-server.go Add active disk health checks (#17539) 2023-07-13 11:41:55 -07:00
storage-rest_test.go migrate to minio/mux from gorilla/mux (#16456) 2023-01-23 16:42:47 +05:30
storagemetric_string.go trace: Publish storage layer errors (#16153) 2022-12-01 12:10:54 -08:00
streaming-signature-v4.go chore: fix minor issues reported via staticcheck (#17639) 2023-07-12 20:33:11 -07:00
streaming-signature-v4_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00
streaming-v4-unsigned.go Signed trailers for signature v4 (#16484) 2023-05-05 19:53:12 -07:00
sts-datatypes.go Add support for Identity Management Plugin (#14913) 2022-05-26 17:58:09 -07:00
sts-errors.go assumeRole return the correct http code for auth errors (#16967) 2023-04-05 22:19:31 -07:00
sts-handlers.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
sts-handlers_test.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
stserrorcode_string.go Add support for Identity Management Plugin (#14913) 2022-05-26 17:58:09 -07:00
test-utils_test.go fix: set request ID in tracing context key (#17602) 2023-07-08 07:31:42 -07:00
tier-handlers.go Send AuditLog via new middleware fn for admin APIs (#17632) 2023-07-13 14:52:21 -07:00
tier-journal.go Reduce allocations (#17584) 2023-07-06 16:02:08 -07:00
tier-journal_gen.go [Tiering] Support remote tiers with object versioning (#12342) 2021-06-03 14:26:51 -07:00
tier-journal_gen_test.go [Tiering] Support remote tiers with object versioning (#12342) 2021-06-03 14:26:51 -07:00
tier-journal_test.go [Tiering] Support remote tiers with object versioning (#12342) 2021-06-03 14:26:51 -07:00
tier-last-day-stats.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
tier-mem-journal.go Add a 'free' version to track deletion of tiered object content (#12470) 2021-06-30 19:32:07 -07:00
tier-sweeper.go upgrade golang-lint to the latest (#15600) 2022-08-26 12:52:29 -07:00
tier.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
tier_gen.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
tier_gen_test.go Support for remote tier management (#12090) 2021-04-23 11:58:53 -07:00
typed-errors.go Remove older policy attach behavior for LDAP (#17240) 2023-05-26 06:31:24 -07:00
untar.go snowball: Restrict zstd window size (#16987) 2023-04-06 17:47:38 -07:00
update-notifier.go improve logs, fix banner formatting (#14456) 2022-03-03 13:21:16 -08:00
update-notifier_test.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
update.go fix: upon DNS refresh() failure use previous values (#17561) 2023-07-03 12:30:51 -07:00
update_fips.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
update_nofips.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
update_test.go cleanup ignored static analysis (#16767) 2023-03-06 08:56:10 -08:00
url_test.go add gocritic/ruleguard checks back again, cleanup code. (#13665) 2021-11-16 09:28:29 -08:00
utils.go replication: add validation API (#17520) 2023-07-10 20:09:20 -07:00
utils_test.go use slices package and remove some helpers (#17342) 2023-06-06 10:12:52 -07:00
veeam-sos-api.go allow lookup()/head() operations on Veeam SOS objects (#17331) 2023-06-01 15:26:26 -07:00
version_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00
warm-backend-azure.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
warm-backend-gcs.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
warm-backend-minio.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
warm-backend-s3.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
warm-backend.go Bump up madmin-go and pkg deps (#17469) 2023-06-19 17:53:08 -07:00
xl-storage-disk-id-check.go Add active disk health checks (#17539) 2023-07-13 11:41:55 -07:00
xl-storage-errors.go fix: handle syscall.EROFS also for osIsPermission() (#16765) 2023-03-06 08:56:29 -08:00
xl-storage-errors_test.go update license change for MinIO 2021-04-23 11:58:53 -07:00
xl-storage-format-utils.go Fix DeleteObject when only free versions remain (#16289) 2022-12-21 16:24:07 -08:00
xl-storage-format-utils_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
xl-storage-format-v1.go allow quorum fileInfo to pick same parityBlocks (#17454) 2023-06-18 18:20:15 -07:00
xl-storage-format-v1_gen.go fix: add healing metric type for heal tracing (#15631) 2022-08-31 12:28:03 -07:00
xl-storage-format-v1_gen_test.go Support for remote tier management (#12090) 2021-04-23 11:58:53 -07:00
xl-storage-format-v2-legacy.go fix: inconsistent replication delete marker timestamps (#15956) 2022-10-27 09:46:52 -07:00
xl-storage-format-v2.go fix: set time format right (#17402) 2023-06-14 07:49:13 -07:00
xl-storage-format-v2_gen.go fix: add healing metric type for heal tracing (#15631) 2022-08-31 12:28:03 -07:00
xl-storage-format-v2_gen_test.go Improve performance on multiple versions (#13573) 2021-11-18 12:15:22 -08:00
xl-storage-format-v2_string.go Improve listing consistency with version merging (#13723) 2021-12-02 11:29:16 -08:00
xl-storage-format-v2_test.go Indicate RenameData is called by healObject (#16997) 2023-04-09 10:25:37 -07:00
xl-storage-format_test.go Fix DeleteObject when only free versions remain (#16289) 2022-12-21 16:24:07 -08:00
xl-storage-free-version.go cleanup ignored static analysis (#16767) 2023-03-06 08:56:10 -08:00
xl-storage-free-version_test.go Fix DeleteObject when only free versions remain (#16289) 2022-12-21 16:24:07 -08:00
xl-storage-meta-inline.go Improve performance on multiple versions (#13573) 2021-11-18 12:15:22 -08:00
xl-storage.go Fix style of logOnceIf calls w/unique identifiers (#17631) 2023-07-11 13:17:45 -07:00
xl-storage_noatime_notsupported.go fix: enable go1.17 github ci/cd (#12997) 2021-08-18 18:35:22 -07:00
xl-storage_noatime_supported.go fix: enable go1.17 github ci/cd (#12997) 2021-08-18 18:35:22 -07:00
xl-storage_test.go Add active disk health checks (#17539) 2023-07-13 11:41:55 -07:00
xl-storage_unix_test.go test: use `T.TempDir` to create temporary test directory (#15400) 2022-07-25 12:37:26 -07:00
xl-storage_windows_test.go test: use `T.TempDir` to create temporary test directory (#15400) 2022-07-25 12:37:26 -07:00