1
0
mirror of https://github.com/minio/minio.git synced 2025-02-21 02:22:29 -05:00
Commit Graph

19 Commits

Author SHA1 Message Date
Harshavardhana
86409fa93d
add audit/admin trace support for browser requests ()
To support this functionality we had to fork
the gorilla/rpc package with relevant changes
2020-11-20 22:52:17 -08:00
Klaus Post
0b1c824618
Fix incorrect request start time ()
Log request start time BEFORE starting processing the request
2020-09-18 09:30:52 -07:00
Harshavardhana
2acb530ccd
update rulesguard with new rules ()
Co-authored-by: Nitish Tiwari <nitish@minio.io>
Co-authored-by: Praveen raj Mani <praveen@minio.io>
2020-09-01 16:58:13 -07:00
Harshavardhana
1e2ebc9945
feat: time to bring back http2.0 support ()
Bonus move our CI/CD to go1.14
2020-08-10 09:02:29 -07:00
Harshavardhana
4915433bd2
Support bucket versioning ()
- Implement a new xl.json 2.0.0 format to support,
  this moves the entire marshaling logic to POSIX
  layer, top layer always consumes a common FileInfo
  construct which simplifies the metadata reads.
- Implement list object versions
- Migrate to siphash from crchash for new deployments
  for object placements.

Fixes 
2020-06-12 20:04:01 -07:00
Anis Elleuch
27632ca6ec
audit: Merge ResponseWriter with RecordAPIStats ()
ResponseWriter & RecordAPIStats has similar role, merge them.

This commit will also fix wrong auditing for STS and Web and others
since they are using ResponseWriter instead of the RecordAPIStats.
2020-04-30 11:27:19 -07:00
Harshavardhana
1330e59307
accessKeyId missing should return appropriate error in AssumeRole ()
For a non-existent user server would return STS not initialized
```
aws --profile harsha --endpoint-url http://localhost:9000 \
      sts assume-role \
      --role-arn arn:xxx:xxx:xxx:xxxx \
      --role-session-name anything
```

instead return an appropriate error as expected by STS API

Additionally also format the `trace` output for STS APIs
2020-02-26 12:26:47 -08:00
poornas
c9116e6bd7
trace - log request body () 2020-02-01 02:39:49 -08:00
Nitish Tiwari
10b526ed86 Fix panic during trace requests ()
While Tracing requests on server, type assertion on logger.ResponseWriter
caused nil pointer exception because of recordAPIStats{} being
used as ResponseWriter. This PR avoids the type assertion and
initializes a new logger.ResponseWriter.

Fixes regression introduced in 
2019-10-27 08:49:16 -07:00
Harshavardhana
4155f4e49b
trace: Print either Transfer-Encoding or Content-Length ()
If Transfer-Encoding is set client would have
never set Content-Length as its considered
malformed HTTP request
2019-09-27 10:19:27 -07:00
poornas
2e02e1889b Cleanup ResponseWriter function for audit and trace () 2019-09-24 02:04:28 +05:30
Harshavardhana
ff6aabd9c0 Honor standard HTTP headers for sourceIP ()
Behind load balancers we should be tracing sourceIP
preserved by load balancers.
2019-09-13 03:59:59 +05:30
Harshavardhana
a7be313230 Start using new errors package () 2019-09-11 22:51:43 +05:30
Harshavardhana
a15bb19d37
Allow audit logging to work while tracing ()
It is observed that when `mc admin trace` is being
used due to ResponseWriter wrapper, we loose information
about statusCode,statusText for audit logging.

This PR fixes this behavior
2019-08-15 16:17:46 -07:00
poornas
041a812ba0 trace api: add call stats to trace ()
Stats such as call latency, bytes received and sent have been added
2019-07-18 23:29:17 +01:00
Krishnan Parthasarathi
94f67ad224 Log error response even if a handler doesn't logBody () 2019-07-10 11:49:02 -07:00
poornas
0505ef83b5 Fix host address returned in admin API calls () 2019-07-05 20:41:35 -07:00
poornas
299ef9b188 Trace: Replace function name with API prefix ()
This change is required for `Admin Trace`
2019-06-18 13:55:13 -07:00
poornas
97090aa16c Add admin API to send trace notifications to registered ()
Remove current functionality to log trace to file
using MINIO_HTTP_TRACE env, and replace it with
mc admin trace command on mc client.
2019-06-08 15:54:41 -07:00