dlt.common.encryption
PipelineEncryptionContext Objects
@configspec
class PipelineEncryptionContext(ContainerInjectableContext)
Encrypts and decrypts secrets. The encryption key stays hidden from the caller.
If secret is not set, this context reads the secret of the active pipeline. It then derives
the key from that secret.
pipeline_encryption
def pipeline_encryption() -> PipelineEncryptionContext
Returns the active encryption context. The caller can inject this context. Without an injected context, the default context uses the secret of the active pipeline.