8000 "Use Truststore SPI" options - Always/Never produce same behavior · Issue #45374 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

"Use Truststore SPI" options - Always/Never produce same behavior #45374

Closed

Description

@zohebkhan343

Before reporting an issue

  • I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

Area

dist/quarkus

Describe the bug

Under Create LDAP Provider section (admin/master/console/#/master/user-federation/ldap/new), when performing an SSL/TLS-based Test Connection, the test succeeds for both Use Truststore SPI options: Always and Never, regardless of truststore configuration.
Note: The server certificate is added via the KC_TRUSTSTORE_PATHS option.

Case 1: When the certificate is present in the custom-mounted path specified by KC_TRUSTSTORE_PATHS, both Always and Never options succeed.
Case 2: When the certificate is removed from the custom-mounted path, both Always and Never options fail.

Version

26.4.7

Regression

  • The issue is a regression

Expected behavior

The test should succeed only when the option is set to Always, and fail when set to Never.
SSL/TLS test connection should respect the selected option:

Always: Should succeed if the certificate is trusted.
Never: Should fail regardless of truststore configuration.

Actual behavior

Both options behave identically:

Succeed when certificate is present.
Fail when certificate is absent.

How to Reproduce?

Configure truststore path:
KC_TRUSTSTORE_PATHS=/opt/keycloak/certs/.crt

Navigate to Create LDAP Provider section.
Perform SSL/TLS Test Connection with options Always and Never:

Observe that both options succeed when cert is present.
Observe that both options fail when cert is removed.

Anything else?

No response

Activity

  1. added theissue type on Jan 13, 2026
  2. added
    kind/bug
    on Jan 13, 2026
  3. added
    area/dist/quarkus
    on Jan 13, 2026
  4. zohebkhan343 commented on Jan 13, 2026

    @zohebkhan343
    Author

    I test for EnableTLS and there I see :

    • When I have cert in the KC_TRUSTSTORE_PATHS, it fails for "Always" and succeeds for "Never"

    Which is confusing.

  5. locked and limited conversation to collaborators on Jan 13, 2026
  6. converted this issue into a discussion #45393 on Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/dist/quarkuskind/bugteam/cloud-native

    Type

    Fields

    No fields configured for bug.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0