GitHub user hingu-8103 edited a discussion: [RFC] Kerberos Support for Hugegraph

Hi HugeGraph Dev Community,

I'd like to open a discussion on a proposed enhancement: **Kerberos Support for 
Apache HugeGraph**.

## Motivation

In many enterprise environments, Kerberos is the standard authentication 
mechanism for SSO and
centralized identity management.
Adding native Kerberos support would make HugeGraph easier to adopt in 
Kerberos-first deployments
while keeping existing authentication flows intact.

## Proposal

Introduce Kerberos support as an **opt-in, additive** capability across 
HugeGraph interfaces,
delivered in phases.
The implementation will use Java's built-in `org.ietf.jgss.*` (GSSAPI) and
`javax.security.auth.*` (JAAS), without adding new third-party dependencies.

## Key Highlights

- **Backward compatible:** existing auth behavior remains unchanged unless 
Kerberos is enabled
- **Phased delivery:** REST first, then Gremlin WebSocket, Cypher API, and 
SDKs/toolkits
- **Reusable foundation:** server-side token validation and principal mapping 
are implemented once and reused
- **Enterprise-friendly:** fits existing Kerberos/SSO environments

## Phase-wise Plan

**Phase 1 — REST API:**
Add Negotiate auth on the server and Kerberos support in the REST client.

**Phase 2 — Gremlin WebSocket:**
Add SASL GSSAPI support for Gremlin connections.

**Phase 3 — Cypher API:**
Add Kerberos handling for Cypher auth flow and client config.

**Phase 4 — SDKs / Toolkits:**
Add Kerberos support to language-specific clients and CLI tools.

---
RFC doc: [Kerberos Auth Support for 
HugeGraph](https://docs.google.com/document/d/176kYsA402FTIbGDrY8I8JV_IGcyRjUdY61YSDa7ALS8/edit?usp=sharing)
I welcome feedback on scope, sequencing, and rollout expectations.

Best regards,
Dev Hingu

GitHub link: https://github.com/apache/hugegraph/discussions/3156

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to