Skip to content

WIP: Include principal field to opa payload #25895

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sudohainguyen
Copy link
Contributor

@sudohainguyen sudohainguyen commented Jun 1, 2025

Description

The PR is about including principal information to OPA payload

Additional context and related issues

My use case is for Metabase x Trino integration and its impersonation mode. If the mode is enabled, Trino acknowledges queries are fired by a specific email from users. The problem arises when there are multiple impersonation Metabase connections; the underlying OPA cannot differentiate which connection a user is using to apply connection-level constraints. Hence, including a principal field (similar to authenticatedUser in resource group selector) can help forward necessary information to OPA to know which Trino user is actually impersonating a Metabase user.

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
(x) Release notes are required, with the following suggested text:
Include principal information to OPA's context identity

## Section
* Fix some things. (#25415 )

Copy link

cla-bot bot commented Jun 1, 2025

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

@sudohainguyen sudohainguyen changed the title Include principal field to opa payload WIP: Include principal field to opa payload Jun 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant