Skip to content

feat(tls): server-side mutual TLS (require client certificate) - #2

Open
jessemenning wants to merge 1 commit into
feat/solace-connectorfrom
feat/fips-server-mtls
Open

jessemenning wants to merge 1 commit into
feat/solace-connectorfrom
feat/fips-server-mtls

Conversation

@jessemenning

Copy link
Copy Markdown
Owner

Implements the server side of the FIPS identity model (FIPS-IDENTITY-HANDOFF.md #4).

Feldera already has the fips feature (rustls → aws-lc-rs FIPS) and server TLS, but https_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).
  • When set (with --enable-https), the HTTP servers verify client certs against the configured CA(s) (--https-tls-cert-path, and --private-ca-cert-path if set) via a rustls WebPkiClientVerifier; 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/ring path out of the boundary when FELDERA_AUTH_* is unset.

Verified: cargo check -p pipeline-manager, fmt clean. (Not yet: a live mTLS handshake against the built server, and the --features fips image build.)

🤖 Generated with Claude Code

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant