Skip to content

feat(apl): grant read_headers to all policy handlers#120

Merged
araujof merged 2 commits into
devfrom
feat/entity_read_headers
Jul 15, 2026
Merged

feat(apl): grant read_headers to all policy handlers#120
araujof merged 2 commits into
devfrom
feat/entity_read_headers

Conversation

@araujof

@araujof araujof commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Grant read_headers to every synthetic policy handler (entity routes and defaults), not just the global HTTP catch-all. http.* request attributes are now available to per-entity policy evaluation wherever the host attaches an HttpExtension, so one policy can combine http.* with entity/args.* predicates in a single evaluation.

  • No-op for hosts that never populate the HTTP extension.
  • http.host remains sourced from a validated request authority, never a raw client Host header.
  • Adds an apl-cpex regression test; bumps the workspace to 0.2.2 with a CHANGELOG entry.

Entity routes and defaults now receive read_headers alongside the global
HTTP handler, so http.* is available to per-entity policy evaluation.
Bump to 0.2.2.

Signed-off-by: Frederico Araujo <frederico.araujo@ibm.com>
@araujof
araujof requested review from jonpspri and terylt as code owners July 15, 2026 11:15
@araujof araujof added enhancement New feature or request framework Rust labels Jul 15, 2026
@araujof araujof added this to CPEX Jul 15, 2026
@github-project-automation github-project-automation Bot moved this to Backlog in CPEX Jul 15, 2026
@araujof araujof added this to the 0.2.2 milestone Jul 15, 2026
Bring in the human-in-the-loop (HIL) elicitation feature and the numeric
string-coercion change for order comparisons (#115), plus the new
elicitation/ciba builtin plugin.

Conflict resolution:
- Cargo.toml: keep the 0.2.2 workspace version across the internal-dep
  table and add the new cpex-plugin-elicitation-ciba entry at 0.2.2.
- CHANGELOG.md: fold dev's [Unreleased] entries (HIL elicitation; numeric
  order-comparison coercion) into the existing [0.2.2] release entry
  alongside the read_headers change, dropping the separate [Unreleased]
  section.

Workspace builds; fmt + clippy (-D warnings) clean; full test suite passes
(936); hugo docs build clean.

Signed-off-by: Frederico Araujo <frederico.araujo@ibm.com>
@araujof
araujof merged commit e6d4b5a into dev Jul 15, 2026
8 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in CPEX Jul 15, 2026
@araujof
araujof deleted the feat/entity_read_headers branch July 15, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request framework Rust

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant