1
0
mirror of https://github.com/minio/minio.git synced 2025-03-31 17:53:43 -04:00

13 Commits

Author SHA1 Message Date
Bala FA
1c97dcb10a Add UTCNow() function. ()
This patch adds UTCNow() function which returns current UTC time.

This is equivalent of UTCNow() == time.Now().UTC()
2017-03-18 11:28:41 -07:00
Harshavardhana
5f7565762e api: postPolicy cleanup. Simplify the code and re-use. ()
This change is cleanup of the postPolicyHandler code
primarily to address the flow and also converting
certain critical parts into self contained functions.
2017-03-13 14:41:13 -07:00
Harshavardhana
31dff87903 Honor envs properly for access and secret key. ()
Also changes the behavior of `secretKeyHash` which is
not necessary to be sent over the network, each node
has its own secretKeyHash to validate.

Fixes 
Partial(fix)  (More changes needed with some code cleanup)
2017-02-07 12:51:43 -08:00
Krishna Srinivas
8489f22fe2 signature-v2: Use request.RequestURI for signature calculation. ()
* signature-v2: Use request.RequestURI for signature calculation.

* Use splitStr instead of strings.Split
2017-01-23 17:01:44 -08:00
Harshavardhana
62f8343879 Add constants for commonly used values. ()
This is a consolidation effort, avoiding usage
of naked strings in codebase. Whenever possible
use constants which can be repurposed elsewhere.

This also fixes `goconst ./...` reported issues.
2017-01-18 12:24:34 -08:00
Harshavardhana
1c699d8d3f fs: Re-implement object layer to remember the fd ()
This patch re-writes FS backend to support shared backend sharing locks for safe concurrent access across multiple servers.
2017-01-16 17:05:00 -08:00
Bala FA
e8ce3b64ed Generate and use access/secret keys properly () 2016-12-26 10:21:23 -08:00
Harshavardhana
0db484c8f6 signv2: Do not use path encoding for query values. ()
Use query unescape before comparing signature.
2016-12-15 14:56:18 -08:00
Anis Elleuch
a15dc5fed5 Print message when creating the config file () 2016-10-26 18:44:22 -07:00
Krishna Srinivas
e51be73ac7 PresignedPost: Support for Signature V2 presigned POST Policy. ()
fixes 
2016-10-22 08:57:12 -07:00
Karthic Rao
17e49a9ed2 signature-v2 fix. ()
- Return errors similar to V4 Sign processsing.
- Return ErrMissing fields when Auth Header fields are missing.
- Return InvalidAccessID when accessID doesn't match.

* tests: Adding V2 signature tests for bucket handler API's.
2016-10-13 09:25:56 -07:00
Harshavardhana
6494b77d41 server: Add more elaborate startup messages. ()
These messages based on our prep stage during XL
and prints more informative message regarding
drive information.

This change also does a much needed refactoring.
2016-10-05 12:48:07 -07:00
Harshavardhana
5885ffc8ae signature: Add legacy signature v2 support transparently. ()
Add new tests as well.
2016-09-30 14:32:13 -07:00