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
errInsecureSSERequest=errors.New("Requests specifying Server Side Encryption with Customer provided keys must be made over a secure connection")
errEncryptedObject=errors.New("The object was stored using a form of Server Side Encryption. The correct parameters must be provided to retrieve the object")
errInvalidSSEAlgorithm=errors.New("Requests specifying Server Side Encryption with Customer provided keys must provide a valid encryption algorithm")
errMissingSSEKey=errors.New("Requests specifying Server Side Encryption with Customer provided keys must provide an appropriate secret key")
errInvalidSSEKey=errors.New("The secret key was invalid for the specified algorithm")
errMissingSSEKeyMD5=errors.New("Requests specifying Server Side Encryption with Customer provided keys must provide the client calculated MD5 of the secret key")
errSSEKeyMD5Mismatch=errors.New("The calculated MD5 hash of the key did not match the hash that was provided")
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