feat: secure /webhooks with IsSafeWebhookUrl
Some checks failed
Build Containers / build-containers-common (push) Has been cancelled
Build / build (22.12.0) (push) Has been cancelled
Build Containers / build-containers (amd64, ubuntu-latest) (push) Has been cancelled
Build Containers / build-containers (arm64, ubuntu-24.04-arm) (push) Has been cancelled
Build Containers / build-container-manifest (push) Has been cancelled
Some checks failed
Build Containers / build-containers-common (push) Has been cancelled
Build / build (22.12.0) (push) Has been cancelled
Build Containers / build-containers (amd64, ubuntu-latest) (push) Has been cancelled
Build Containers / build-containers (arm64, ubuntu-24.04-arm) (push) Has been cancelled
Build Containers / build-container-manifest (push) Has been cancelled
This commit is contained in:
parent
6f7a80f689
commit
5ae4c950db
1 changed files with 4 additions and 0 deletions
|
|
@ -18,6 +18,10 @@ export class WebhooksDto {
|
|||
@IsString()
|
||||
@IsUrl()
|
||||
@IsDefined()
|
||||
@IsSafeWebhookUrl({
|
||||
message:
|
||||
'Webhook URL must be a public HTTPS URL and cannot point to internal network addresses',
|
||||
})
|
||||
url: string;
|
||||
|
||||
@Type(() => WebhooksIntegrationDto)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue