[
https://issues.apache.org/jira/browse/CAMEL-26844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrea Cosentino updated CAMEL-26844:
-------------------------------------
Description:
Narrowed after maintainer review to OpenFGA SDK-future processing. Add opt-in
asyncProcessing to the producer and security policy, chaining SDK futures with
existing timeout/retry/batch budgets. The exchange still waits for the
decision; the benefit is routing-thread usage for async-capable consumers under
load. Preserve callback-once, cancellation, observations, body references and
existing operation/error contracts. No shared camel-support authorization
executor and no async mode for OPA/SPIFFE; document Threads EIP/virtual threads
for those routes. Cached SPIFFE source work is separate: CAMEL-28026.
PR: https://github.com/apache/camel/pull/29841
Validation: 249 OpenFGA unit tests and 46 real-server sync/async tests,
restored OPA/SPIFFE suites and a full-reactor build passed.
Codex on behalf of oscerd.
Generated by Codex via OSS Helper
was:
h2. Problem / motivation
The three producers extend DefaultProducer. Remote authorization/identity calls
block the invoking routing thread; OpenFGA already returns CompletableFuture
values that can be bridged into Camel callbacks.
h2. Proposed scope
Add asynchronous producer/security-policy processing where useful, starting
with OpenFGA futures. Define managed executor offload for genuinely blocking
OPA/SPIFFE paths instead of assuming they have nonblocking SDK APIs. Keep
downstream async routing intact. Document connect/read/request/total deadlines,
cancellation and executor bounds without renaming existing options
unnecessarily.
h2. Acceptance criteria / validation
* Test callback exactly once, completion failure, interruption/cancellation,
shutdown and bounded saturation.
* Preserve exchange state and exception/fail-open semantics.
* Demonstrate concurrency benefit without unbounded thread creation.
* Verify equivalent synchronous ProducerTemplate use.
h2. References
*
https://github.com/apache/camel/blob/5686684cb418/components/camel-openfga/src/main/java/org/apache/camel/component/openfga/OpenFgaProducer.java#L64
*
https://github.com/apache/camel/blob/5686684cb418/components/camel-opa/src/main/java/org/apache/camel/component/opa/OpaProducer.java#L27
*
https://github.com/apache/camel/blob/5686684cb418/components/camel-spiffe/src/main/java/org/apache/camel/component/spiffe/SpiffeProducer.java#L30
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)._
Labels: authorization camel-openfga component-audit (was:
authorization camel-opa camel-openfga camel-spiffe component-audit)
Summary: camel-openfga - support SDK-future asynchronous processing
(was: camel-opa/openfga/spiffe - support asynchronous decision processing)
> camel-openfga - support SDK-future asynchronous processing
> ----------------------------------------------------------
>
> Key: CAMEL-26844
> URL: https://issues.apache.org/jira/browse/CAMEL-26844
> Project: Camel
> Issue Type: Improvement
> Components: camel-spiffe
> Reporter: Andrea Cosentino
> Assignee: Andrea Cosentino
> Priority: Major
> Labels: authorization, camel-openfga, component-audit
>
> Narrowed after maintainer review to OpenFGA SDK-future processing. Add opt-in
> asyncProcessing to the producer and security policy, chaining SDK futures
> with existing timeout/retry/batch budgets. The exchange still waits for the
> decision; the benefit is routing-thread usage for async-capable consumers
> under load. Preserve callback-once, cancellation, observations, body
> references and existing operation/error contracts. No shared camel-support
> authorization executor and no async mode for OPA/SPIFFE; document Threads
> EIP/virtual threads for those routes. Cached SPIFFE source work is separate:
> CAMEL-28026.
> PR: https://github.com/apache/camel/pull/29841
> Validation: 249 OpenFGA unit tests and 46 real-server sync/async tests,
> restored OPA/SPIFFE suites and a full-reactor build passed.
> Codex on behalf of oscerd.
> Generated by Codex via OSS Helper
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)