[
https://issues.apache.org/jira/browse/CAMEL-26837?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Work on CAMEL-26837 started by Andrea Cosentino.
------------------------------------------------
> camel-opa - support explicit input expressions and mapper beans
> ---------------------------------------------------------------
>
> Key: CAMEL-26837
> URL: https://issues.apache.org/jira/browse/CAMEL-26837
> Project: Camel
> Issue Type: Improvement
> Reporter: Andrea Cosentino
> Assignee: Andrea Cosentino
> Priority: Major
> Labels: authorization, camel-opa, component-audit
>
> h2. Problem / motivation
> The component builds a fixed headers/properties/body envelope. Existing
> domain-shaped Rego policies need route-side reshaping, and top-level POJOs
> are string-converted while nested objects are left to the serializer.
> h2. Proposed scope
> Provide an opt-in input expression or mapper SPI for a complete structured
> policy input. Keep the existing envelope default and clearly define null,
> POJO, nested collection and stream handling. Apply equivalent mapping
> semantics to REST/WASM and document batch behavior.
> h2. Acceptance criteria / validation
> * Existing default input tests remain unchanged.
> * Test domain JSON, POJOs, nested values, nulls, conversion failures and
> batch mapping.
> * Preserve decision-header exclusion and deliberate credential selection in
> the default mapper.
> * Add Java/XML/YAML examples and catalog metadata.
> h2. References
> *
> https://github.com/apache/camel/blob/5686684cb418/components/camel-opa/src/main/java/org/apache/camel/component/opa/OpaPolicyEvaluator.java#L291
> *
> https://github.com/apache/camel/blob/5686684cb418/components/camel-opa/src/main/java/org/apache/camel/component/opa/OpaPolicyEvaluator.java#L480
> Source: read-only component audit at 5686684cb418. Recheck current main
> before implementing; historical references identify the audited code.
> _AI-generated by Codex on behalf of oscerd (JIRA: acosentino)._
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)