Operations
FIPS 140-3
Praxis AI performs all of its cryptography in the system OpenSSL library.
On this page
Praxis AI performs all of its cryptography in the system OpenSSL library. On a Red Hat Enterprise Linux 9 host in FIPS mode that library’s provider is the validated module (Red Hat Enterprise Linux 9 OpenSSL FIPS Provider, CMVP certificate #4857 at the time of writing; Red Hat keeps the current list at https://access.redhat.com/compliance/fips), so a praxis-ai running there does its TLS, hashing and random numbers inside a FIPS 140-3 validated boundary. Praxis AI itself is not a validated module and never enables FIPS mode on its own: FIPS mode comes from the host, and praxis-ai reports and, on request, enforces it.
This page is for operators deploying the FIPS build. How the build is checked and how the tooling works is in FIPS Tooling.
The FIPS build
The standard build and image enable every non-experimental filter (full).
The FIPS build also excludes the policy engine. Neither enables experimental
Responses, stores or the agentic loop by default:
| Standard | FIPS | |
|---|---|---|
| Make targets | release, container | release-fips, container-fips |
| Cargo features | full | aws-sigv4-filter |
| Responses API and agentic loop | experimental opt-in | experimental opt-in |
aws_sigv4_sign filter (AWS request signing) | yes | yes: SHA-256 and HMAC-SHA256 through OpenSSL |
policy filter (policy engine) | yes | no: its dependencies carry their own cryptography |
| PostgreSQL Responses store | experimental opt-in | experimental opt-in: certificate-only SQLx profile through system OpenSSL |
| Conversations API | experimental opt-in | experimental opt-in: certificate-only SQLx profile through system OpenSSL |
| SQLite store, context compaction, MCP tools | experimental opt-in | no: their additional dependency boundaries have not been cleared for this profile |
openai_file_resolve | experimental opt-in | experimental opt-in: uses the shared subrequest transport |
azure_ad, gcp_adc, MCP tool dispatch | experimental opt-in | no: their dependency boundaries have not been cleared for this profile |
| Base image | Alpine, praxis-ai built with upstream Rust | ubi9/ubi-minimal, praxis-ai built with Red Hat’s rust-toolset on ubi9/ubi, both pinned by digest and signature-verified |
| OpenSSL | Alpine’s, dynamically linked | UBI’s, dynamically linked (openssl-libs and openssl-fips-provider-so), the validated module on a FIPS host |
| Published tags | <version>, <major>.<minor>, sha-<hash> (see image tags) | the same with a -fips suffix (0.3.0-fips) |
The FIPS build rejects a configuration that names an excluded filter at startup, as it would any unknown filter. Everything else (Anthropic Messages translation, guardrails, metering, identity and credential filters, the agentic protocol filters, TLS listeners, mTLS, SNI, the admin API and hot reload) behaves as in the standard build. The Makefile’s FIPS section tracks what blocks each excluded feature and how far away it is.
The binary links libcrypto.so.3 and libssl.so.3 dynamically. The only
crates performing security-relevant cryptography in the image are the rustls
protocol engine and the OpenSSL bindings, which delegate every primitive to the
system library. Scope and exemptions lists the other
crypto-adjacent crates.
For the experimental Responses and Conversations certificate-authenticated
store profile, use
make release-fips FIPS_FEATURES=aws-sigv4-filter,openai-responses,openai-file-resolve-filter,openai-conversations,store-postgres-cert-auth
or pass the same list as --build-arg CARGO_FEATURES=... to Containerfile.fips.
The agentic loop also requires openai-agentic-loop.
The certificate-only store pins SQLx to commit 637e7025 of a temporary fork,
which keeps migrations, PostgreSQL password authentication, and advisory-lock
string hashing independently optional, and includes the upstream compatibility
fix for patched libsqlite3-sys 0.39 releases. The pin can return to an
upstream release once transact-rs/sqlx#4417, transact-rs/sqlx#4420, and
transact-rs/sqlx#4421 land and are released. The cryptographic boundary of
that store is in
PostgreSQL cryptographic boundary.
Host prerequisites
- A RHEL 9 host in FIPS mode, enabled at install time or with
fips-mode-setup --enableand a reboot:cat /proc/sys/crypto/fips_enabledprints1andopenssl list -providerslistsfips. RHEL 9 is the validated operating environment. The module running inside the container is UBI’s ownopenssl-fips-provider-so; the host contributes the kernel flag. - A container runtime that passes the host’s FIPS mode into the container, as
podman and CRI-O on RHEL do. The
-fipsimage then needs no flag, environment variable or config: its OpenSSL reads the kernel flag and activates the validated provider itself. On a host not in FIPS mode the same image runs with OpenSSL’s default provider, and the startup log says so.
Startup: what praxis-ai reports and enforces
At startup praxis-ai installs its one crypto provider and logs what it found:
installed rustls crypto provider provider=openssl provider_fips=true kernel_fips=Some(true) crypto_policy=Some("FIPS") fips_required=true
provider_fips: whether the rustls crypto provider reports every algorithm it offers as FIPS approved (rustls’CryptoProvider::fips). On the OpenSSL-backed provider this reflectsEVP_default_properties_is_fips_enabled, the host’s effective FIPS property, queried through the provider’s safe API.kernel_fips:/proc/sys/crypto/fips_enabled;Nonewhere the file does not exist (a container without/proc, a non-Linux host).crypto_policy: the system crypto policy from/etc/crypto-policies/config;Noneon platforms that do not use system crypto policies. OnlyFIPSorFIPS:OSPP(which tightens FIPS) are accepted; subpolicies that loosen FIPS (NO-ENFORCE-EMS,SHA1) are rejected.
Set PRAXIS_REQUIRE_FIPS=1 (also true, yes, on) in production FIPS
deployments. It is a check, never a switch. praxis-ai then refuses to start
unless all three signals are present and positive, naming each missing one, and
refuses any listener TLS configuration that rustls does not consider
FIPS-approved. A fully attested FIPS deployment requires RHEL 9 or a derivative
that supports system crypto policies. Upstream connections always require
Extended Master Secret and share the same provider, so they are FIPS whenever
the listeners are. Without the variable, praxis-ai starts either way and only
logs the status.
The requirement also covers what the binary carries. A build that registers a
filter whose dependencies do their own cryptography outside the system OpenSSL
(the policy filter’s plugins, the response store’s sqlx) refuses
PRAXIS_REQUIRE_FIPS outright and names the filters, whatever the provider
reports. The response store is exempt only in the certificate-only SQLx
profile: store-postgres-cert-auth without store-postgres, store-sqlite,
openai-compact, or openai-mcp-tools. Only the FIPS build, which compiles
none of the others, can honor the variable; the standard image is refused by
design.
podman run --rm -e PRAXIS_REQUIRE_FIPS=1 ghcr.io/praxis-proxy/ai:0.3.0-fips
On a host that is not in FIPS mode this exits immediately with
fatal: PRAXIS_REQUIRE_FIPS is set but FIPS mode is not in effect: the OpenSSL provider does not report FIPS-approved algorithms (is the fips provider active?); the kernel is not in FIPS mode (/proc/sys/crypto/fips_enabled is 0); the system crypto policy is "DEFAULT", not FIPS (/etc/crypto-policies/config)
What changes under FIPS mode
- TLS 1.2 requires the Extended Master Secret extension (RFC 7627) on listeners and on upstream connections, in every build and regardless of FIPS mode; a TLS 1.2 peer that cannot negotiate it fails the handshake. TLS 1.3 is unaffected. FIPS 140-3 requires this of TLS 1.2 key derivation, and rustls counts a configuration as FIPS only with it.
- The provider offers only what the system OpenSSL can perform. In FIPS
mode non-approved algorithms are absent rather than failing later: for
example the ChaCha20-Poly1305 cipher suites are not offered, MD5 does not
exist, and keys or certificates the module refuses (short RSA keys, legacy
signature algorithms) are rejected at load or at first use. Which
algorithms are approved is decided by the validated module and the host’s
crypto policy, not by praxis-ai. A listener whose
cipher_suitesnames only suites the module does not offer fails to build in every build and mode, since it would have nothing to negotiate. - Random numbers come from OpenSSL’s DRBG (
RAND_priv_bytes) for every TLS operation. Non-security randomness (load-balancer picks, request ids) uses ordinary Rust RNGs, which protect nothing. - Digests praxis-ai computes itself (the Anthropic
user_idthat becomessafety_identifier, routing descriptor ids, MCP approval fingerprints, token-rate-limit bucket keys, overlay content hashes) go through OpenSSL’s SHA-256 in every build. None of them is a security function. - AWS request signing (
aws_sigv4_sign) is one: the payload and canonical-request SHA-256, the four-step HMAC-SHA256 key derivation and the signature all run through OpenSSL’s EVP digest and signing APIs, so on a FIPS host they execute inside the validated module. TheSigV4canonicalization itself is protocol text assembly in praxis-ai, checked in its tests against theaws-sigv4crate, which the binary does not link. - MCP gateway session ids (
mcpfilter withbackend_sessions) are another: each id carries an HMAC-SHA256 tag (256-bit key, full 256-bit tag) computed and checked through the same EVP signing API, with a constant-time comparison. The key comes from OpenSSL’s private DRBG (RAND_priv_bytes) and the id’s random bytes from its public DRBG (RAND_bytes), so on a FIPS host every step runs inside the validated module. If no key can be drawn, the filter fails to build; if the provider refuses the MAC,initializereturns a JSON-RPC internal error instead of issuing an unsigned id.
Verifying a deployment
On a developer machine (no FIPS host needed):
make fips-signature-store # once on Debian/Ubuntu: their podman has no entry for Red Hat's signature store
make fips-check # build on UBI 9 with Red Hat's toolchain, print the compliance report
make container-fips
make fips-scanner # build Red Hat's scanner (check-payload) at its pinned revision; needs Go
make fips-oc # download the OpenShift CLI the scanner insists on, checksum-verified
make fips-scan # run the scanner against the image, warnings fatal
On the FIPS host, what only it can prove (rootless podman required):
make fips-host-check # attest the host and the image's module build (target/fips/host-attestation.*)
make test-fips-host # the test suites as the FIPS build, inside the UBI 9 toolchain image, fail-closed on FIPS mode
make test-postgres-fips-host # certificate-authenticated store write/read through SQLx on the FIPS host
make fips-runtime-probe # run the FIPS image under PRAXIS_REQUIRE_FIPS=1 and probe its listener from outside
fips-host-check states every fact the module’s Security Policy requires of
the host (the kernel flag, fips=1 on the command line, the FIPS crypto
policy, fips-mode-setup --check, the module the host’s OpenSSL loads) and of
the image (the crypto policy podman propagates into it, the build of fips.so
it carries and whether that build is on a CMVP certificate). It writes the
attestation to target/fips/; keep it with the deployment record.
test-fips-host runs the suites with PRAXIS_FIPS_HOST=1, so a green run
cannot have happened outside FIPS mode. test-postgres-fips-host proves a
passwordless, certificate-authenticated store round trip and that SQLx refuses
a SCRAM challenge (details in The FIPS host run).
fips-runtime-probe starts the shipped image under PRAXIS_REQUIRE_FIPS=1,
drives raw TLS probes against its listener (approved algorithms negotiated,
ChaCha20-only and X25519-only clients refused), and checks the startup line.
The CI FIPS workflow runs all four on a RHEL 9 runner in FIPS mode for every
change. A release requires a recorded green fips-host run for the exact
commit being released, and the release workflow attests and probes the exact
pushed image, pulled back by digest, on the release run itself. See
The runner job.
A hand check of the shipped image remains a two-liner:
cat /proc/sys/crypto/fips_enabled # 1
podman run --rm -e PRAXIS_REQUIRE_FIPS=1 --entrypoint praxis-ai \
ghcr.io/praxis-proxy/ai:<version>-fips --validate
The second command validates the built-in configuration (pass -c with a
mounted file to validate yours) and exits 0, printing nothing, only when the
provider and the kernel both report FIPS mode. Listener TLS configurations are
checked, and the startup line above is logged, only when the real workload
starts, so run it with PRAXIS_REQUIRE_FIPS=1 too and keep that line as
evidence.
What is validated, and what is not
FIPS 140-3 validates a cryptographic module, not an application. The checks above prove that praxis-ai routes its cryptography through the OpenSSL provider the image carries and behaves as a FIPS deployment must. Three facts stay outside what this repository can prove:
- The module build. A certificate names one exact build of
fips.so. The pinned UBI 9 images carry a build rebuilt for a CVE fix that is still in validation with NIST;fips-host-checksays so on every run (a warning, or a failure under--require-certified) rather than letting the package name imply a certificate. See the shared tool’s certified-module inventory for the builds and sources. - The operating environment. The certificate lists tested operating environments; running elsewhere relies on the CMVP porting rules.
- The architecture. rustls performing the TLS handshake over the validated provider is praxis’s architecture, documented and tested here; whether a compliance program accepts it is that program’s judgment, not a fact this repository can assert.
Scope and exemptions
Every crypto-adjacent component in the FIPS image, and why it is compliant. The per-operation record for both builds is the cryptographic operations inventory.
| Component | Use | Disposition |
|---|---|---|
| rustls, rustls-webpki, rustls-pki-types, rustls-pemfile, rustls-native-certs, tokio-rustls | TLS protocol engine, X.509 path building, PEM parsing, system roots; no cryptography of their own | compliant through the OpenSSL provider |
rustls-openssl (published from the Pingora fork as quixotic-plecostomus-rustls-openssl), openssl, openssl-sys, openssl-probe | the provider and the bindings; dynamic link to the system libcrypto.so.3 | compliant |
| rand, rand_chacha, chacha20 | load-balancer picks and jitter (rand’s ChaCha-based RNG) | not security functions |
| rand_xoshiro | transitive metrics-util dependency; its sampling reservoir is not constructed by the Prometheus exporter | no runtime operation |
| ahash, crc32fast, blake2, digest, crypto-common | hash maps, gzip checksums, Pingora cache keys | not security functions |
x509-parser, asn1-rs, der-parser, oid-registry (parsing only, no verify feature) | peer certificate fields in the Pingora fork | parse only |
| subtle, zeroize, secrecy | constant-time comparison, wiping, secret wrappers | helpers |
policy engine (policy filter) | JWT, OAuth, Valkey builtins carry aws-lc, sha2 and hmac | not in the FIPS build |
aws_sigv4_sign filter | SHA-256 and HMAC-SHA256 for SigV4 through OpenSSL (praxis_ai_apis::hash) | compliant; the aws-sigv4 crate (RustCrypto hmac/sha2) is a test-only dependency |
mcp filter (backend_sessions) | HMAC-SHA256 gateway session ids and their key through OpenSSL (praxis_ai_apis::hash) | compliant |
| PostgreSQL Responses store | SQL transport and client-certificate authentication | compliant through system OpenSSL; migrations, password authentication, and advisory-lock hashing are not compiled |
| Conversations API | Conversations state in PostgreSQL through the certificate-only SQLx profile | compliant through system OpenSSL; the store uses store-postgres-cert-auth (no migrations, no password authentication) |
| SQLite store, compaction, MCP tools | sqlx’s sha2 (migration checksums), sqlx-postgres’ md-5/hmac/sha2/hkdf/rsa (SCRAM) | not in the FIPS build |
openai_file_resolve filter | shared subrequest transport (TLS through the installed OpenSSL-backed provider) | experimental opt-in; not in the default FIPS feature set |
azure_ad, MCP tool dispatch | reqwest over rustls with no bundled provider (TLS through the installed OpenSSL-backed provider); MCP tool dispatch additionally requires the store | not in the FIPS build |
gcp_adc filter | shared subrequest transport (TLS through the installed OpenSSL-backed provider); the key_file source signs its RS256 assertion through OpenSSL’s EVP signing API | not in the FIPS build (experimental) |
basic_auth filter (praxis core) | password hashing through OpenSSL’s SHA-256 (EVP) | compliant; experimental in praxis-ai and off in every build unless enabled |
| sha2, hmac, aws-sigv4, rcgen (with ring) | test utilities, fixtures, xtask and the SigV4 test oracle | development only, absent from the shipped binary and its manifest; aws-lc-rs itself is gone from every graph, the policy engine aside |
The report and Red Hat’s scanner both confirm the last row on every build: the embedded crate manifest lists none of the denied crates, and the binary defines no symbol of a bundled crypto backend.
Release readiness
The release checklist includes
FIPS-specific items. The release workflow’s fips-proof job blocks publication
unless a successful fips-host run exists for the release commit, and the
release CI evidence table records the FIPS workflow outcome alongside every
other tracked workflow.