Andrea Cosentino created CAMEL-26831:
----------------------------------------

             Summary: camel-spiffe - preserve request bodies during JWT-SVID 
validation
                 Key: CAMEL-26831
                 URL: https://issues.apache.org/jira/browse/CAMEL-26831
             Project: Camel
          Issue Type: Improvement
          Components: camel-spiffe
            Reporter: Andrea Cosentino
            Assignee: Andrea Cosentino


h2. Problem / motivation
validateJwtSvid replaces the body with JwtSvid even when the token was read 
from Authorization. A protected POST/PUT route therefore needs extra steps to 
save and restore its application payload. This is documented existing behavior, 
not an unexpected regression.

h2. Proposed scope
Add an opt-in body-preserving validation result mode and a typed verified 
identity/claims exchange property. Provide a JWT-backed security-policy wrapper 
for route segments, preserving configured audience enforcement and existing 
default response behavior.

h2. Acceptance criteria / validation
* Validate header-token requests carrying POJO and streaming bodies without 
consuming/replacing them in the new mode.
* Cover valid, expired, invalid, absent and wrong-audience tokens and existing 
multiple-audience behavior.
* Add Java/XML/YAML usage and catalog metadata; keep token material out of 
diagnostics.

h2. References
* 
https://github.com/apache/camel/blob/5686684cb418/components/camel-spiffe/src/main/java/org/apache/camel/component/spiffe/SpiffeProducer.java#L76
* 
https://github.com/apache/camel/blob/5686684cb418/components/camel-spiffe/src/main/java/org/apache/camel/component/spiffe/SpiffeSecurityPolicy.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