KNOX-3359 - Support Single-Purpose EKU Certificates#1291
Open
moresandeep wants to merge 3 commits into
Open
Conversation
Design for separate client/server keystores and truststores to support single-purpose (single-EKU) certificates, gated behind an explicit gateway.tls.single.eku.enabled toggle with fail-fast startup validation.
…ulting to true when single-EKU is on wire gateway.httpclient.twoWaySsl.enabled into DefaultHttpClientFactory; update log message
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
(It is very important that you created an Apache Knox JIRA for this change and that the PR title/commit message includes the Apache Knox JIRA ID!)
KNOX-3359 - Support Single-Purpose EKU Certificates
Public CAs are retiring dual purpose certificates that carry both serverAuth and clientAuth Extended Key Usages. This change allows Knox to use two separate keystores, one for its inbound TLS server identity (serverAuth only) and one for its outbound mTLS client identity (clientAuth only).
What changes were proposed in this pull request?
gateway.tls.single.eku.enabled— new toggle that activates single-EKU mode. Off by default all existing behavior is unchanged when it is off.gateway.httpclient.twoWaySsl.enabled— new global flag to activate outbound mTLS across all dispatches without requiring use-two-way-ssl="true" on every service definition. Automatically defaults to true whengateway.tls.single.eku.enabled=true, so enabling single-EKU mode is a single config change with sane defaults.How was this patch tested?
Unit Tests
Manual Tests
Tested the following scenarios
Happy path: clientAuth cert + basic auth → 200, backend sees knox-client
No client cert → inbound TLS handshake rejected (client.auth.needed=true)
serverAuth-ONLY cert presented as inbound client cert → rejected (EKU check)
Valid client cert but NO credentials → TLS ok, HTTP 401 from Knox'
Integration Tests
Added new integration tests
UI changes
NA