davsclaus opened a new pull request, #31403:
URL: https://github.com/apache/camel/pull/31403
### Change
camel-sql can run SQL that comes from the message: `useMessageBodyForSql`
(sql) and `useMessageBodyForTemplate` (sql-stored) take the SQL or the stored
procedure template from the message body. The expression parameters in that
text (`:?${...}` / `:?in:${...}` in the SQL, the `${...}` values of a template)
are evaluated as Simple expressions, as they are in the query of an endpoint.
- Mark `useMessageBodyForSql` and `useMessageBodyForTemplate` with `security
= "insecure:dev"` (label `security`), like `allowQueryFromHeader` and
`allowTemplateFromHeader`, which already let a header choose the SQL.
- The descriptions of all four options now say that the expressions in such
SQL are evaluated, and to enable them only when the message is trusted.
- Regenerated: the component JSON, its catalog copy and the endpoint DSL
builders (the options move to the security group).
No change in behaviour: the options are endpoint options only, so the
startup security policy (`camel.security.*`), which checks configuration and
bean properties, does not see them. The catalog and the tooling that reads its
security metadata now flag them.
_Claude Code on behalf of Claus Ibsen_
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]