feat: add cpex host facade crate#77
Merged
Merged
Conversation
Add a `cpex` crate that re-exports the host runtime (PluginManager, AplOptions, register_apl) and the bundled plugin factories, each behind a cargo feature: jwt, oauth, pii, audit, cedar, cel, valkey. Hosts depend on this one crate and enable the plugins they want instead of pinning apl-cmf / apl-cpex / apl-pdp-* / apl-session-* individually. `install_builtins(&mgr)` registers every enabled factory and installs the APL config visitor in one call; register_builtin_plugins, builtin_pdp_factories, and builtin_session_store_factories expose the pieces for hosts that assemble AplOptions themselves. Add the crate to workspace members and default-members. Signed-off-by: Frederico Araujo <frederico.araujo@ibm.com>
araujof
added a commit
that referenced
this pull request
Jun 19, 2026
Signed-off-by: Frederico Araujo <frederico.araujo@ibm.com>
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.
Summary
Adds a
cpexcrate so hosts depend on one crate instead of a dozen. It re-exports the host runtime (PluginManager,AplOptions,register_apl) and the bundled plugin factories, each behind a cargo feature.Features
jwt,oauth,pii,audit,cedar,celare on by default.valkey(redis client + rustls TLS stack) is opt-in.fullenables everything.API
install_builtins(&mgr): registers every enabled factory and installs the APL config visitor in one call.register_builtin_plugins,builtin_pdp_factories,builtin_session_store_factories: the pieces, for hosts that assembleAplOptionsthemselves.KINDs.Notes
membersanddefault-members.