From b0329a52d3478d6e43cdb17b150092a38c7bf60c Mon Sep 17 00:00:00 2001 From: Sylwester Piskozub Date: Thu, 14 May 2026 17:40:20 +0200 Subject: [PATCH 1/2] feat(integrations): mask SMTP password and Dependency-Track API key Tag the SMTP password and Dependency-Track API key registration fields with format=password so frontends rendering the JSON schema can present them as masked password inputs. Signed-off-by: Sylwester Piskozub --- app/controlplane/plugins/core/dependency-track/v1/extension.go | 2 +- app/controlplane/plugins/core/smtp/v1/extension.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controlplane/plugins/core/dependency-track/v1/extension.go b/app/controlplane/plugins/core/dependency-track/v1/extension.go index 46d0d5810..767463cd7 100644 --- a/app/controlplane/plugins/core/dependency-track/v1/extension.go +++ b/app/controlplane/plugins/core/dependency-track/v1/extension.go @@ -38,7 +38,7 @@ type DependencyTrack struct { type registrationRequest struct { // The URL of the Dependency-Track instance InstanceURI string `json:"instanceURI" jsonschema:"format=uri,description=The URL of the Dependency-Track instance"` - APIKey string `json:"apiKey" jsonschema:"description=The API key to use for authentication"` + APIKey string `json:"apiKey" jsonschema:"format=password,description=The API key to use for authentication"` // Support the option to automatically create projects if requested (optional) AllowAutoCreate bool `json:"allowAutoCreate,omitempty" jsonschema:"description=Support of creating projects on demand"` } diff --git a/app/controlplane/plugins/core/smtp/v1/extension.go b/app/controlplane/plugins/core/smtp/v1/extension.go index 65a70d1af..6f0a2f6de 100644 --- a/app/controlplane/plugins/core/smtp/v1/extension.go +++ b/app/controlplane/plugins/core/smtp/v1/extension.go @@ -33,7 +33,7 @@ type registrationRequest struct { To string `json:"to" jsonschema:"format=email,description=The email address to send the email to."` From string `json:"from" jsonschema:"format=email,description=The email address of the sender."` User string `json:"user" jsonschema:"minLength=1,description=The username to use for the SMTP authentication."` - Password string `json:"password" jsonschema:"description=The password to use for the SMTP authentication."` + Password string `json:"password" jsonschema:"format=password,description=The password to use for the SMTP authentication."` Host string `json:"host" jsonschema:"description=The host to use for the SMTP authentication."` // TODO: Make the port an integer Port string `json:"port" jsonschema:"description=The port to use for the SMTP authentication"` From ca02ed83b7e1b4d252a36b1097b2ab49fe734da7 Mon Sep 17 00:00:00 2001 From: Sylwester Piskozub Date: Thu, 14 May 2026 18:47:36 +0200 Subject: [PATCH 2/2] regen readme Signed-off-by: Sylwester Piskozub --- app/controlplane/plugins/core/dependency-track/v1/README.md | 3 ++- app/controlplane/plugins/core/smtp/v1/README.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/controlplane/plugins/core/dependency-track/v1/README.md b/app/controlplane/plugins/core/dependency-track/v1/README.md index b8230d54f..aef5252e2 100644 --- a/app/controlplane/plugins/core/dependency-track/v1/README.md +++ b/app/controlplane/plugins/core/dependency-track/v1/README.md @@ -10,7 +10,7 @@ See https://docs.chainloop.dev/guides/dependency-track/ |Field|Type|Required|Description| |---|---|---|---| |allowAutoCreate|boolean|no|Support of creating projects on demand| -|apiKey|string|yes|The API key to use for authentication| +|apiKey|string (password)|yes|The API key to use for authentication| |instanceURI|string (uri)|yes|The URL of the Dependency-Track instance| ```json @@ -25,6 +25,7 @@ See https://docs.chainloop.dev/guides/dependency-track/ }, "apiKey": { "type": "string", + "format": "password", "description": "The API key to use for authentication" }, "allowAutoCreate": { diff --git a/app/controlplane/plugins/core/smtp/v1/README.md b/app/controlplane/plugins/core/smtp/v1/README.md index 01a6ffae2..0cd67ca06 100644 --- a/app/controlplane/plugins/core/smtp/v1/README.md +++ b/app/controlplane/plugins/core/smtp/v1/README.md @@ -31,7 +31,7 @@ Starting now, every time a workflow run occurs, an email notification will be se |---|---|---|---| |from|string (email)|yes|The email address of the sender.| |host|string|yes|The host to use for the SMTP authentication.| -|password|string|yes|The password to use for the SMTP authentication.| +|password|string (password)|yes|The password to use for the SMTP authentication.| |port|string|yes|The port to use for the SMTP authentication| |to|string (email)|yes|The email address to send the email to.| |user|string|yes|The username to use for the SMTP authentication.| @@ -58,6 +58,7 @@ Starting now, every time a workflow run occurs, an email notification will be se }, "password": { "type": "string", + "format": "password", "description": "The password to use for the SMTP authentication." }, "host": {