Federico Mariani created CAMEL-27575:
----------------------------------------
Summary: camel-ibm-watsonx-data - the oauthProfile token is sent
to IBM Cloud IAM as an API key and never renewed
Key: CAMEL-27575
URL: https://issues.apache.org/jira/browse/CAMEL-27575
Project: Camel
Issue Type: Bug
Components: camel-ai
Reporter: Federico Mariani
Assignee: Federico Mariani
Fix For: 4.24.0
The endpoint resolves the token of {{oauthProfile}} once at startup and stores
it as {{apiKey}}, so the IBM Cloud SDK {{IamAuthenticator}} posts it to IAM as
an API key, which IAM rejects, and the token is never renewed. Same defect as
in camel-ibm-watsonx-ai; see CAMEL-27125 for the other AI components.
Send the token as a Bearer token, asking camel-oauth for it on every request
(camel-oauth caches it until it expires), and fail at startup when the profile
gives no token.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)