You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2026/06/09 16:08:00 UTC
[jira] [Commented] (KNOX-3337) Enhance KnoxLdapService with Pluggable Role Lookup Support
[ https://issues.apache.org/jira/browse/KNOX-3337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18087706#comment-18087706 ]
ASF subversion and git services commented on KNOX-3337:
-------------------------------------------------------
Commit 9c6647e5f53902647906ac92bf15b9041691c110 in knox's branch refs/heads/master from Sandor Molnar
[ https://gitbox.apache.org/repos/asf?p=knox.git;h=9c6647e5f ]
KNOX-3337: Add optional LDAP role lookup support (#1247)
> Enhance KnoxLdapService with Pluggable Role Lookup Support
> ----------------------------------------------------------
>
> Key: KNOX-3337
> URL: https://issues.apache.org/jira/browse/KNOX-3337
> Project: Apache Knox
> Issue Type: Improvement
> Components: Server
> Affects Versions: 3.0.0
> Reporter: Sandor Molnar
> Assignee: Sandor Molnar
> Priority: Critical
> Fix For: 3.0.0
>
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> Currently, the KnoxLdapService provides user and group information directly from its configured LDAP backend. In many deployment scenarios, particularly in modern cloud-native environments, there is a requirement to map these LDAP-authenticated identities and their group memberships to higher-level application roles managed by an external source.
> This JIRA introduces a pluggable role lookup mechanism within KnoxLdapService that allows Knox to intercept group resolution and instead populate roles from either a local configuration file (for testing purposes) or a remote REST API.
> *Key Features*
> 1. *Pluggable Interface:* Introduction of LdapRolesLookup to allow for extensible lookup strategies.
> 2. *REST Implementation:* A client implementation that POSTs user ID and group lists to a configured endpoint to retrieve role mappings, following a specific OpenAPI schema.
> 3. *File-based Implementation:* A JSON-based lookup strategy for static environments, using the same data structure as the REST API.
> 4. *Configuration-driven:* New gateway-site.xml properties to toggle lookup types and configure endpoints or file paths.
> *Proposed Configuration*
> * {{{}gateway.ldap.roles.lookup.strategy{}}}: Enables the lookup (file or rest).
> * {{{}gateway.ldap.roles.lookup.rest.api.endpoint{}}}: The destination URL for REST lookups.
> * {{{}gateway.ldap.roles.lookup.file.path{}}}: the file path which points to the JSON mapping file.
> *Data Contract:*
> The implementation will exchange JSON payloads containing a user_id and an array of groups, receiving a response containing a list of RoleAssignment objects (consisting of scope and name).
>
> This enhancement will allow for more dynamic and flexible authorization workflows in Knox-managed environments.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)