Browse Source

Add credential encryption exception

If something goes wrong when we encrypt or decrypt a credential, we
should throw a useful error message. We will use this as we implement
encryption for credentials at rest.

bp credential-encryption

Change-Id: I21684de984da05a0728f8875ff00a135fc1b834a
changes/94/354494/4
Werner Mendizabal 6 years ago committed by Steve Martinelli
parent
commit
59a2351be9
  1. 5
      keystone/exception.py

5
keystone/exception.py

@ -578,3 +578,8 @@ class TokenlessAuthConfigError(ValidationError):
class UnsupportedDriverVersion(UnexpectedError):
debug_message_format = _('%(driver)s is not supported driver version')
class CredentialEncryptionError(Exception):
message_format = _("An unexpected error prevented the server "
"from accessing encrypted credentials.")

Loading…
Cancel
Save