Skip to content

Conversation

@renaudhartert-db
Copy link
Contributor

This PR changes SPNegoSchemeFactory constructor in ProxyUtils.java to use useCanonicalHostname=false, deferring hostname canonicalization to the Kerberos library based on krb5.conf configuration instead of forcing it at the SDK level.

The previous implementation forced hostname canonicalization for proxy Kerberos authentication, overriding user-configured krb5.conf settings (rdns, dns_canonicalize_hostname). This caused authentication failures in environments with specific Kerberos configurations.

Client libraries should respect system Kerberos configuration rather than override it. This fix makes the SDK compliant with standard Kerberos behavior.

Migration note: Users whose non-compliant Kerberos setups were accidentally working due to forced canonicalization may need to verify their krb5.conf settings are correctly configured.

@github-actions
Copy link

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/sdk-java

Inputs:

  • PR number: 541
  • Commit SHA: 41a619b7a87817a3eacfe26685f0770cfde8e7e1

Checks will be approved automatically on success.

Copy link
Contributor

@Divyansh-db Divyansh-db left a comment

Choose a reason for hiding this comment

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

LGTM

@renaudhartert-db renaudhartert-db added this pull request to the merge queue Nov 3, 2025
Merged via the queue into main with commit 586a832 Nov 3, 2025
16 checks passed
@renaudhartert-db renaudhartert-db deleted the renaud-hartert_data/proxy branch November 3, 2025 15:22
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