Add pluggable Kerberos implementation support with Apache Kerby integration#72
Draft
Add pluggable Kerberos implementation support with Apache Kerby integration#72
Conversation
Co-authored-by: bedrin <4654384+bedrin@users.noreply.github.com>
…tions Co-authored-by: bedrin <4654384+bedrin@users.noreply.github.com>
Co-authored-by: bedrin <4654384+bedrin@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Support apache kerby
Add pluggable Kerberos implementation support with Apache Kerby integration
Aug 30, 2025
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.
This PR introduces a comprehensive integration layer that allows Kerb4J to support multiple Kerberos implementations, addressing the need for flexibility and reduced dependency on JDK-specific implementations.
Overview
Kerb4J now supports pluggable Kerberos backends through a Service Provider Interface (SPI) architecture. Users can choose between the traditional JDK GSS API implementation and the new Apache Kerby implementation based on their requirements.
Key Features
🏗️ Pluggable Architecture
kerb4j-integration-apimodule with core interfaces (KerberosClient,KerberosContext,KerberosClientFactory)🔧 Multiple Implementations
kerb4j-integration-jdk): Wraps existingSpnegoClientfunctionalitykerb4j-integration-kerby): Pure Java, cross-platform alternative🔄 Full Backward Compatibility
SpnegoClientAPI remains availableUsage Examples
Basic Usage with Auto-Discovery
Explicit Implementation Selection
Backward Compatibility
Maven Dependencies
Implementation Status
Benefits
Testing
The Apache Kerby implementation is currently a functional proof-of-concept demonstrating the architecture's extensibility. Full Apache Kerby integration can be enhanced in future iterations based on community needs.
Fixes #71.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
server.springsource.org/usr/lib/jvm/temurin-17-jdk-amd64/bin/java -jar /home/REDACTED/work/kerb4j/kerb4j/kerb4j-server/kerb4j-server-spring-security/target/surefire/surefirebooter-20250830093602376_24.jar /home/REDACTED/work/kerb4j/kerb4j/kerb4j-server/kerb4j-server-spring-security/target/surefire 2025-08-30T09-35-40_822-jvmRun1 surefire-20250830093602376_22tmp surefire_4-20250830093602376_23tmp(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.