Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

UXW-186: Mark Mongo connection URI as a "password" (#65178)

John Swanson1c8d56b2cd0a
diff --git a/bin/build/src/build_drivers/lint_manifest_file.clj b/bin/build/src/build_drivers/lint_manifest_file.clj
index d4d1d231b8a..36a5a074a69 100644
--- a/bin/build/src/build_drivers/lint_manifest_file.clj
+++ b/bin/build/src/build_drivers/lint_manifest_file.clj
@@ -26,7 +26,7 @@
(s/def ::contact-info (spell/keys :req-un [::name]
:opt-un [::address]))
-(def ^:private property-types #{"string" "text" "textFile" "boolean" "secret" "info" "schema-filters" "section"})
+(def ^:private property-types #{"string" "text" "textFile" "boolean" "secret" "info" "schema-filters" "section" "password"})
(s/def ::display-name string?)
(s/def ::default any?)
diff --git a/modules/drivers/mongo/resources/metabase-plugin.yaml b/modules/drivers/mongo/resources/metabase-plugin.yaml
index 5880c338fa3..a9240128427 100644
--- a/modules/drivers/mongo/resources/metabase-plugin.yaml
+++ b/modules/drivers/mongo/resources/metabase-plugin.yaml
@@ -11,7 +11,7 @@ driver:
type: section
default: false
- name: conn-uri
- type: string
+ type: password
display-name: Paste your connection string
placeholder: 'mongodb://[username:password@]host1[:port1][,...hostN[:portN]][/[dbname][?options]]'
required: true