Releases
Changelog
What changed in each Praxis project, release by release. Entries come from the changelog shipped with the release these docs describe.
AI gateway
AI gateway v0.12.1 does not ship a changelog file. Each release's notes are on GitHub.
Proxy foundation
Added
Policy rate limiting (experimental): the policy filter runs a policy’s
rate_limits:before identity resolution, keyed on the client address, and after it, keyed on the resolved identity, each once per request. A denial returns 429 withRetry-After(or 400, 401 or 503), fixed text and only the limit counters, never the limiter’s own message, and does not reach the upstream. Counters are per replica and reset on reload. See the examplesecurity/policy-rate-limit.yaml.Query-parameter credentials for the policy filter (
credential: { kind: query_param, name: ... }withread_query), with the examplesecurity/policy-query-credential.yaml. A repeated or percent-encoded repeated parameter is denied as ambiguous. Query strings can appear in access logs outside Policy; prefer a header where the client can send one.Implicit cluster references: an inline load-balancer cluster that shares its name with a top-level cluster may omit its endpoints, which are filled in from the declaration at validation time, keeping the routed and health-checked addresses together. A divergent endpoint list now warns at startup and on reload, and an inline
health_checkis rejected: probes are configured only at top level. Filling is capped at 16 MiB of copied endpoint data in validation and again in each pipeline build, so many references to one large declaration cannot expand a small config into an out-of-memory reload.A support diagnostics reference covering config checks, live state, logging, reloads and draining before shutdown.
SUPPORT.mdwith guidance on where to ask questions, report bugs, report security vulnerabilities, and propose enhancements.runtime.overload_gaugespublishespraxis_overload_pressurefor cgroup memory, anonymous resident memory, CPU stall time, connections, and file descriptors. The gauges do not shed load.A
forward_proxyblock onprotocol: httplisteners, behind the experimentalforward-proxycargo feature (off by default; config surface for CONNECT-based forward proxying): destination allowlisting with wildcard host patterns and optional ports, tunnel idle timeout and optional max duration. Validation rejects the block on TCP listeners and requires egress control (a non-emptyallow_destinationslist or anip_acl/policyfilter withoutconditionsin the listener’s chains); the check is structural — that the configured control actually restricts egress remains the operator’s responsibility. Destination patterns ending in a numeric label (*.0.1) are rejected so no pattern can match an IP literal. A reload that changes a bound listener’sforward_proxyblock, removes a listener that has one, or changesinsecure_options.allow_private_upstreamswhile a bound listener has an enabled block, is rejected. The CONNECT runtime is a follow-up change; the block is inert until it lands.An experimental network backend behind the
hyperfeature, off by default: the proxy data path, TCP forwarder, admin surface and sub-request client on hyper 1.x. Seedocs/architecture/hyper-backend.md.Experimental
tls-health-checkfeature for TLS handshake probes and HTTPS health endpoints using cluster certificates and startup runtime trust. Handshake probes detect client-certificate rejection alerts after sendingclose_notify, allowing the greater of 100 ms and the connection and handshake duration, capped by the remaining probe timeout. Completed handshakes remain healthy when that deadline expires without a response. Rust consumers matchingHealthCheckTypeexhaustively must handle the newTlsvariant even when the feature is disabled.Granular Policy Engine Cargo features.
policy-builtins(on by default) is the complete bundle; a--no-default-featuresbuild namespolicy-engineor individual builtins (policy-api-key,policy-jwt,policy-oauth,policy-cedar, …) plus exactly one shared crypto backend,policy-crypto-defaultorpolicy-crypto-fips. A policy naming a plugin kind the build did not compile in fails to load.praxis --versionlists the compiled Policy features. Seedocs/operating/build-features.md.The default build includes Policy’s experimental rate limiter (
ratelimit/limitador, featurepolicy-experimental-ratelimit). It counts nothing unless a policy declares the plugin and lists it underrate_limits:, and loading such a policy logs a warning at startup and on every reload. Because the default build now carries an experimental feature, it logs the experimental-features warning at startup, which now names each experimental feature compiled in.Opt-in Policy FIPS profiles:
FIPS_POLICY_PROFILE=engine|api-key|jwt|bothselects Policy on its OpenSSL FIPS backend for every FIPS Make target, includingcontainer-fips(a separately tagged image) andfips-runtime-probe, which then sends API-key, JWT and DPoP traffic through the image.make test-fips-providerruns a profile’s suites on Red Hat’s FIPS module on any host. The default FIPS build and image stay policy-free. New example:security/policy-jwt-fips.yaml.make fips-depsalso checks the FIPS unit-test graph: test edges may not unify crypto features intojsonwebtoken, Policy, rustls or openssl, never bring inaws-lc-rs, and bring in another denied crate only with a recorded reason.The policy filter registers the
envsecret provider, so a policy document’ssecrets:block usingenvnow loads instead of failing at startup. Any other provider kind, includingfileandvault, is still refused. Values are read when the filter is built, so a changed value takes effect on the next restart.
Changed
Clarify that the default Pingora shutdown grace period is capped at five seconds, including for streaming responses, regardless of a larger
shutdown_timeout_secsvalue.Bodyless requests on LLM policies, such as
GET /v1/models, now run HTTP authorization, delegation and request assertions before they reach the upstream: a matchinghttp:route, or theglobalrules otherwise. Before, a valid identity alone admitted them. Migration: a global rule that requiresllm.requestnow denies discovery; move inference-only rules intollm:routes orglobal.defaults.llm. A startup warning names thellm.require_model: falseandrequire_protocol_metadata: falsefallbacks, which still admit on identity alone.The policy filter refuses to build when a JWT trusted issuer enables DPoP (
dpop.mode: optionalorrequired) withoutdpop.external_base_url, so the proof’shtunever depends on the client-sentHostheader. The error names the plugin and the issuer. Set the URL clients address, such ashttps://api.example.com. A reload with such a document is rejected and the previous pipeline keeps serving.A Policy crypto backend failure (no SHA-256 provider, non-FIPS OpenSSL defaults under FIPS JWT, or another
jsonwebtokenprovider installed first) now fails policy filter construction with apolicy.crypto_failederror naming the remedy, at startup and on reload, instead of surfacing as request-time denials.PRAXIS_REQUIRE_FIPSjudges a registeredpolicyfilter by Policy’s compiled crypto capability report instead of refusing it outright. It still refuses the default build, any host policy plugin factory, and the unvalidated combination ofpolicy-experimental-ratelimitwithpolicy-crypto-fips. The default FIPS build stays policy-free.Default accumulated bodies and buffered subrequest responses to a 64 MiB cap, configurable through
body_limits.max_buffer_bytes. The cap covers explicit filter limits, runtime-selected buffering, nested pipelines, and iterative-router state, including after reload. Request and response transfer limits retain their 10 MiB defaults and remain independent for streams. Larger JSON, policy, gRPC-Web, and iterative-router buffer settings are accepted subject to the configured cap.Keep Pingora uploads open while runtime-selected buffering withholds non-final chunks, instead of sending a premature upstream end marker.
The policy engine is updated to PPE 0.6.0. Its OAuth
delegate(...)validation is stricter by default: a token-exchange response must name an access-token or JWTissued_token_type, unrequested scopes outsideallowed_extra_scopesare refused, and a minted JWT’saudandsubmust match.strict_response_validation: falseturns these checks off. JWTs with an unsupportedcritheader are rejected, anenvsecret provider with unused settings fails to load, and CELsize()andexists()change in ways that can allow requests that were denied. Seedocs/filters/http/security/policy.md.KvStoreRegistry::registeradds a caller-suppliedKvBackendunder a name, rejecting duplicates withKvRegistryError::AlreadyRegistered.KvStoreRegistry::get_or_create_memorydeliberately creates an in-memory store.Breaking: every
sticky_sessionscluster now requires astoragefield, and startup fails withmissing field 'storage'when it is omitted. The only value islocal, which keeps session bindings in the proxy process: they are not shared between replicas and do not survive a restart, so stickiness behind a load balancer is per-process. That was already the behaviour; it is now a stated choice rather than a silent default. Addstorage: localto each cluster to keep the current behaviour. Seedocs/filters/http/traffic_management/sticky_sessions.md.FilterPipeline::build_with_chainstakes a new requiredtop_level_clusters: &[Cluster]argument. Rust callers pass the config’s top-levelclusters:list, or&[]when none exists.
Removed
KvStoreRegistry::get_or_create, which silently created an in-memory store for any unknown name. Usegetto look up a configured store, orget_or_create_memoryto choose memory explicitly.
Fixed
Pingora sub-request connections now respect the cluster
idle_timeout_mswhen returned to the pool, avoiding reuse of idle connections silently dropped by NAT or firewall state.The policy filter resolves
http.client_addressthroughtrusted_proxieson every request path.On inference requests a
ratelimit.post_identitylimiter can bindllm.model_id,llm.providerandcustom.llm.*; such a limiter used to deny every request.Remove forbidden
Content-LengthandTransfer-Encodingheaders from 204 responses after response filters run, preserving valid downstream framing for the following response.Preserve valid
Content-Lengthmetadata on Hyper HTTP/1 304 responses while keeping them bodyless, including responses with huge hypothetical lengths.Count an original request-body prefix once across Pingora retries while continuing to count newly received tail bytes. Stale-connection retries also respect the 64 KiB original and final transformed body retention ceiling. Requests whose streaming writer output was not retained now return the upstream error instead of retrying with an unsafe reconstruction.
Decode
grpc-web-textrequest bodies during pre-read inspection before forwarding them to HTTP/2 backends. Invalid base64 now follows the filter rejection policy even before request-phase state is initialized.Flush small HTTP/1.1 server-sent events promptly when the upstream supplies
Content-Length. Body-bearing event streams use chunked downstream framing; the upstream length still detects truncated responses.A delegated credential is sent with its own prefix rather than always
Bearer, so a Vault credential with noscheme_prefixgoes out bare and a custom prefix such astokenis kept.A request header asserted from
secret.<name>stays redacted in the views that request-body and response policy hooks receive, rather than reaching those plugins and PDPs in plaintext.Request-body limit rejections log structured warnings and return JSON 413 responses across buffering and streaming paths. Body-phase rejections for requests armed by
grpc_statusreturn gRPC Trailers-Only responses instead. Oversized declared Content-Length values, including validated matching comma-separated lengths, are rejected before reading the body or sending 100 Continue. Local body-limit rejections are not retried upstream, even when 413 is configured as retriable. HEAD rejection responses retain representation headers without sending payload bytes, including over HTTP/2. Streaming rejections also cancel HTTP/2 upstream streams promptly instead of waiting for an upstream response or allowing it to replace the rejection.Early HTTP/1 responses with unread uploads use Pingora’s write-side shutdown and bounded cleanup before closing, including authentication and rate-limit rejections and successful terminal responses. Cleanup has a 30-second deadline and a 128 MiB discard budget checked between body reads. Streaming rejections release the upstream before responding; access logs and request duration metrics are recorded before downstream cleanup. Expected client-error filter rejections no longer produce a duplicate Pingora error log.
The FIPS runtime probe selects the Pingora backend when compiling its listener tests with default features disabled.
The Hyper backend rejects reserved client trailer names before forwarding or retaining them for replay, including streamed and pre-read uploads.
The Hyper backend applies the retry policy to failures on pooled connections, preventing POST replays without opt-in and enforcing the configured retry limit.
The Hyper backend stops the runtime if a required listener exits during startup or serving, including a failed socket in a TCP listener group.
The Hyper backend preserves request trailers through pre-read and retries to HTTP/2 upstreams, and rejects unsupported HTTP/1 uploads with trailers.
The Hyper backend rejects strict HTTP/2 TLS upstreams that do not negotiate
h2through ALPN. Automatic HTTP version selection still allows HTTP/1.1.
Security
trusted_proxiesin the policy andforwarded_headersfilters matches a proxy range only within its address family.0.0.0.0/0no longer trusts IPv6 peers (nor::/0IPv4 ones), so on a dual-stack listener a direct client of the other family cannot setX-Forwarded-Forto choose its client address.Updated
ctutilsto addressRUSTSEC-2026-0385.The policy filter no longer forwards a delegated token while the caller’s credential sits where it cannot be stripped from the upstream request, such as a query parameter. That request now receives HTTP 500 (
policy.unstrippable_credential) instead of reaching the upstream with both credentials. A policy that reads a query credential and also delegates fails to load.Every policy hook now sees the request as the client sent it: the raw query, the effective client address as
http.client_address(the TCP peer, or withtrusted_proxiesthe rightmost untrustedX-Forwarded-Forhop; absent when a trusted chain cannot be resolved because of a malformed hop, which denies address-keyed rate limits), the validated bare host ashttp.host(lowercased, no port), and a scheme taken from the downstream TLS state, never fromX-Forwarded-Proto. Before, response and body-phase hooks rebuilt this from a request that earlier phases could already have changed, and the scheme was usually missing. Placepolicybeforepath_rewrite,url_rewriteand header-rewriting filters.A policy with request assertions but no
http.requestrules and no entity routes now applies its header set and strip rules instead of admitting the request on identity alone.A delegation where no minted token forms a valid upstream header now receives HTTP 500 (
policy.delegation_failed) instead of forwarding the inbound credential.With
PRAXIS_REQUIRE_FIPSset, building the policy filter refuses a build that is not FIPS-capable (such as a host plugin factory registered after startup), so that reload fails and the previous pipeline stays in place.Apply the policy filter’s configured failure mode when a classified tool response is malformed JSON or lacks both a result and a valid JSON-RPC error. Policies with tool response hooks no longer silently skip those inputs; fail-closed pipelines stop delivery before the buffered payload escapes.
Validate the complete input’s UTF-8 before
json_bodyrewrites orjson_body_fieldheader promotion. Invalid bytes in ignored JSON values can no longer produce trusted metadata or bypass the configured invalid-input behavior.Disable TLS session resumption on listeners with client authentication and TLS hot-reload. A handshake authenticated before a CA/CRL reload could finish afterward and cache stale authentication, allowing new connections to bypass the updated trust. New connections now perform full certificate verification; static mTLS and non-mTLS listeners retain resumption.
Show changes in v0.7.5
Added
policyfilter acceptscontext_headersandcontext_metaconfiguration.context_headersmaps reserved-prefix HTTP headers to typedagent.*/framework.*extension fields (via a closedContextFieldenum) so APL rules can reference host-injected values.context_metastamps operator- definedscope,tags, andpropertiesonto every policy evaluation;scopefeeds the PPE’s scoped route resolver for both authentication and authorization. (#1388)- A network backend contract, so an alternative to Pingora can be dropped
in behind a Cargo feature:
praxis_core::server::ServerRuntime,praxis_core::egress::{PeerSpec, Connector, Session},praxis_protocol::http::health::AdminRequest, and thebackendmodules inpraxis-proxy-coreandpraxis-proxy-protocolthat resolve to the selected backend.docs/developing/adding-backends.mddescribes what a backend implements. (#1407) - With the
hedged-requestsfeature, an eligible idempotent request is raced across healthy endpoints and the first 2xx, 3xx, or 4xx response is returned. The feature is off by default; when it is off, a configuredhedge_policyis still parsed and every request stays on one upstream. (#1372) - Clusters accept an optional
slow_start(window_ms,aggression) when built with theslow-startfeature. Round robin, random, least-connections, and power-of-two-choices apply the ramp, including inside subset, priority, and zone-aware selection. Hash strategies keep the configured weight. (#1364, #1406, #110) - FIPS crypto-readiness settings that let an operator require and verify FIPS-mode cryptography, with tests covering the readiness checks. (#1365)
- A request-head filter lifecycle phase and a
head_classifierfilter that run on the request head before the body phase. (#1380)
Changed
- Breaking: the Pingora backend is now the
pingoraCargo feature ofpraxis-proxy,praxis-proxy-protocolandpraxis-proxy-core, on by default. A--no-default-featuresbuild (the FIPS build included) names it:--features pingora,config-reload,admin-api. A build with no backend feature refuses to compile the binary. (#1407) - Breaking: sub-request peers are
praxis_core::egress::PeerSpecinstead of Pingora’sHttpPeer:SubRequestClient::execute,send_streaming,HttpFilterContext::execute_subrequest,send_streaming_subrequestandPreparedSubrequest::{peers, peer_at}take or return it, andSubRequestClient::with_upstream_catakes the cached CA certificates rather than Pingora’s parsed form.praxis-proxy-filterno longer depends on Pingora. (#1407) - Breaking:
Protocol::registertakes&mut praxis_core::backend::Runtime(the same type as before under the default feature). The admin, health and metrics listeners are registered throughpraxis_protocol::backend::admin; the*_to_pingora_serverfunctions remain for callers holding a raw PingoraServer. The Praxis-owned health, metrics and KV modules are reachable aspraxis_protocol::http::{health, metrics, kv}. (#1407) - Breaking: Rust API:
SubResponsehas a new publicversionfield, so struct literals needversion. (#1372)
Fixed
praxis-proxy-filterexposes the streaming body mode after a buffered body is released. (#1382)- A stalled per-call DNS lookup is bounded so it no longer holds its admission slot indefinitely. (#1383)
- The
policyfilter dispatches prompt and resource post hooks on the response. (#1356)
Security
- Updated
rustls-webpkito 0.103.16 to reject certificate paths containing distrusted emSign intermediate public keys (RUSTSEC-2026-0382). rustlsis 0.23.46, which fixes buffered application data sent after ECH rejection, Brotli certificate decompression allocating before authentication, an unauthenticated ServerHello downgrading later connections, andDebugimpls exposing TLS secrets (RUSTSEC-2026-0347,RUSTSEC-2026-0348,RUSTSEC-2026-0349,RUSTSEC-2026-0346).- URL-mode sub-requests no longer include their path in debug connection events. Paths supplied by clients can contain bearer tokens or signed download identifiers; the actual outbound request target is unchanged. (#1419)
Show changes in v0.7.4
Added
- Named filter chains take a
conditions:list that every filter in the chain inherits, ANDed with the filter’s own conditions, wherever the chain is used (listeners, branch chains, outbound bindings). (#1286) access_logtakes an optionaltemplatethat renders each record as one text line from{field}placeholders, such as'{method} {path} {status} {duration_ms}ms'. It can’t be combined withfields. (#1323)access_logtakes an optionalsinkthat writes records to stdout or to a file opened for append, as NDJSON (or thetemplateline, if one is set), bypassing the tracing subscriber. Delivery is best effort: if the writer falls behind, records are dropped rather than blocking requests. (#1324)url_rewritehas apreserve_query_params_onlyoperation that keeps only the listed query parameters and drops the rest. (#1339)- With the
otelfeature and an OTLP exporter, Praxis continues a valid inbound W3Ctraceparentand exports a client span for each upstream attempt, so traces link across Praxis hops. The forwardedtraceparentnow names that client span instead of a synthetic hop ID. (#1347) - Filter conditions take
headers_present, a list of header names that must all be present (any value), in both request and response conditions. (#1348) - Rust API:
praxis-proxy-filteradds theClientResponseHeadersCommittedandStreamBodySuppressedrequest extension markers, a typedCalloutResponseTooLargeerror, andFilteredSubrequestExecutor::for_callout_with_limitsfor separate buffered and streaming callout limits. (#1349) routerroutes accept an optionalhedge_policy(initial_requests,max_attempts,per_try_timeout_ms,budget_percent), validated at load. The policy is parsed but, without thehedged-requestsfeature, every request still stays on one upstream. (#1361)
Changed
- Breaking:
/healthy,/readyand/metricsmoved offadmin.addressto their own listener,admin.metrics_address, which may bind a non-loopback address withoutinsecure_options.allow_public_admin. Set it and move probes and scrapes there. The container image now exposes and health-checks port 9902 instead of 9901. (#1342) - Config validation rejects an
admin.addressoradmin.metrics_addressthat overlaps the other or a proxy listener. (#1342) - Breaking: Rust API:
ConditionMatchandResponseConditionMatchhave a new publicheaders_presentfield, so struct literals needheaders_present: None. (#1348)
Removed
- Breaking: Rust API:
praxis-proxy-protocoldropsadd_admin_endpoints_to_pingora_serverandadd_admin_endpoints_to_pingora_server_with_recorder. Useadd_admin_api_to_pingora_server,add_health_endpoint_to_pingora_server_with_pipelinesandadd_prometheus_upkeep_to_pingora_server. (#1342) - Breaking: Rust API:
praxis-proxy-filterdropsset_policy_subrequest_connectorandregistered_policy_subrequest_connector. CallFilterRegistry::set_policy_connectoron the registry you build pipelines from. (#1344)
Fixed
- HTTP/1.1 responses with a body go out chunked when a response filter removes
the upstream
Content-Length. Before, they were delimited by closing the connection, so clients couldn’t reuse it. (#1284) - A retry that moves to another endpoint keeps the SNI the first attempt took
from the cluster authority or the client
Host, instead of using the new endpoint’s address (or no SNI at all for an IP endpoint). (#1343) - Policy filters built for two runtimes in one process no longer end up on each other’s sub-request pool, admission limit and circuit breaker. (#1344)
- A TLS cluster that reaches an IP endpoint without
tls.sninow verifies it against the certificate’s IP SAN; before, every request failed with a 502, verify on or off.authority: { from: endpoint }with IP endpoints no longer needsallow_tls_without_sni. (#1345) - Rust API:
Config::from_yamlandConfig::validatereject a badruntime.log_overridesentry. Before, such a config loaded fine and failed later unless the caller ran the logging validators itself. (#1346) - Bodies buffered in
StreamBuffermode now hold memory in proportion to the payload. Before, lots of tiny chunks (small HTTP/2 DATA frames, say) could keep far more memory alive than the body limit allowed. (#1351)
Security
--dumpand the admin/api/pipelinesview now redact credential-looking header matcher values (authorization,x-session-idand the like) in filter and chain conditions, and--dumpredactscredential_injectionvalues nested initerative_request_routersteps. Both used to print them as configured. (#1286)
Releases 0.1.0 through 0.7.3 came out before this file existed; their notes are on GitHub Releases.
- Named filter chains take a
Policy
Added
- Typed metadata source dispatch.
MetadataFetchHook,MetadataFetchRequestandMetadataFetchResultlet callers select one configured source and invoke itsmetadata.fetchhandler through the normal executor, with capability filtering and error handling. The framework owns validation, provenance stamping and installation of acquired facts. (#281) - APL metadata fetching.
fetch(name)acquires immutable facts inauthorization.pre_invocationand makes them available immediately to later predicates and PDPs undermetadata.<name>.*. Sources are validated at load; each source may be fetched once per compiled route, and fetches cannot run inparallel.on_error: failstops authorization without publishing a record;ignorepublishes a valid source error record and continues. Malformed or missing records and framework failures always fail closed.praxis_policy_apl_core::stepaddsFetchStep,MetadataFetchOutcomeandMetadataFetchError. The newPluginInvoker::fetch_metadatamethod defaults to rejecting unsupported fetches, preserving existing implementations.AcquiredFacts::validate()exposes the core record validation rules. (#287)
Changed
- Breaking for Rust callers:
EffectaddsFetch; downstream exhaustive matches must handle the new variant.RouteDispatchPlanaddsmetadata_entries; exhaustive struct literals must initialize it or use..Default::default(), and exhaustive destructuring must name the field or use... Both types are also reachable through thepraxis_policyfacade’s crate re-exports.RoutePluginEntry::pick_entrytakes a new leadingrequested_familyargument; pass the dispatching hook’sHookTypeDef::NAME. (#287) - Breaking for metadata sources: a plugin reached by APL
fetch(name)must usemode: sequential;transformand other modes cannot return the awaited typed record required for publication. Sources must declaremetadata.fetchand useon_error: failorignore. (#287)
Fixed
- APL step dispatch picked hooks across families. A plugin that registered
a CMF hook alongside an unphased hook such as
metadata.fetch,identity.resolveortoken.delegatecould have arun()step dispatched to the unphased hook, depending on hash order, and denied with a payload type mismatch. Step dispatch now also matches the hook family. (#287) - Experimental rate-limiter dependency maintenance. Updated Limitador to
0.14.1, removing its Postcard default-feature dependency on unmaintainedheapless 0.7.17and the unused transitive dependencies it pulled in. (#355)
Internal
- Documented revocation and transaction-token requirements, including proposed enforcement points, signal freshness, credential lineage and phased delivery. This is a design document; runtime enforcement is not implemented. (#284)
- Added supply-chain maintenance exceptions for unmaintained
chronoandchrono-tz(RUSTSEC-2026-0543 and RUSTSEC-2026-0555), which remain runtime dependencies of the engine and bundled PDPs with no patched release.
- Typed metadata source dispatch.
Show changes in v0.6.0
Added
JWT and DPoP under FIPS. The
jwt-openssl-fipsfeature verifiesidentity/jwttokens and DPoP proofs with system OpenSSL under the FIPS provider, whilejsonwebtokenkeeps parsing, JWKS selection and claim validation. It requiresfipsand cannot be combined withjwt, which keeps AWS-LC. RS256 to RS512, PS256 to PS512, ES256 and ES384 are supported, with RSA keys of 2048 to 8192 bits and a FIPS 186-5 public exponent, and EC keys on P-256 or P-384. Other inline and file keys are refused at load, other JWKS entries are skipped on refresh, and other client-supplied DPoP proof keys are refused when the proof is verified. The DPoPathhash and JWK thumbprint use the shared SHA-256 backend.fips,jwt-openssl-fipspassesfips_profile_is_safe(), with or withoutapi-key. Building a resolver checks that the FIPS provider is the OpenSSL default and refuses a conflictingjsonwebtokenprovider, withpolicy_crypto_failure.Backend-selected randomness.
praxis_policy_core::crypto::random_bytesdraws secret material from the OS undercrypto-rustcryptoand from OpenSSL’s private DRBG underfips, failing unless the FIPS provider is the default. The OAuth cache-key secret uses it.Shared crypto failure code.
CRYPTO_FAILED_CODE(policy.crypto_failed) is exported from core and the facade, for plugins that deny on a backend failure.FIPS graph classification.
make check-fips-graphandmake check-crypto-consumerfail on an unclassified crypto crate and print the accepted ones (uuid,getrandom,signature).Raw HTTP query strings reach policy. Hosts populate
HttpExtension.queryseparately from the path, and APL, CEL and OPA read it ashttp.query; Cedar templates can project it into context. Plugin views requireread_query. Debug output, HTTP serialization and built-in PDP diagnostics redact it because a query can carry credentials. (#222)Audit record exporters.
praxis_policy_core::audit::exportprovidesAuditExporterand stderr, stdout and append-only file exporters. The referenceaudit/ocsfsink accepts anexporters:list, including a tracing exporter, and sends the same serialized record to each destination. (#226)Selectable crypto backend. Policy’s SHA-256 operations (content digests, decision-cache keys, session ids, instruction digests and API-key hashing) use
crypto-rustcrypto, the default, orfips, which uses OpenSSL with thefips=yesproperty. The FIPS profile isdefault-features = falsewithfips;api-keyandjwt-openssl-fipsare optional identity builtins, and an engine-onlyfipsbuild is supported. Exactly one backend must be selected; none or both is a build error.FIPS startup checks.
crypto_capability_report()describes the compiled backend and the builtins that use other crypto (ordinary JWT, OAuth, Vault delegation, Valkey);fips_profile_is_safe()is false while any of them is enabled, and does not require an API-key builtin.validate_crypto_backend(), exported from core and the facade without requiring API-key, checks shared SHA-256 availability.PolicyEngine::initialize()calls this check before resolving secrets or initializing plugins. Hosts still check the capability report and their own crypto requirements.Crypto failure alarm. A hashing failure on the request path logs
alarm = "policy_crypto_failure"with the operation; shared-backend startup failures emit the same alarm withop = "initialize". An APL route that cannot hash its attribute bag denies withpolicy.crypto_failed.Pre- and post-identity rate-limit hooks.
ratelimit.pre_identityruns before the firstidentity.resolveandratelimit.post_identityafter the last, once per request. Arate_limits:list atglobal,global.defaults.<entity>,groups.<name>androutes[]selects the plugins they run, with the forms and inheritance ofauthentication:. A step’sconfig:override gets its own instance, built once per loaded config. A base limiter listed at two layers runs once per request, and the load warns with alarmrate_limit_listed_twice. A step’sconfig:must be a mapping. The engine denies withratelimit.unavailable(503,http.statusindetails) when a step’s limiter is missing, including after the plugin is unregistered, and raises alarmrate_limit_stage_skipped, naming the route, when a host resolves identity without the pre-identity call.Host-supplied client address.
HttpExtension::set_client_addresssets a trusted address, read back withHttpExtension::client_addressand exposed toread_headersplugins ashttp.client_address.ClientAddressnormalizes it: the port is stripped, IPv4-mapped IPv6 becomes IPv4, other IPv6 becomes its /64 prefix, and an invalid value is dropped. The /64 form parses back, so a serialized address round-trips.Debugoutput hides it, but serializedHttpExtensionoutput, which audit sinks read, includes the normalized address.Experimental in-process request rate limiting. The
ratelimit/limitadorplugin, behind theexperimental-ratelimitfeature, runs at the one rate-limit hook itshooks:declares, fromrate_limits:. It counts requests against embedded Limitador limits and denies withratelimit.exceeded, status 429 and client-safedetails. It requireson_error: failandmode: sequential, rejects identity bindings before identity and pre-identity counters keyed on caller-influenced attributes (http.request_headers.*,http.query,http.path,http.host,agent.*,args.*,custom.*,llm.input.*,meta.properties.*,provenance.*,request.*), and refuses to load in apanic = "abort"build. A matching limit whose computed counter key cannot resolve denies withratelimit.check_failed(503) before this limiter changes its counters. Windows above 9,223,372,036,854 seconds fail at load, before Limitador could overflow its microsecond expiry timestamp during a request. Counters are per instance and reset on restart or reload. It is excluded frombuiltins.Unavailable CIBA approval state returns
-32122. A store read or write failure denies withelicitation.store_unavailableand JSON-RPC-32122. Check and validate responses include the elicitation id to identify the failed flow, including a first visit after dispatch. Store failures halt even underon_error: continue; a failed write can still require a new elicitation.ELICITATION_UNAVAILABLE_CODEis exported. (#236)CIBA approvals can be shared across replicas. The
elicitation/cibaplugin acceptsstore: { kind: memory | valkey }. A Valkey store can use its own connection or referenceglobal.session_store, with overrides for credentials, key prefix, and timeouts. Poll claims and redemption are atomic across replicas; an ambiguous or expired poll claim requires a new elicitation. (#236)Valkey passwords can come from an environment variable or file. Both stores accept
password: { env: NAME }or{ file: PATH }alongside a string. (#236)PluginFactory::create_withreceives a scopedFactoryContextwhen its factory requests session-store metadata. The context contains only safe connection fields. CIBA requests it for a reference and requires its own password; full URL endpoints cannot be referenced. Valkey scripts useEVALSHAwith a cache-miss load.create_withdefaults tocreate. (#236)Added DPoP (RFC 9449) proof verification to
identity/jwt, configured per trusted issuer withdpop: { mode: off | optional | required }. A bound token must carry a valid proof for the request’s method and URL, signed by the key in itscnf.jkt, and each proof is accepted once. A verified binding is visible to policy assubject.key_binding,client.key_bindingorcaller_workload.key_binding. The default replay guard is per instance; hosts can share a store throughJwtIdentityFactory::with_replay_guardorJwtIdentityResolver::with_replay_guard, and thevalkeyfeature suppliesValkeyReplayGuard. The generic host-managed store service remains tracked by #127. When an IdP refuses to exchange aDPoP-bound token,delegator/oauth’sdelegation.idp_rejectedreason says which token was bound and what to change, and names it indetails.bound_tokens. (#204)reference/plugins/transcript-scannerreads typed prior turns throughread_agent, including resource blobs decoded as UTF-8 with replacement, and denies withtranscript.detectedon a configured content match. (#70)llm:routes can read the request. One gatedExtensions.llm_requestcarrier holds the optional parsed body and normalized parts. The body reaches PDPs atllm.request; reported parts emitllm.input.*bag keys, including a role-aware instruction digest and candidate count. Model and completion facts emit canonicalllm.model.*andllm.output.*keys. Publishedllm.model_id,llm.provider,llm.capabilities, andcompletion.*remain value-identical aliases. The carrier is never serialized and requiresread_llm_requestfor plugins. Hosts constructingExtensionsorOwnedExtensionswith exhaustive literals must update them. (#70)docs/content/llm-routes.mddocuments canonical keys, missing-key behavior, host obligations, and a tested worked config. (#70)Added immutable, framework-owned acquired metadata records under
metadata.<instance>.*. Plugins in the same invocation needread_metadatato receive the typed slot or its APL projection, and cannot add, replace, or remove records;Extensions::for_child_requeststarts a child policy invocation without parent records. This is the protected context foundation for the external metadata PIP tracked by #184.APL attribute paths accept one leading
$on a segment after the first, so policies read provenance leaves such asmetadata.account.$outcome. Route predicates readmetadata.*without a host grant: the synthetic APL handler holdsread_metadataintrinsically.Typed credential locations for the
identity/jwtplugin. The plugin can now extract bearer JWTs from HTTP headers, cookies, or query parameters — one location per resolver instance. A newcredential:config block names akind(header,cookie, orquery_param) and aname. Cookie and query-string values are parsed by PPE itself (ppe-core::http_credential), not by whichever HTTP framework the host runs, so the same request resolves the same credential regardless of which proxy sits in front of it. DPoP requires a header credential; cookie and query parameter locations are refused at load when an issuer enables DPoP. The legacy YAMLheader:setting remains supported but logs a deprecation warning when the resolver is built. Existing configurations need no change. New configurations should usecredential:; the two settings cannot be combined:# Legacy (still supported) plugins: - name: user-jwt kind: identity/jwt config: header: "Authorization" trusted_issuers: [...] # Preferred plugins: - name: user-jwt kind: identity/jwt config: credential: kind: header name: Authorization trusted_issuers: [...]Omitting both settings defaults to the
Authorizationheader.Runtime deny codes for credential extraction:
auth.missing_credential(no value at the configured location),auth.empty_credential(no token in the named value),auth.ambiguous_credential(duplicate configured name or differently cased header keys), andauth.malformed_credential(parse failure). Malformed JWTs useauth.malformed_credentialat every credential location.Query credentials require
read_queryat configuration load for both JWT and API-key resolvers. Header and cookie credential names must be valid HTTP tokens. A literal query credential name alongside a percent-encoded copy is rejected as ambiguous.Security note: a resolver configured for
credential: { kind: query_param }logs a one-time notice at construction, because a query-parameter token routinely appears in infrastructure logs (access logs, CDN logs, browser history) outside PPE’s control — PPE’s own logging never prints the token value, in either the old or the new field. (#64)
Changed
Breaking Rust API: HTTP query support.
HttpExtensionaddsquery; exhaustive struct literals must initialize it or use..Default::default().CapabilityaddsReadQuery, requiring a new arm in exhaustive matches.read_headersdoes not grant access to the raw query; plugins needread_query. Serialized HTTP state contains a redacted query placeholder, so hosts must carry the live query between hooks without a JSON round trip.OAuth needs the FIPS default under
fips. The OAuth cache-key secret now comes fromrandom_bytes, so withfipsan OAuth delegator fails to build unless the FIPS provider is the OpenSSL default. This affectsfips,api-key,oauthbuilds that use no JWT. OAuth stays reported unsafe under FIPS because its cache key is still an HMAC.HMAC and EdDSA JWTs are refused under
jwt-openssl-fips. HS256, HS384, HS512, EdDSA anddecoding_key: { kind: secret }fail config load with that feature. Ordinaryjwtkeeps these algorithms unchanged.Breaking Rust API: DPoP hashing is fallible.
jwk_thumbprintreturnsResult<String, ThumbprintError>, separating an unsupported key (Unsupported) from a backend failure (Crypto);access_token_hashreturnsResult<String, CryptoError>.Breaking Rust API: new
CryptoErrorvariants.NonFipsDefaultandProviderConflictunderfips, andRandomundercrypto-rustcrypto. The enum is#[non_exhaustive].Breaking Rust API: crypto initialization errors.
PluginErroraddsCrypto { source: CryptoError }; exhaustive matches need a new arm.PolicyEngine::initialize()refuses startup when the shared SHA-256 backend is unavailable, without resolving secrets or starting plugins.Breaking Rust API: hashing is fallible.
resolve_sessionreturnsResult<Option<(String, SessionSource)>, CryptoError>,instruction_digestreturnsResult<String, CryptoError>, andextract_llm_request,extract_extensionsandBagBuilder::with_extensionsreturnResult<_, CryptoError>. Propagate the error with?, or deny: a hashing failure must not fall back to an unhashed value.CryptoErroris#[non_exhaustive]and its variants depend on the backend. See the hashing migration.Breaking for builds without default features:
praxis-policy,praxis-policy-core,-apl-cmfand-apl-runtimewithdefault-features = falsemust namecrypto-rustcryptoorfips. For example,--no-default-features --features jwtnow fails; usejwt,crypto-rustcrypto.praxis-policy-builtinsnow defaults tocrypto-rustcrypto, sofeatures = ["jwt"]still builds.Composing a FIPS build: Cargo features only add, so a dependency that leaves Policy’s defaults on selects
crypto-rustcryptoand the FIPS build fails with both backends. Every Policy dependency in a FIPS graph, plugin crates included, must disable defaults. A plugin crate forwards its own backend features to core, as the reference plugins do.The FIPS profile rejects configurations that enable keyed content provenance, which requires HMAC. Plain SHA-256 provenance remains available by explicitly selecting
content_provenance_key: unkeyed, which lets anyone holding a record test guesses at the payload.A rate-limit check that fails because the request cannot be hashed denies the request, and the throttled failure log reads “rate limit check failed” instead of naming Limitador.
A
run(name)step whose plugin has no hook for the request’s context fails with aPluginError::Dispatchmessage that now names the remedy: move the step, or use a plugin with a hook for that context.Breaking: new
ConfigScopevariants.ConfigScope::RateLimitsandConfigScope::RateLimitsStepcover therate_limits:block and its steps. An exhaustive match onConfigScopeoutside this crate needs the two arms, andConfigScope::ALLgrows from 11 to 13 entries.Breaking:
HttpExtensionaddsclient_address, andGlobalConfig,PolicyGroupandRouteEntryaddrate_limits. Hosts using exhaustive struct literals must initialize them or use..Default::default().Breaking:
PluginContextTableadds a private field, so it can no longer be built with a struct literal outside this crate, even with..Default::default(). UsePluginContextTable::new()orDefault, then setglobal_stateandlocal_states.Breaking Rust API for embedders:
RawInboundToken.source_header: StringbecomesRawInboundToken.source: Credential; its constructor now takes aCredentialinstead of a header name.JwtIdentityResolverConfig.headerchanges fromStringtoOption<String>, and struct literals must set the newcredential: Option<Credential>field. Useheader: Nonewithcredential: Some(Credential::Header { name })for new Rust callers. The YAMLheader:setting remains supported with a deprecation warning.Breaking Rust API for API-key embedders:
identity_api_key::Extractionis no longer exported, andCredentialLocation::extractandCredentialLocation::presentedare removed. UseCredentialLocation::raw(&headers, raw_query_string)orCredentialLocation::raw_from_ext(&headers, &ext); success isOk(String)and failures useExtractionError. Move successful key bytes intoPresentedKey::new(raw.into_bytes())before a directory lookup.Breaking serialized shapes for embedders:
RawInboundTokennow emits{"source":{"kind":"header","name":"Authorization"}}instead of{"source_header":"Authorization"}. Migrate persisted or wire JSON that reads the old shape.IdentityPayload.headersis now#[serde(skip)], so headers no longer appear in serialized payloads or survive a round trip. Out-of-process hosts needing headers must read them from the request.RawInboundToken’sDebugstill redacts the token;IdentityPayload’sDebugnow redacts header values as well.Breaking for the reference audit plugins:
audit/loggerrequiresdestination:andaudit/ocsfrequiresdestination:orexporters:. Neither falls back to stderr any more: an entry that names no output fails the load with the options listed, so an incomplete audit configuration no longer looks like a working one.stderris still available and has to be named. (#237)Breaking: CIBA config rejects unknown fields. A misspelled key such as
stroenow fails at load and names the field. (#236)Breaking: CIBA config requires
store. Anelicitation/cibaplugin without astore:block now fails at load instead of keeping approvals in process memory. Addstore: { kind: memory }to keep the previous behaviour, or configurekind: valkeyto share approvals across replicas. (#236)Breaking Rust API changes.
CorrelationStoreis async and fallible, and implementers must provideclaim_poll,release_poll,complete_poll, andabandon_poll;ValkeyConfig.passwordis aPasswordSource, andCibaConfighas astorefield. ConstructStoreErrorwithStoreError::new;ValkeyCorrelationStore::from_settingsreturnsSettingsError. BuildValkeyConfigwithfrom_valueso its password is resolved and validated once before pool construction; direct struct literals are no longer available.FactoryContext,StoreConfig,PasswordSource, andSettingsErrorare#[non_exhaustive]. Trait implementations, config struct literals, and exhaustive matches may need updates. (#236)DPoP proofs are idempotent within a request.
identity/jwtrecords each accepted proof in the request’sPluginContextTable, so resolving identity again with the table the host threads through the request, for example at the HTTP gate and then at the tool, reuses the proof instead of denying it asauth.dpop_replay. Every other proof check still runs. A routeconfig:override instance reuses the record when it shares the base instance’s replay guard. A new table is a new request and still hits the replay guard.DpopVerifier::verify_inexposes the same check. A resolver with DPoP turned on in a mode other thansequentialortransformis refused at load, because those modes do not keep the record.Breaking:
SubjectExtension,ClientExtension, andWorkloadIdentityaddkey_binding. Hosts using exhaustive struct literals must initialize it or use..Default::default().TrustedIssuerConfigaddsdpop; exhaustive literals must set it, for example toDpopConfig::default().Breaking:
ConversationContext.historyisVec<Message>, wasVec<serde_json::Value>. Each entry is a CMF message, the same type as the current turn’s payload. A host that sent free-form summary objects must now send turns in CMF message shape; anything else fails to deserialize rather than being carried unread. History is still not flattened into the attribute bag; policy reaches it through a plugin. (#70)Breaking:
ExtensionsandOwnedExtensionsaddmetadata; exhaustive struct literals must initialize it (or use..Default::default()).CapabilityaddsReadMetadataandSlotNameaddsMetadata, so exhaustive matches need a new arm.Extensions.metadatais never serialized. The new metadata enums are#[non_exhaustive].
Fixed
&and|no longer abort when one operand cannot be ordered and another already settles the expression. A true|operand or a false&operand decides the same way in either order, so some phases that denied on an unparseable value now evaluate normally. An unorderable result is still fail-closed when no operand settles. (#69)- Enabled audit sinks without policy hooks load under
dispatch: policy; they receive verdicts without arun(name)step and are exempt from the plugin reachability error. Disabled sinks remain subject to that check. (#210) - Crypto and rate-limit alarm throttling uses a monotonic clock, so a backward wall-clock adjustment cannot silence failure logs. Forged JWT and DPoP signatures deny without raising a crypto-backend alarm; verification setup and hashing failures still raise the throttled alarm.
Show changes in v0.5.0
Added
- Added the opt-in
delegator/vaultbuiltin to retrieve downstream credentials from Vault KV v2 for a user, client, or workload. Place authorization before delegation in a route. (#168) - Added integration, resilience, and security test suites that exercise policy decisions through the reference host, including dependency failures, concurrency, credential leaks, and environment-gated live services. (#180)
- Added
secret.<name>, an assertion source for a static upstream credential. A target sitting behind a shared API key had no path short of a token delegator, which is per-request exchange machinery that a static credential does not need. A request entry can now read a value declared undersecrets.values, and the engine renders the header: no plugin and no PDP holds the bytes, and the value reaches the asserted header and nothing else. The path names a declared secret and never a provider or a raw reference, which is what keeps the addressable set finite and readable from the document instead of being whatever a provider’s credentials can reach. An unknown name is a config error naming what is declared, and so is a response entry naming a secret, since a response asserts toward the client and the credential is the upstream’s. The read is synchronous from the value resolved at startup, so nothing fetches on the request path, and it goes through the store at the point of use, so a rotation reaches the wire on the next request after a refresh. The effective-policy artifact prints the name and never the value, and says that no plugin capability reads the slot rather than naming one. (#93, #174) - MCP
annotationsnow reach policy asmcp.tool.annotations.<name>and the same undermcp.resourceandmcp.prompt, flattened through the JSON walker that already carriescustom.*,framework.metadata.*andclaim.*. This is wherereadOnlyHintanddestructiveHintlive, so a rule can refuse a destructive tool. They had been withheld for being free-form JSON, which does not distinguish them from the four maps already on the bag. The tool and output schemas and the prompt’s argument list stay off, now with the reason recorded: they describe the shape of a call rather than a fact about this one, and the argument values already reach policy asargs.*. (#78) caller_workload.attested_atandthis_workload.attested_atnow reach policy, rendered as RFC3339 with second precision and a literalZ. The fixed width makes the string sort the way the instant does, which CEL and Rego can use. APL cannot: its order comparison is numeric and fails closed on an operand that will not coerce to a finitef64, soattested_at < "..."denies every request there rather than testing freshness.caller_workload.attested_at_epochandthis_workload.attested_at_epochcarry the same instant as Unix seconds for that reason, which APL orders on its exact integer path, so an event-pinned floor such asattested_at_epoch < 1790812800: denyis writable: “reject anything attested before the CA rotation” never goes stale. A rolling window still is not writable, because APL compares an attribute against a literal with no arithmetic and nonow(); that is tracked separately. Both keys truncate one value to seconds, so they cannot describe different instants, and truncation is toward the past so a freshness rule errs toward stale. Tests through the evaluator pin both what APL can and cannot do here. These are the only instants the engine formats;request.timestampandcompletion.created_atare host-supplied strings with no format guarantee. (#78)- Added
reference/plugins/ocsf-audit, an audit sink that renders every decision the engine finalizes as an OCSF API Activity event (class 6003, theai_operationandsecurity_controlprofiles), with the per-plugin steps, span, taint, content digests and stream stamps underunmapped. Withchain: trueeach record carries an attestation whose fingerprint binds it to its predecessor, and a signing key adds a DSSE signature over the same bytes, so a verifier checks a record offline from the emitted JSON and the public key alone, with no access to the engine. It consumes the audit seam like any sink and never changes a verdict. The record format is specified separately as AID-EMIT-1, pinned from the crate, and the threeSAMPLE-OUTPUT*.mdfiles next to it are that specification’s conformance vectors, reproduced byte for byte by the crate’s examples. It joinspii-scannerandaudit-loggeras a reference plugin: built, linted and tested here,publish = false, outside the builtins umbrella, and a host registers it underaudit/ocsf. Decisions only for now; effect records keep the trait’s ignoring default. (#12)
Changed
- Breaking for secret health alarms:
secrets_last_success(provider)now retains the last successful refresh time after a failure instead of returningNone. Hosts that usedNoneto detect an outage should checksecrets_health(provider)forfailingand use the retained timestamp to measure staleness. (#191) - Breaking for
envsecret provider config: settings the provider does not use now cause a config error instead of being ignored. Remove those settings from theenvprovider declaration. (#191) - Breaking for secret config reloads: after secret resolution, a reload that
changes the
secrets:block is refused; restart the engine to apply new provider or value declarations. Reloads with unchanged secret declarations remain supported. (#191) - Breaking for hosts using
CelResolver::with_functions: registration callbacks now returnResult<(), cel::DeclarationError>, andwith_functionsreturnsResult<Self, BuildError>. CEL 0.15 rejects a custom function whose name conflicts with a standard-library overload; the resolver reports this at construction. A later registration failure denies even withon_error: allow. Hosts that need such an overload must migrate it to a CELEnvoverload. - Behavior change for CEL policy authors: CEL 0.15 counts Unicode code
points rather than UTF-8 bytes in string
size(), so asize(text) <= Ncondition can admit more bytes of non-ASCII text.exists()now returnstruewhen one element matches even if evaluating another element errors, so some requests previously denied on that error may now allow. (#185) - Breaking:
HttpExtensionaddssecret_headers; exhaustive struct literals must initialize it (or use..Default::default()). Hosts must preserve this provenance when carrying HTTP state between hooks.Debugand generic serialization redact marked request headers; forwarding uses the canonical in-memory header map. - Breaking for Rust callers of
praxis_policy_core::assertions: the secret source widened four signatures and theSourcePathenum. This also affects callers usingpraxis-policy, which re-exportspraxis_policy_core, includingassertions.SourcePath::capabilityreturnsOption<Capability>instead ofCapability. A secret answersNone, because no plugin-facing read of a declared secret exists for a capability to gate, and naming one would tell an operator that some grant reaches the value.SourcePath::resolveandassertions::rendereach take the resolvedSecretStoreas a further argument, whereNoneis a host that resolved none.AssertionsConfig::validatetakes the document’sSecretsConfig, which is what makes an undeclared name a load error.SourcePathgains aSecret(String)variant and is now#[non_exhaustive], so an out-of-cratematchon it needs a_arm. Marking it in the same release that already changes the enum means the next source added is not a breaking change. (#93)
- Behavior change for hosts parsing JSON through the engine: floats now
parse to the double their digits name.
serde_jsonis built withfloat_roundtrip, where the default parser can land one ULP away. That corrected value can change a policy result at an exact numeric boundary, although the comparison operators themselves are unchanged. It also changes re-serialization: a verifier that re-parsed an emitted audit record and recomputed its RFC 8785 fingerprint could otherwise report an untouched record as tampered. (#171)
Removed
- Breaking for Rust callers of
praxis_policy_apl_cmf::constants: removedCAP_READ_META,CAP_READ_REQUEST,CAP_READ_LLM,CAP_READ_MCP,CAP_READ_COMPLETION,CAP_READ_PROVENANCE,CAP_READ_FRAMEWORKandCAP_READ_CUSTOM, along with theircapability_namespacesentries. None is aCapabilityinpraxis-policy-core: these are the eight slots core leaves unrestricted, so no capability gates them and there is nothing to name. Declaring one in a plugin’scapabilities:granted nothing, andknown_read_capabilitiesoffered it to a config validator as recognised.capability_namespacesstill answers with no prefixes for these names, now through its unknown-capability path. A test deserializes every remainingCAP_*through core’s own serde impl, so a rename in core fails here instead of drifting. (#78) - Breaking for Rust callers of
praxis_policy_apl_cmf::constants: removedBAG_META_PREFIX,BAG_REQUEST_PREFIX,BAG_LLM_PREFIX,BAG_MCP_PREFIX,BAG_COMPLETION_PREFIX,BAG_PROVENANCE_PREFIXandBAG_FRAMEWORK_PREFIX. Their only consumer was the capability table, which no longer names them because those slots are unrestricted, and they cannot serve the drift prevention the module header promised: every key in those namespaces is a fixed string, so a prefix constant would guard only the first segment ofmcp.tool.name. The bag keys themselves are unchanged and remain readable from any policy; only the Rust constants are gone.BAG_CUSTOM_PREFIXstays and is now used by its extractor, which composescustom.<name>and so wants the prefix. (#78)
Fixed
- Rejected JWTs with unsupported critical headers. OAuth token exchange now
validates the issued token type, granted scopes, and JWT audience and subject
by default. Empty scope requests accept IdP defaults, and
allowed_extra_scopespermits named defaults alongside requested scopes. (#188) - Bound CIBA approvals to the selected policy route, tool, and authenticated requester, with atomic single-use redemption within a plugin instance. Backchannel and poll failures no longer expose OP response bodies that may contain client credentials. (#188)
- Made non-scalar numeric policy comparisons fail closed. Structured JSON redaction now matches keys without case sensitivity, supports recursive paths, and preserves keys containing dots; recursive traversal is bounded. (#188)
- Secret assertion headers are redacted in plugin and audit views across subsequent hooks, config reloads, and header case normalization. Provenance travels with the HTTP extension. Plugin header writes preserve the original credential while allowing unrelated header changes. (#93)
capability_namespacesno longer claims thatread_request,read_provenance,read_completion,read_llm,read_framework,read_mcp,read_metaandread_customunlock bag namespaces. Those eight slots areAccessPolicy::Unrestrictedinfilter_extensions, so every plugin receives them whatever it declared, and the table was telling an operator that withholding a capability would withhold the data. All eight now report no prefixes, and the page says which slots capabilities actually withhold. A test filters a fully populatedExtensionsthroughfilter_extensionsand asserts the gating each key declares, so the description is checked against the behaviour rather than against another hand-maintained list. (#78)read_teamsnow unlocks the flattenedteam.*prefix alongsidesubject.teams. The bridge has always writtenteam.<name>for each team, the wayread_rolesandread_permissionscover their own flattened aliases, butcapability_namespacesnamed only the set. An operator reading the table to answer what a plugin can see was told less than the plugin actually receives. (#78)
Documentation
- Defined requirements for audit serialization, delivery, and offline verification. (#173)
- The per-slot key tables in
docs/content/cmf-extensions.mdare now checked against the bridge rather than maintained by hand.crates/ppe-apl-cmf/tests/key_catalog/declares every key the bridge emits with its type, its slot and the capability that gates it, and asserts that flattening a fully populatedExtensionsemits exactly those keys, that the tables list exactly those keys under the right slot, and thatcapability_namespacesagrees. The page also now records thatauth_methodandsecurity.classificationare the two keys no capability gates, sincefilter_extensionsincludes them whatever a plugin declared. (#78, #175) - Recorded why
client.teamsis set-only wheresubject.teamsalso carries the flattenedteam.<name>boolean. The flattened form cannot hold a dotted name, so it is lossy wherever one occurs while the set always holds every member; the five collections that carry it predate the sets and the list is closed. Both namespaces already have the complete form, so whatsubject.*has in addition is sugar rather than a capabilityclient.*lacks. A test pins it, because the two loops beside it inextract_clientdo flatten and completing the pattern is the obvious wrong edit. (#78)
Tests
- Covered authorization on glob and wildcard entity routes, including route specificity. (#122)
- Added the opt-in
Show changes in v0.4.1
Added
- Optional bounded PDP decision cache. A
cache:block on aglobal.pdp[]entry stores Allow and Deny for a positive TTL and a positive entry cap. Omission leaves evaluation unchanged. Keys are a digest of dialect, call arguments, the full attribute bag, and structured request input, so request data is not retained. Dispatch errors are never stored, expired entries are never returned, FIFO eviction stays inside the cap, and a PPE configuration generation change drops the map. External PDP policy can still go stale until the TTL expires;docs/pdp-decision-cache.mdstates that. (#67) - PDPs can evaluate host-supplied LLM request JSON and native tool arguments. (#144)
- Added verdict audit sinks, durable effect logs, and keyed content provenance. (#84)
Changed
- Breaking: OPA and CEL now use native JSON for
tool:routeargs;RoutePayloadstruct literals requirestructured. See migration guidance. (#144) - Breaking: cloned extensions drop HTTP transport, and effects are limited
to
sequentialandtransformmodes. (#84) - Missing required LLM requests and overly deep structured input now deny. (#144)
- PDP-generated errors hide input values; Cedar schemas require
structured_context: truefor structured input. (#144) - The reference audit logger uses sink mode when
hooks:is absent. (#84) - Serial and transform plugin panics are contained and report
plugin_panic. (#84)
Documentation
- Documented Kuadrant/PPE attribute mapping and policy parity. (#131)
- Optional bounded PDP decision cache. A
Show changes in v0.4.0
Added
- Added a
secrets:configuration with named providers and values, fail-fast startup resolution, and host-driven refresh. The built-infileandenvproviders support local and Kubernetes-mounted credentials. (#97) - Added a Vault KV v2 secret provider behind the
secrets-vaultfeature. It reads through the hostHttpTransport, supports Kubernetes and AppRole auth, renews tokens lazily, and reauthenticates once after a403. (#103) - Added an opt-in
quotapolicy plugin backed by Limitador. It checks a per-principal token budget before an LLM call and reports usage afterward. (#116) - Added the
ibmverifyJWT claim mapper preset for tenant-provisioned scalar or array collection claims. (#134) - Added the
identity/api-keyresolver with hash-indexed file and HTTP directories, shared identity mapping, and bounded lookup caching. The facade exposes it through theapi-keyfeature. Its backend is configured withprovider:; the identity and delegation guide documents both backends and denial behavior. (#125, #135, #136) - Documented how to add and test provider-specific JWT claim mapper presets. (#128)
Changed
Consolidated the nine bundled extensions into one published crate,
praxis-policy-builtins, each behind its own Cargo feature. The facade’s features,install_builtins, its re-exports, and every policykindstring are unchanged, so hosts reaching these throughpraxis-policyneed no change. A dependency naming one of the retired crates directly should be replaced bypraxis-policy-builtinswith the matching feature: keeping both links two copies of the same implementation registering the samekind, and the registry is last-write-wins. Versions up to 0.3.1 of the old crates stay on crates.io; later releases publish only the consolidated crate. See Crates for the mapping. (#140)Config-load errors from the JWT, OAuth and CIBA extensions now name the plugin kind (
identity/jwt,delegator/oauth,elicitation/ciba) instead of the crate they used to live in. Operators matching on that text in logs or alerts need to update the pattern. (#140)Moved the configurable identity claim mapper from
praxis-policy-plugin-identity-jwttopraxis_policy_core::identity::mapping. Breaking for Rust callers using the JWT plugin’s module paths (claim_map_config,claim_path,configured_mapper, orclaim_map::{ClaimMap, ClaimMapper}): import those items from core instead.ConfiguredClaimMap::newnow requires aMappingProfilewith the reserved names and attestor for the verified credential; JWT callers can usepraxis_policy_builtins::plugins::identity_jwt::claim_map::JWT_MAPPING_PROFILE. The JWT module’s re-exports and the operator’sclaim_map:config remain available. (#119)Exposed
execute_with_retryso aSecretProviderusing the host transport can use the same retry policy as plugins. (#103)Replaced deprecated
serde_yamlwith the maintainedyaml_serdefork and updatedregorusfrom 0.11.0 to 0.12.0. (#121, #114)
Fixed
- Prevented dotted subject and client membership names from creating ambiguous flattened policy aliases. (#126)
- Sized Vault login JSON buffers before serialization so large credentials do not leave bytes behind in a reallocated buffer. Added an optional live Vault KV v2 integration test. (#141)
Internal
- Updated the Criterion benchmark dependency from 0.7.0 to 0.8.2. (#113)
- Added a
Show changes in v0.3.1
Changed
- Lowered the MSRV to 1.92 to match Red Hat’s rust-toolset, which the FIPS build compiles against.
- Upgraded the
celandredisdependencies.
Grid
Grid v0.3.2 does not ship a changelog file. Each release's notes are on GitHub.