Skip to content

feat(identity): Consumer Group linking to principals#5676

Open
cloudjumpercat wants to merge 1 commit into
release/kong-identity-m0from
feat/principal-consumer-group-mapping
Open

feat(identity): Consumer Group linking to principals#5676
cloudjumpercat wants to merge 1 commit into
release/kong-identity-m0from
feat/principal-consumer-group-mapping

Conversation

@cloudjumpercat

@cloudjumpercat cloudjumpercat commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Description

Fixes https://kongstrong.slack.com/archives/C0AMY2Z45GQ/p1782042911938269?thread_ts=1781636326.243639&cid=C0AMY2Z45GQ

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).

Copilot AI review requested due to automatic review settings June 23, 2026 16:40
@cloudjumpercat cloudjumpercat requested a review from a team as a code owner June 23, 2026 16:40
@netlify

netlify Bot commented Jun 23, 2026

Copy link
Copy Markdown

Deploy Preview for kongdeveloper ready!

Name Link
🔨 Latest commit 3cfb8ff
🔍 Latest deploy log https://app.netlify.com/projects/kongdeveloper/deploys/6a3c497810d6c3000800c7c6
😎 Deploy Preview https://deploy-preview-5676--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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds documentation to the Kong Identity “Principals and directories” reference to describe how principals can be associated with Kong Gateway Consumer Groups via principal metadata, including an API example for updating the mapping.

Changes:

  • Documented Consumer Groups as an additional principal entity mapping option alongside Consumers and applications.
  • Added a new “Link a principal to Consumer Groups” section describing the reserved consumer_groups metadata key and a Konnect API PATCH example.

@cloudjumpercat cloudjumpercat added the release-docs Docs for release label Jun 24, 2026
@cloudjumpercat cloudjumpercat force-pushed the release/kong-identity-m0 branch from 33ce795 to 7b2f80b Compare June 24, 2026 20:59
Signed-off-by: Diana <75819066+cloudjumpercat@users.noreply.github.com>
@cloudjumpercat cloudjumpercat force-pushed the feat/principal-consumer-group-mapping branch from 15f3ed2 to 3cfb8ff Compare June 24, 2026 21:17
@juliamrch juliamrch self-requested a review June 25, 2026 16:18
Each product has its own representation of who is authenticating: {{site.base_gateway}} has Consumers and {{site.dev_portal}} has applications:

* **Consumers**: Attach a `control_plane_consumer` [identity](#identities) to map a principal to a Consumer in a specific {{site.base_gateway}} control plane. When an authentication plugin authenticates the principal, the mapped Consumer loads into the request context just as if the Consumer had been authenticated directly. This allows existing Consumer-scoped plugins to function while you migrate to principals.
* **Consumer Groups**: Map a principal to one or more Consumer Groups by setting the reserved `consumer_groups` key in the principal's [metadata](#metadata) to a list of Consumer Group UUIDs. Consumer Groups have a many-to-many relationship with principals: the same group can map to many principals, and one principal can map to many groups. If the principal is also mapped to a Consumer and that Consumer belongs to its own Consumer Groups, the gateway loads the union of both sets into the request context. Consumer Groups must be defined in the same {{site.base_gateway}} control plane and workspace as the plugin.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Break the paragraph to ease human reading.

Suggested change
* **Consumer Groups**: Map a principal to one or more Consumer Groups by setting the reserved `consumer_groups` key in the principal's [metadata](#metadata) to a list of Consumer Group UUIDs. Consumer Groups have a many-to-many relationship with principals: the same group can map to many principals, and one principal can map to many groups. If the principal is also mapped to a Consumer and that Consumer belongs to its own Consumer Groups, the gateway loads the union of both sets into the request context. Consumer Groups must be defined in the same {{site.base_gateway}} control plane and workspace as the plugin.
* **Consumer Groups**: Map a principal to one or more Consumer Groups by setting the reserved `consumer_groups` key in the principal's [metadata](#metadata) to a list of Consumer Group UUIDs. Consumer Groups have a many-to-many relationship with principals:
- The same group can map to many principals
- One principal can map to many groups.
If the principal is also mapped to a Consumer and that Consumer belongs to its own Consumer Groups, the gateway loads the union of both sets into the request context. Consumer Groups must be defined in the same {{site.base_gateway}} control plane and workspace as the plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-docs Docs for release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants