[
https://issues.apache.org/jira/browse/KNOX-3497?focusedWorklogId=1044791&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1044791
]
ASF GitHub Bot logged work on KNOX-3497:
----------------------------------------
Author: ASF GitHub Bot
Created on: 30/Sep/26 09:21
Start Date: 30/Sep/26 09:21
Worklog Time Spent: 10m
Work Description: github-actions[bot] commented on PR #1436:
URL: https://github.com/apache/knox/pull/1436#issuecomment-5908169702
## Test Results
4 files 4 suites 44s ⏱️
131 tests 131 ✅ 0 💤 0 ❌
149 runs 149 ✅ 0 💤 0 ❌
Results for commit 87245282.
[test-results]:data:application/gzip;base64,H4sIAHfUvGoC/13MSw7CIBSF4a00jB0A8ihuxhAoyY1tMTxGjXsXSEV0+P0nOQdysC4R3SZ2mVDMkDpsDjqB3yury5LqRq7ko3vMxvynBzxLwj04DetPWELw4Swh7+2TqRP9cijfx+bhsHn8M37bIBWgWVLG6Uyp5JZhIjC2mAsnmJJElaClkpI7hl5v4doKaAQBAAA=
Issue Time Tracking
-------------------
Worklog Id: (was: 1044791)
Time Spent: 0.5h (was: 20m)
> LdapProxyBackend does not resolve credential-store aliases for bind/system
> password
> -----------------------------------------------------------------------------------
>
> Key: KNOX-3497
> URL: https://issues.apache.org/jira/browse/KNOX-3497
> Project: Apache Knox
> Issue Type: Improvement
> Components: Server
> Affects Versions: 3.0.0
> Reporter: Sandor Molnar
> Assignee: Sandor Molnar
> Priority: Major
> Fix For: 3.1.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> {{LdapProxyBackend}} reads the AD service-account password as a literal
> string and never resolves credential-store aliases:
> * {{LdapProxyBackend.java:158-161}} - {{bindPassword =
> config.get("bindPassword") / config.get("systemPassword");}} value passed
> verbatim to {{setCredentials()}} (line 282).
> * No {{AliasService}} reference anywhere in the class or its factory.
> * Upstream config ({{{}GatewayConfigImpl.getLDAPInterceptorConfig{}}}) is a
> plain prefix scan with no alias expansion; the only alias-aware LDAP calls
> ({{{}KnoxLDAPServerManager.start{}}}, {{{}resolveSslKeystorePassword{}}}) are
> off this path.
> {*}Impact{*}: An alias reference in
> {{gateway.ldap.interceptor.<name>.bindPassword/.systemPassword}} is used as
> the literal password, so the AD bind fails. Passwords can only be stored in
> cleartext config today.
> {*}Fix{*}: Resolve aliases for the bind/system password on the backend path
> (in {{LdapProxyBackend.init()}} or when the interceptor config is assembled),
> preserving literal values for back-compat.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)