Decrypt

Beta and uses: Event Gateway
Related Documentation
OpenAPI Specifications
Incompatible with
on-prem
Related Resources

This policy is used to decrypt messages that were previously encrypted using the referenced key. Use this policy to enforce standards for decryption across Kong Native Event Proxy clients.

Schema

Example configuration

Example configurations for the Decrypt policy.

Decrypt a key

Decrypt a specific key:

policies:
  - name: decrypt-key
    type: decrypt
    spec:
      failure:
        mode: error
      key_sources:
      - type: ref_name
        ref_name: ref_name
      decrypt:
      - type: key

Decrypt everything

Decrypt everything in a specific key_source location:

key_sources:
  - name: aws
    type: aws
    aws:
      credentials:
        type: env
policies:
  - name: decrypt-everything
    type: decrypt
    spec:
      failure:
        mode: passthrough # | error
      key_sources:
        - type: static
          static:
            id: "user-chosen-id"
            source:
              type: file # | string
              file: /var/key
        - type: aws
          aws:
            # AWS API auth info
      decrypt:
       - type: keys
       - type: values
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!