Claus Ibsen created CAMEL-27683:
-----------------------------------
Summary: camel-slack - webhookUrl is not marked as a secret option
Key: CAMEL-27683
URL: https://issues.apache.org/jira/browse/CAMEL-27683
Project: Camel
Issue Type: Bug
Components: camel-slack
Reporter: Claus Ibsen
Fix For: 4.24.0
The {{webhookUrl}} option of camel-slack, on the endpoint ({{SlackEndpoint}})
and on the component ({{SlackComponent}}), is not marked as a secret option. A
Slack incoming-webhook URL ({{https://hooks.slack.com/services/...}}) is itself
the credential: whoever has the URL can post to the channel. As it is not
secret, the URL is shown in clear text in endpoint URIs, in the logs, in the
dev consoles and in tooling, while the {{token}} of the endpoint is masked.
Also the {{token}} option of the component is not marked as secret (the
endpoint option is), so the catalog and tooling show the component token as a
plain option.
h4. Proposed change
* Mark {{webhookUrl}} as secret on the endpoint and the component, and the
component {{token}}.
* Add {{webhookurl}} to the sensitive keys of {{SensitiveUtils}} (and the
{{sensitive-keys.json}} of the catalog), so {{URISupport.sanitizeUri}} masks it
in endpoint URIs and camel-main treats {{camel.component.slack.webhookUrl}} as
a sensitive property.
* Regenerate the component metadata and the endpoint and component DSL.
The other camel-slack problems are in CAMEL-27681.
_Claude Code on behalf of Claus Ibsen_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)