deckhand.barbican.cache module¶
-
deckhand.barbican.cache.
lookup_by_payload
(barbicanclient, **kwargs)[source]¶ Look up secret reference using the secret payload.
Allows for quick lookup of secret references using
secret_payload
via caching (essentially a reverse-lookup).Useful for ensuring that documents with the same secret payload (which occurs when the same document is recreated across different revisions) persist the same secret reference in the database – and thus quicker future
lookup_by_ref
lookups.