Skip to content

KNOX-3263: Setting JVM's default truststore password as a System property when creating CM service discovery ApiClient, if needed#1159

Merged
smolnar82 merged 1 commit intoapache:masterfrom
smolnar82:KNOX-3263
Feb 26, 2026

Conversation

@smolnar82
Copy link
Contributor

KNOX-3263 - Setting javax.net.ssl.trustStorePassword conditionally when creating CM's ApiClient

What changes were proposed in this pull request?

DiscoveryApiClient creation is extracted to a factory class, where the javax.net.ssl.trustStorePassword System property is set if the cm.discovery.trustStorePassword gateway-level alias is provided just before we initiate that class.

How was this patch tested?

Manually tested in a FIPS-enabled cluster with/without configuring the cm.discovery.trustStorePassword gateway-level alias. Without that, I experineced the original issue: the default trustore couldnt be loaded and CM service discovery failed.
With the alias in place, issuer were gone, Knox could discover the configured cluster and could connect to it every minute using the PollingConfigurationAnalyzer checking for changes.

Integration Tests

N/A

UI changes

N/A

@github-actions
Copy link

github-actions bot commented Feb 26, 2026

Test Results

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

Results for commit 830fc51.

♻️ This comment has been updated with latest results.

…erty when creating CM service discovery ApiClient, if needed
@smolnar82 smolnar82 merged commit 59a8fe9 into apache:master Feb 26, 2026
3 checks passed
@smolnar82 smolnar82 deleted the KNOX-3263 branch February 26, 2026 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants