Skip to content

KNOX-3287: RAP truststore password alias improvements#1190

Merged
moresandeep merged 2 commits intoapache:masterfrom
smolnar82:KNOX-3287
Mar 31, 2026
Merged

KNOX-3287: RAP truststore password alias improvements#1190
moresandeep merged 2 commits intoapache:masterfrom
smolnar82:KNOX-3287

Conversation

@smolnar82
Copy link
Copy Markdown
Contributor

@smolnar82 smolnar82 commented Mar 27, 2026

This PR introduces improvements to how the Remote Authentication Provider (RAP) handles truststore password aliases, along with a fix for recent build failures.

Key Changes:

  • RemoteAuthFilter: Replaced the hardcoded truststore.password configuration with a new truststore.password.alias configuration to better support alias-based password resolution.

  • Alias Resolution: Improved getTruststorePassword to cleanly resolve the truststore password alias first at the cluster level, and falling back to the gateway level (AliasService.NO_CLUSTER_NAME) if it's not found.

  • Docker Entrypoint: Added support for the RAP_TRUSTSTORE_PASSWORD environment variable in gateway-entrypoint.sh to automatically save the remote auth provider truststore password alias on container startup.

Tests:
Updated RemoteAuthFilterTest to reflect the new truststore.password.alias configuration key.

@smolnar82 smolnar82 marked this pull request as draft March 27, 2026 13:50
@moresandeep moresandeep marked this pull request as ready for review March 31, 2026 16:38
@github-actions
Copy link
Copy Markdown

Test Results

7 tests   7 ✅  1s ⏱️
1 suites  0 💤
1 files    0 ❌

Results for commit 0105575.

Copy link
Copy Markdown
Contributor

@pzampino pzampino left a comment

Choose a reason for hiding this comment

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

LGTM

@moresandeep moresandeep merged commit 72a4845 into apache:master Mar 31, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants