minio/cmd/crypto
Andreas Auernhammer 6f764a8efd crypto: fix nil pointer dereference of vault secret (#7241)
This commit fixes a nil pointer dereference issue
that can occur when the Vault KMS returns e.g. a 404
with an empty HTTP response. The Vault client SDK
does not treat that as error and returns nil for
the error and the secret.

Further it simplifies the token renewal and
re-authentication mechanism by using a single
background go-routine.

The control-flow of Vault authentications looks
like this:
1. `authenticate()`: Initial login and start of background job
2. Background job starts a `vault.Renewer` to renew the token
3. a) If this succeeds the token gets updated
   b) If this fails the background job tries to login again
4. If the login in 3b. succeeded goto 2. If it fails
   goto 3b.
2019-02-13 15:25:32 -08:00
..
config.go add auto-encryption feature (#6523) 2018-12-14 13:35:48 -08:00
doc.go fix object rebinding SSE-C security guarantee violation (#6121) 2018-07-09 17:18:28 -07:00
error.go return Access Denied for invalid SSE keys (#6432) 2018-09-06 12:31:12 -07:00
header_test.go Migrate to Go version 1.11.4 (#7026) 2018-12-28 14:04:39 -08:00
header.go Use GetObjectNInfo in CopyObject and CopyObjectPart (#6489) 2018-09-25 12:39:46 -07:00
key_test.go crypto: add functions for sealing/unsealing the etag for SSE (#6618) 2018-10-16 10:02:19 -07:00
key.go crypto: add functions for sealing/unsealing the etag for SSE (#6618) 2018-10-16 10:02:19 -07:00
kms_test.go crypto: add support for parsing/creating SSE-C/SSE-S3 metadata (#6169) 2018-07-25 13:35:54 -07:00
kms.go crypto: add support for parsing/creating SSE-C/SSE-S3 metadata (#6169) 2018-07-25 13:35:54 -07:00
metadata_test.go Migrate to Go version 1.11.4 (#7026) 2018-12-28 14:04:39 -08:00
metadata.go Add double encryption at S3 gateway. (#6423) 2019-01-05 14:16:42 -08:00
sse_test.go crypto: add helper functions for unsealing object keys (#6609) 2018-10-12 18:06:38 -07:00
sse.go crypto: add helper functions for unsealing object keys (#6609) 2018-10-12 18:06:38 -07:00
vault.go crypto: fix nil pointer dereference of vault secret (#7241) 2019-02-13 15:25:32 -08:00