Fact.Encryption.KEKProvider behaviour (Fact v0.4.1)
View SourceBehaviour for providing Key Encryption Keys (KEKs) at runtime.
A KEK provider is responsible for supplying the key used to unwrap the
Data Encryption Key (DEK) when a database is opened. The DEK is stored
in the .bootstrap file in wrapped (encrypted) form and must be unwrapped
before the database can read or write encrypted record files.
Implementations
Fact.Encryption.KEKProvider.Explicit— takes the KEK directly from options.
Summary
Types
Options passed to fetch_kek/1. The shape depends on the provider implementation.
A module implementing the Fact.Encryption.KEKProvider behaviour.
Callbacks
Fetches the Key Encryption Key.
Types
@type opts() :: keyword()
Options passed to fetch_kek/1. The shape depends on the provider implementation.
@type t() :: module()
A module implementing the Fact.Encryption.KEKProvider behaviour.