Repository navigation
feat(tls): server-side mutual TLS (require client certificate) - #2
Open
jessemenning wants to merge 1 commit into
Open
jessemenning wants to merge 1 commit into
jessemenning wants to merge 1 commit into
Conversation
Adds `--https-require-client-certificate` / `FELDERA_REQUIRE_CLIENT_CERTIFICATES`. When set (with --enable-https), the HTTP servers verify client certificates against the configured CA(s) (`--https-tls-cert-path` and, if set, `--private-ca-cert-path`) via a rustls WebPkiClientVerifier, rejecting connections without a valid client cert at the TLS handshake. Default false (server-authenticated TLS only), so existing deployments are unaffected. This is the FIPS-posture identity model (FIPS-IDENTITY-HANDOFF.md #4): clients authenticate by mTLS on a validated module (the fips feature already routes rustls through aws-lc-rs FIPS) instead of a JWT, keeping the non-FIPS jsonwebtoken/ring path out of the boundary when FELDERA_AUTH_* is unset. Verified: cargo check -p pipeline-manager, fmt clean. Co-Authored-By: Claude Opus 4.8 <[email protected]>
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.
Implements the server side of the FIPS identity model (FIPS-IDENTITY-HANDOFF.md #4).
Feldera already has the
fipsfeature (rustls → aws-lc-rs FIPS) and server TLS, buthttps_server_config()used.with_no_client_auth()— so it never required/verified a client cert. This adds:--https-require-client-certificate/FELDERA_REQUIRE_CLIENT_CERTIFICATES(default false).--enable-https), the HTTP servers verify client certs against the configured CA(s) (--https-tls-cert-path, and--private-ca-cert-pathif set) via a rustlsWebPkiClientVerifier; connections without a valid client cert are rejected at the handshake.Clients then authenticate by mTLS on a validated module rather than a JWT, keeping the non-FIPS
jsonwebtoken/ringpath out of the boundary whenFELDERA_AUTH_*is unset.Verified:
cargo check -p pipeline-manager, fmt clean. (Not yet: a live mTLS handshake against the built server, and the--features fipsimage build.)🤖 Generated with Claude Code