Andrea Cosentino created CAMEL-26845:
----------------------------------------

             Summary: camel-opa/openfga/spiffe - add consistent decision 
observability
                 Key: CAMEL-26845
                 URL: https://issues.apache.org/jira/browse/CAMEL-26845
             Project: Camel
          Issue Type: Improvement
          Components: camel-spiffe
            Reporter: Andrea Cosentino
            Assignee: Andrea Cosentino


h2. Problem / motivation
The components expose different verdict/identity outputs and health support, 
but there is no shared authorization-specific observation contract for outcome, 
failure category, duration and active policy/model revision. Generic Camel and 
SDK instrumentation do not by themselves supply these semantics.

h2. Proposed scope
Define a small observation/event contract and optional low-cardinality 
metrics/tracing integration. Cover allow/deny/evaluation 
failure/unavailable/fail-open, batch outcomes and WASM pool wait. Preserve 
backend-specific models and existing output headers; avoid a universal 
authorization abstraction. Make verified-identity propagation and composition 
examples explicit.

h2. Acceptance criteria / validation
* Test success, denial, failure, fail-open and batch events with correlation.
* No tokens, keys, full inputs or high-cardinality principal/resource labels by 
default.
* Reuse existing Camel telemetry integrations and avoid duplicate SDK spans.
* Document extension points and Java/XML/YAML composition examples.

h2. References
* 
https://github.com/apache/camel/blob/5686684cb418/components/camel-opa/src/main/java/org/apache/camel/component/opa/OpaPolicyEvaluator.java
* 
https://github.com/apache/camel/blob/5686684cb418/components/camel-openfga/src/main/java/org/apache/camel/component/openfga/OpenFgaAuthorizer.java
* 
https://github.com/apache/camel/blob/5686684cb418/components/camel-spiffe/src/main/java/org/apache/camel/component/spiffe/SpiffeSecurityProcessor.java

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)

Reply via email to