Static keys

Related Documentation
OpenAPI Specifications
Incompatible with
on-prem

Static keys

Static keys are resources that you can use in the Encrypt and Decrypt policies to encrypt and decrypt messages.

A static key can contain a secret (Base64-encoded key) or a reference to a secret as a template string expression.

  • If the value is provided as plain text, it is encrypted at rest and omitted from API responses.
  • If provided as an expression, the expression itself is stored and returned by the API, e.g. ${vault.env["MY_ENV_VAR"]}.

Set up a static key

Schema

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!