Skip to content

feat(egw): encrypt-fields docs#5355

Open
michaelbeaumont wants to merge 4 commits into
release/event-gateway-1.2from
feat/egw-encrypt-fields
Open

feat(egw): encrypt-fields docs#5355
michaelbeaumont wants to merge 4 commits into
release/event-gateway-1.2from
feat/egw-encrypt-fields

Conversation

@michaelbeaumont
Copy link
Copy Markdown
Contributor

@michaelbeaumont michaelbeaumont commented May 27, 2026

Description

Documents the new encrypt_fields policy

Preview Links

Checklist

  • Tested how-to docs. If not, note why here.
  • All pages contain metadata.
  • Any new docs link to existing docs.
  • All autogenerated instructions render correctly (API, decK, Konnect, Kong Manager).
  • Style guide (capitalized gateway entities, placeholder URLs) implemented correctly.
  • Every page has a description entry in frontmatter.
  • Add new pages to the product documentation index (if applicable).

@netlify
Copy link
Copy Markdown

netlify Bot commented May 27, 2026

Deploy Preview for kongdeveloper ready!

Name Link
🔨 Latest commit 611bf0d
🔍 Latest deploy log https://app.netlify.com/projects/kongdeveloper/deploys/6a188bb56ee00c00080911d4
😎 Deploy Preview https://deploy-preview-5355--kongdeveloper.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@michaelbeaumont michaelbeaumont force-pushed the feat/egw-encrypt-fields branch 6 times, most recently from 0f7f227 to 326f241 Compare May 27, 2026 19:59
@lena-larionova lena-larionova added this to the Event Gateway 1.2 milestone May 28, 2026
@michaelbeaumont michaelbeaumont force-pushed the feat/egw-encrypt-fields branch 4 times, most recently from 2e67592 to f88919f Compare May 28, 2026 14:16
@lena-larionova
Copy link
Copy Markdown
Contributor

@michaelbeaumont could you please retarget/rebase this PR to point to release/event-gateway-1.2?

@michaelbeaumont michaelbeaumont force-pushed the feat/egw-encrypt-fields branch from f88919f to 611bf0d Compare May 28, 2026 18:38
@michaelbeaumont michaelbeaumont changed the base branch from main to release/event-gateway-1.2 May 28, 2026 18:38
@lena-larionova
Copy link
Copy Markdown
Contributor

@michaelbeaumont is this ready for doc review? Let me know when I can pick this up.

@michaelbeaumont michaelbeaumont marked this pull request as ready for review June 5, 2026 07:09
@michaelbeaumont michaelbeaumont requested a review from a team as a code owner June 5, 2026 07:09
Copilot AI review requested due to automatic review settings June 5, 2026 07:09
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds documentation for the new Event Gateway encrypt_fields/decrypt_fields policies, including policy reference pages, runnable examples, and an end-to-end how-to that demonstrates encrypting/decrypting specific JSON fields in Kafka message values.

Changes:

  • Add new Encrypt fields and Decrypt fields policy pages with example configurations.
  • Add a new how-to: Encrypt and decrypt Kafka message fields using a static key and Schema Validation nesting.
  • Update Event Gateway landing page and policy entity page to link to the new policies/how-to.

Reviewed changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 12 comments.

Show a summary per file
File Description
app/event-gateway/entities/policy.md Adds the new field-level policies to the policy nesting table.
app/_landing_pages/event-gateway.yaml Adds the new policies + how-to link to the Event Gateway use-case table.
app/_how-tos/event-gateway/encrypt-kafka-message-fields-with-event-gateway.md New end-to-end how-to for encrypting/decrypting specific JSON fields.
app/_event_gateway_policies/encrypt/index.md Fixes Liquid include indentation so it renders correctly.
app/_event_gateway_policies/encrypt-fields/index.md New policy reference page for Encrypt fields.
app/_event_gateway_policies/encrypt-fields/examples/encrypt-with-static-key.yml Adds a static-key example for Encrypt fields.
app/_event_gateway_policies/encrypt-fields/examples/encrypt-with-aws.yml Adds an AWS example for Encrypt fields.
app/_event_gateway_policies/decrypt-fields/index.md New policy reference page for Decrypt fields.
app/_event_gateway_policies/decrypt-fields/examples/decrypt-with-static-key.yml Adds a static-key example for Decrypt fields.
app/_event_gateway_policies/decrypt-fields/examples/decrypt-with-aws.yml Adds an AWS example for Decrypt fields.

Comment on lines 165 to +167
* [Modify Headers](/event-gateway/policies/modify-headers/)
* [Skip Records](/event-gateway/policies/skip-record/)
* [Decrypt fields](/event-gateway/policies/encrypt-fields/)
Comment on lines +271 to +275
[Encryption policy](/event-gateway/policies/encrypt/), [Decryption policy](/event-gateway/policies/decrypt/),
[Encrypt fields policy](/event-gateway/policies/encrypt-fields/), [Decrypt fields policy](/event-gateway/policies/decrypt-fields/),
guide: |
[Encrypt and decrypt Kafka messages](/event-gateway/encrypt-kafka-messages-with-event-gateway/)
or [encrypt and decrypt Kafka message fields](/event-gateway/encrypt-kafka-message-fields-with-event-gateway/)
Comment on lines +30 to +33
related_resources:
- text: Decrypt fields policy
url: /event-gateway/policies/decrypt_fields/
- text: Virtual clusters
Comment on lines +13 to +16
schema:
api: konnect/event-gateway
path: /schemas/EventGatewayDecryptPolicy

Comment on lines +256 to +262
encrypt_fields:
- paths:
- match: "personal.ssn"
encryption_key:
type: static
key:
name: my-key
Comment on lines +24 to +30
failure_mode: reject
encrypt_fields:
- paths:
- match: "personal.ssn"
encryption_key:
type: aws
arn: ${key_id}
Comment on lines +23 to +27
key_sources:
- type: static
decrypt_fields:
paths:
- match: personal.ssn
Comment on lines +1 to +12
title: Decrypt fields using an AWS key vault

description: Decrypt a message field using a specific AWS key vault.

extended_description: |
Decrypt a message field using a specific AWS key vault.

weight: 900

requirements:
- "A corresponding [Encrypt fields policy](/event-gateway/policies/encrypt-fields/examples/encrypt-with-aws/).
Event Gateway uses the AWS ARN from the Encrypt field policy to find the key for the Decrypt fields policy."
Comment on lines +18 to +22
key_sources:
- type: aws
decrypt_fields:
paths:
- match: personal.ssn
Comment on lines +1 to +9
title: Encrypt fields with AWS Key Vault

description: Use an AWS Key Vault to encrypt fields of message value.

weight: 900

requirements:
- "An [AWS KMS key ARN](https://docs.aws.amazon.com/sdk-for-rust/latest/dg/credproviders.html#credproviders-default-credentials-provider-chain)."
- "A corresponding [field decryption policy](/event-gateway/policies/decrypt-fields/examples/decrypt-with-static-key/)."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants