This change let the server return the S3 error for a key rotation
if the source key is not valid but equal to the destination key.
This change also fixes the SSE-C error messages since AWS returns error messages
ending with a '.'.
Fixes#5625
master
Andreas Auernhammer7 years agocommitted bykannappanr
errEncryptedObject=errors.New("The object was stored using a form of Server Side Encryption. The correct parameters must be provided to retrieve the object")
errEncryptedObject=errors.New("The object was stored using a form of SSE")
errInvalidSSEAlgorithm=errors.New("Requests specifying Server Side Encryption with Customer provided keys must provide a valid encryption algorithm")
errInvalidSSEAlgorithm=errors.New("The SSE-C algorithm is not valid")
errMissingSSEKey=errors.New("Requests specifying Server Side Encryption with Customer provided keys must provide an appropriate secret key")
errMissingSSEKey=errors.New("The SSE-C request is missing the customer key")
errInvalidSSEKey=errors.New("The secret key was invalid for the specified algorithm")
errInvalidSSEKey=errors.New("The SSE-C key is invalid")
errMissingSSEKeyMD5=errors.New("Requests specifying Server Side Encryption with Customer provided keys must provide the client calculated MD5 of the secret key")
errMissingSSEKeyMD5=errors.New("The SSE-C request is missing the customer key MD5")
errSSEKeyMD5Mismatch=errors.New("The calculated MD5 hash of the key did not match the hash that was provided")
errSSEKeyMD5Mismatch=errors.New("The key MD5 does not match the SSE-C key")
errSSEKeyMismatch=errors.New("The client provided key does not match the key provided when the object was encrypted")// this msg is not shown to the client
errSSEKeyMismatch=errors.New("The SSE-C key is not correct")// access denied
errInvalidSSEParameters=errors.New("The SSE-C key for key-rotation is not correct")// special access denied
// Additional Minio errors for SSE-C requests.
// Additional Minio errors for SSE-C requests.
errObjectTampered=errors.New("The requested object was modified and may be compromised")
errObjectTampered=errors.New("The requested object was modified and may be compromised")