Skip to content

Commit 4b86e6a

Browse files
authored
feat(integrations): mark SMTP password and Dependency-Track API key as password (#3117)
Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
1 parent 5141752 commit 4b86e6a

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

app/controlplane/plugins/core/dependency-track/v1/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ See https://docs.chainloop.dev/guides/dependency-track/
1010
|Field|Type|Required|Description|
1111
|---|---|---|---|
1212
|allowAutoCreate|boolean|no|Support of creating projects on demand|
13-
|apiKey|string|yes|The API key to use for authentication|
13+
|apiKey|string (password)|yes|The API key to use for authentication|
1414
|instanceURI|string (uri)|yes|The URL of the Dependency-Track instance|
1515

1616
```json
@@ -25,6 +25,7 @@ See https://docs.chainloop.dev/guides/dependency-track/
2525
},
2626
"apiKey": {
2727
"type": "string",
28+
"format": "password",
2829
"description": "The API key to use for authentication"
2930
},
3031
"allowAutoCreate": {

app/controlplane/plugins/core/dependency-track/v1/extension.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type DependencyTrack struct {
3838
type registrationRequest struct {
3939
// The URL of the Dependency-Track instance
4040
InstanceURI string `json:"instanceURI" jsonschema:"format=uri,description=The URL of the Dependency-Track instance"`
41-
APIKey string `json:"apiKey" jsonschema:"description=The API key to use for authentication"`
41+
APIKey string `json:"apiKey" jsonschema:"format=password,description=The API key to use for authentication"`
4242
// Support the option to automatically create projects if requested (optional)
4343
AllowAutoCreate bool `json:"allowAutoCreate,omitempty" jsonschema:"description=Support of creating projects on demand"`
4444
}

app/controlplane/plugins/core/smtp/v1/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Starting now, every time a workflow run occurs, an email notification will be se
3131
|---|---|---|---|
3232
|from|string (email)|yes|The email address of the sender.|
3333
|host|string|yes|The host to use for the SMTP authentication.|
34-
|password|string|yes|The password to use for the SMTP authentication.|
34+
|password|string (password)|yes|The password to use for the SMTP authentication.|
3535
|port|string|yes|The port to use for the SMTP authentication|
3636
|to|string (email)|yes|The email address to send the email to.|
3737
|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
5858
},
5959
"password": {
6060
"type": "string",
61+
"format": "password",
6162
"description": "The password to use for the SMTP authentication."
6263
},
6364
"host": {

app/controlplane/plugins/core/smtp/v1/extension.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type registrationRequest struct {
3333
To string `json:"to" jsonschema:"format=email,description=The email address to send the email to."`
3434
From string `json:"from" jsonschema:"format=email,description=The email address of the sender."`
3535
User string `json:"user" jsonschema:"minLength=1,description=The username to use for the SMTP authentication."`
36-
Password string `json:"password" jsonschema:"description=The password to use for the SMTP authentication."`
36+
Password string `json:"password" jsonschema:"format=password,description=The password to use for the SMTP authentication."`
3737
Host string `json:"host" jsonschema:"description=The host to use for the SMTP authentication."`
3838
// TODO: Make the port an integer
3939
Port string `json:"port" jsonschema:"description=The port to use for the SMTP authentication"`

0 commit comments

Comments
 (0)