[ 
https://issues.apache.org/jira/browse/CAMEL-27683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18152222#comment-18152222
 ] 

Claus Ibsen commented on CAMEL-27683:
-------------------------------------

Merged in https://github.com/apache/camel/pull/31031 as 
https://github.com/apache/camel/commit/4c4daf7044edb3178e72fd6d23de67ce13261746,
 fixed in 4.24.0.

_Claude Code on behalf of Claus Ibsen_

> 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
>            Assignee: Claus Ibsen
>            Priority: Minor
>             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)

Reply via email to