Skip to content

feat: make clientAuthenticationMethod configurable in Druid 35.0.1#1431

Merged
dervoeti merged 5 commits intomainfrom
feat/druid-35-oidc-authentication-method
Mar 10, 2026
Merged

feat: make clientAuthenticationMethod configurable in Druid 35.0.1#1431
dervoeti merged 5 commits intomainfrom
feat/druid-35-oidc-authentication-method

Conversation

@dervoeti
Copy link
Member

@dervoeti dervoeti commented Feb 26, 2026

Description

The OIDC tests currently are failing for Druid 35.0.1, because it fails to negotiate the correct client authentication method with Keycloak. This patch allows explicitly setting a method, which our operator is going to do (PR up soon). I raised the same patch PR upstream: apache/druid#19020

I tested building Druid with the patch and then ran the OIDC test with druid.auth.pac4j.oidc.clientAuthenticationMethod set to client_secret_basic and it worked.

Definition of Done Checklist

Note

Not all of these items are applicable to all PRs, the author should update this template to only leave the boxes in that are relevant.

Please make sure all these things are done and tick the boxes

  • Changes are OpenShift compatible
  • All added packages (via microdnf or otherwise) have a comment on why they are added
  • Things not downloaded from Red Hat repositories should be mirrored in the Stackable repository and downloaded from there
  • All packages should have (if available) signatures/hashes verified
  • Add an entry to the CHANGELOG.md file
  • Integration tests ran successfully
TIP: Running integration tests with a new product image

The image can be built and uploaded to the kind cluster with the following commands:

boil build <IMAGE> --image-version <RELEASE_VERSION> --strip-architecture --load
kind load docker-image <MANIFEST_URI> --name=<name-of-your-test-cluster>

See the output of boil to retrieve the image manifest URI for <MANIFEST_URI>.

@dervoeti dervoeti self-assigned this Feb 26, 2026
@dervoeti dervoeti moved this to Development: Waiting for Review in Stackable Engineering Feb 26, 2026
@maltesander maltesander self-requested a review March 10, 2026 10:48
@maltesander maltesander moved this from Development: Waiting for Review to Development: In Review in Stackable Engineering Mar 10, 2026
Copy link
Member

@maltesander maltesander left a comment

Choose a reason for hiding this comment

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

The patch name is cut off in an unfortunate way: 0011-feat-add-configurable-clientAuthenticationMethod-to-.patch. And is it rather a "fix" than a "feature"?

dervoeti and others added 2 commits March 10, 2026 13:54
Co-authored-by: Malte Sander <malte.sander.it@gmail.com>
…into feat/druid-35-oidc-authentication-method
@dervoeti
Copy link
Member Author

The patch name is cut off in an unfortunate way: 0011-feat-add-configurable-clientAuthenticationMethod-to-.patch. And is it rather a "fix" than a "feature"?

Yeah that's the generated name by patchable, but I don't think it's important? Not sure. But the patch file itself contains the full message as Subject line.
And I think it's a feature, because it enables more configuration in Druid, even though it is probably often used to fix the problem. But it's also useful if you do not have that problem and want to change this OIDC parameter for some other reason, like you were fine with the default selection but now want something else. So it's not specifically a fix I'd say. A fix would be to make pac4j choose the default in a correct way maybe.

Copy link
Member

@maltesander maltesander left a comment

Choose a reason for hiding this comment

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

LGTM!

@dervoeti dervoeti added this pull request to the merge queue Mar 10, 2026
Merged via the queue into main with commit 89665bb Mar 10, 2026
3 checks passed
@dervoeti dervoeti deleted the feat/druid-35-oidc-authentication-method branch March 10, 2026 13:49
@dervoeti dervoeti moved this from Development: In Review to Development: Done in Stackable Engineering Mar 10, 2026
@dervoeti
Copy link
Member Author

No release note needed, this is not used currently, a future change in druid-operator will leverage this patch though (that one will have a release note).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Development: Done

Development

Successfully merging this pull request may close these issues.

2 participants