feat: RFC 8705 mTLS Client Authentication#837
Open
tatac1 wants to merge 2 commits intozitadel:mainfrom
Open
Conversation
Implement OAuth 2.0 Mutual-TLS Client Authentication and Certificate-Bound Access Tokens as specified in RFC 8705. Features: - tls_client_auth: PKI-based client authentication with CA chain validation - self_signed_tls_client_auth: Self-signed certificate authentication - Certificate-bound access tokens with cnf claim (x5t#S256) - Policy OID and EKU validation support - Reverse proxy certificate header support - LRU caching for DN parsing and thumbprint calculation - Discovery metadata output (tls_client_certificate_bound_access_tokens, mtls_endpoint_aliases) Token endpoints with mTLS support: - Token endpoint (code exchange, refresh, client_credentials) - Token exchange endpoint - JWT profile endpoint - Introspection endpoint - Revocation endpoint - UserInfo endpoint (certificate-bound token verification) Security: - Fail-closed model for mTLS clients - Startup validation of MTLSConfig - Certificate chain validation against Trust Store
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.
Closes #836
Summary
Implementation of RFC 8705 (OAuth 2.0 Mutual-TLS Client Authentication and Certificate-Bound Access Tokens).
Features
tls_client_auth- PKI-based client authentication with CA chain validationself_signed_tls_client_auth- Self-signed certificate authenticationcnfclaim withx5t#S256thumbprintChanges
pkg/op/mtls.gowith core mTLS implementation (~714 lines)pkg/op/mtls_test.go(114 tests)Test plan