Decrypt using a static key

Decrypt a message value using a static key.

The static key must be a secret reference to a 256-bit (32-byte) base64-encoded string, or the key itself as a string. We recommend using secret references to avoid exposing sensitive data in your configuration.

Prerequisites

  • A static key.

  • A corresponding Encrypt policy that uses the static key. Event Gateway uses the key reference in the message payload set by the Encrypt policy and looks for the actual key in key_sources to successfully decrypt.

Set up the policy

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!