[
https://issues.apache.org/jira/browse/CAMEL-27165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-27165:
--------------------------------
Description:
The {{connectionUriString}} option of the mongodb endpoint can hold a password
({{mongodb://user:password@host/...}}, or {{mongodb+srv://...}} for MongoDB
Atlas), but it is not marked {{security = "secret"}}, unlike {{username}} and
{{password}}. So the Camel catalog, and the tools that read it, do not treat it
as a credential.
Mark the option as secret, as the other credentials of the endpoint are.
Found while adding a connection string option to the MongoDB Kamelets
(apache/camel-kamelets#3200).
_Claude Code on behalf of Claus Ibsen_
was:
The {{connectionUriString}} option of the mongodb endpoint can hold a password
({{mongodb://user:password@host/...}}, or {{mongodb+srv://...}} for MongoDB
Atlas), but it is not marked {{security = "secret"}}, unlike {{username}} and
{{password}}. The startup log masks the password, but {{camel get endpoint}}
and other places that show the endpoint URI print it in full.
Mark the option as secret, so it is masked like the other credentials.
Found while adding a connection string option to the MongoDB Kamelets
(apache/camel-kamelets#3200).
_Claude Code on behalf of Claus Ibsen_
Summary: camel-mongodb - connectionUriString is not marked secret,
though it can hold a password (was: camel-mongodb - connectionUriString is not
marked secret, so its password shows in the endpoint URI)
> camel-mongodb - connectionUriString is not marked secret, though it can hold
> a password
> ---------------------------------------------------------------------------------------
>
> Key: CAMEL-27165
> URL: https://issues.apache.org/jira/browse/CAMEL-27165
> Project: Camel
> Issue Type: Bug
> Components: camel-mongodb
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 4.24.0
>
>
> The {{connectionUriString}} option of the mongodb endpoint can hold a
> password ({{mongodb://user:password@host/...}}, or {{mongodb+srv://...}} for
> MongoDB Atlas), but it is not marked {{security = "secret"}}, unlike
> {{username}} and {{password}}. So the Camel catalog, and the tools that read
> it, do not treat it as a credential.
> Mark the option as secret, as the other credentials of the endpoint are.
> Found while adding a connection string option to the MongoDB Kamelets
> (apache/camel-kamelets#3200).
> _Claude Code on behalf of Claus Ibsen_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)