Skip to content
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

Fetch Additional User Details on Authentication #24493

Open
shohamyamin opened this issue Dec 16, 2024 · 0 comments
Open

Fetch Additional User Details on Authentication #24493

shohamyamin opened this issue Dec 16, 2024 · 0 comments

Comments

@shohamyamin
Copy link
Contributor

This feature request aims to enhance user authorization by fetching additional user details during authentication. These details, stored in the user session, would be available for query execution, particularly for access control decisions. For example, attributes could be used with OPA (Open Policy Agent) to determine whether a user has access to a specific table.

Proposed Solution:

  1. External API: Integrate with any API that implements a Trino User Attribute Fetcher API Interface (e.g., identity management systems).
  2. LDAP/AD Integration: Fetch user details directly from LDAP or Active Directory during authentication.
  3. Trino Catalog: If that information exists in one of the catalogs, execute a predefined query to fetch user attributes from a Trino catalog.

These integrations would allow flexible retrieval of user-specific data and store it in the session for later use.

Benefits:

  • Enhanced Authorization: User attributes can be used for fine-grained access control, such as determining table access with OPA.
  • Enhanced Query Context: Provides more personalized query execution based on user details.
  • Simplified Auditing: Makes user attributes easily accessible for auditing and access control.

Additional Considerations:

  • Scalability: Integrate caching and rate-limiting to minimize performance impact during authentication.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant