added if user decrypts the key
@@ -97,6 +97,7 @@ class KeyValuePairController(ResourceController):
key_ref = get_key_reference(scope=scope, name=name, user=user)
extra = {"scope": scope, "name": name, "user": user, "key_ref": key_ref}
LOG.debug("GET /v1/keys/%s", name, extra=extra)
+ if decrypt:
LOG.audit(
"User %s decrypted the value %s ",
user,
@@ -171,6 +172,7 @@ class KeyValuePairController(ResourceController):
self._validate_decrypt_query_parameter(
decrypt=decrypt, scope=scope, requester_user=requester_user
)
+ if decrypt:
LOG.audit(
"User %s decrypted the value %s ",
user,
