CABE
Description
Section titled “Description”The cabe.Encapsulator and cabe.Decapsulator node types are transform-style node types operating over bytestrings which apply CABE encapsulation and decapsulation transforms on input data, applying or removing CABE cryptographic protection accordingly.
The cabe.Printer node type is a transform-style node type which prints the headers of an encrypted CABE Envelope for diagnostic purposes without modifying it. The unmodified CABE Envelope is passed through as-is.
Properties
Section titled “Properties”The cabe.Encapsulator and cabe.Decapsulator node types require a service property to be configured, providing details of how to access a CABE Key Service.
The service property is a dictionary which supports the following options:
-
url: Required. ThehttpsURL to the CABE Key Service. -
tls: Optional. A dictionary which may specify zero or more of the following options: -
cert_file: Optional. A file containing a client certificate to use to authenticate using mTLS. If not specified, defaults to the file specified in theCABE_CERTIFICATE_FILEenvironment variable. -
key_file: Optional. A file containing the corresponding key for the client certificate. If not specified, defaults to the file specified in theCABE_KEY_FILEenvironment variable. -
ca_file: Optional. A file which can be used to override the CA trust anchor list when connecting to the key service. If not specified, theCABE_CA_FILEenvironment variable is also checked.
CABE_SERVICE = dict(url='https://cabe-key-service/ckap')
@maindef graph(): return ( ... | cabe.Printer() | cabe.Decapsulator(service=CABE_SERVICE) | ... cabe.Encapsulator(service=CABE_SERVICE, attrs=dict(foo='bar')) | cabe.Printer() | ... )