1
0
mirror of https://github.com/minio/minio.git synced 2025-04-16 08:58:11 -04:00

12 Commits

Author SHA1 Message Date
Andreas Auernhammer
b233345f19 remove bcrypt code from code-base () ()
Bcrypt is not neccessary and not used properly. This change
replace the whole bcrypt hash computation through a constant time
compare and removes bcrypt from the code base.
2017-08-23 15:59:37 -07:00
ebozduman
0f401b67ad Removes max limit requirement on accessKey and secretKey length () 2017-08-03 20:03:37 -07:00
Harshavardhana
1c3f244fc5 creds: Secretkey should be generated upto 40 characters in length. ()
Current code allowed it wrongly to generate secret key upto 100
we should only use 100 as a value to validate but for generating
it should be 40.

Fixes 
2017-06-05 15:18:03 -07:00
poornas
18c4e5d357 Enable browser support for gateway () 2017-06-01 09:43:20 -07:00
Bala FA
d3cb79a57c Refactor logger ()
This patch fixes below

* Previously fatalIf() never writes log other than first logging target.
* quiet flag is not honored to show progress messages other than startup messages.
* Removes console package usage for progress messages.
2017-03-23 16:36:00 -07:00
Krishna Srinivas
cea4cfa3a8 Implement S3 Gateway to third party cloud storage providers. ()
Currently supported backend is Azure Blob Storage.

```
export MINIO_ACCESS_KEY=azureaccountname
export MINIO_SECRET_KEY=azureaccountkey
minio gateway azure
```
2017-03-16 12:21:58 -07:00
Bala FA
21d73a3eef Simplify credential usage. () 2017-03-16 00:16:06 -07:00
Anis Elleuch
ae4361cc45 config: Check for duplicated entries in all scopes ()
Validate Minio config by checking if there is double json key
in any scope level. The returned error contains the json path
to the duplicated key.
2017-03-15 16:30:34 -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
Harshavardhana
85f2b74cfd jwt: Cache the bcrypt password hash. ()
Creds don't require secretKeyHash to be calculated
everytime, cache it instead and re-use.

This is an optimization for bcrypt.

Relevant results from the benchmark done locally, negative
value means improvement in this scenario.

```
benchmark                       old ns/op     new ns/op     delta
BenchmarkAuthenticateNode-4     160590992     80125647      -50.11%
BenchmarkAuthenticateWeb-4      160556692     80432144      -49.90%

benchmark                       old allocs     new allocs     delta
BenchmarkAuthenticateNode-4     87             75             -13.79%
BenchmarkAuthenticateWeb-4      87             75             -13.79%

benchmark                       old bytes     new bytes     delta
BenchmarkAuthenticateNode-4     15222         9785          -35.72%
BenchmarkAuthenticateWeb-4      15222         9785          -35.72%
```
2017-01-26 16:51:51 -08:00
Bala FA
ee0172dfe4 Have simpler JWT authentication. () 2016-12-27 08:28:10 -08:00
Bala FA
e8ce3b64ed Generate and use access/secret keys properly () 2016-12-26 10:21:23 -08:00