Jinja filters

In addition to the built-in filters, we have also defined custom Jinja filters that can be used in pipe and system configurations. Most of these filters have a corresponding DTL function and should produce the same output, e.g. the bytes filter should give the same results as the bytes DTL function. Note that underscores are used in place of dashes in filter names, as opposed to DTL functions.

Custom Jinja filters

Filter

Description

Arguments

Example usage

bytes

See the bytes DTL function.

base64_encode

See the base64-encode DTL function.

base64_decode

See the base64-decode DTL function.

datetime

See the datetime DTL function.

datetime_filter

See the datetime-format DTL function.

decode_jwt

Decodes a JWT given a (public) key.

key

secret('jwt') | decode_jwt(secret('public_key'))