Skip to content

Outgoing webhook reduce sent data #1898

@seb-kw

Description

@seb-kw

Currently the org object includes data like contactPhoneNumber and numberOfEmployees that are not necessary to sent - reducing the information amount to the necessary details about org, project, asset - most relevant is the payload and only the details to associate with the asset.

{
    "organization": {
        "id": "3b69f4d3-77a9-4bed-9cfe-4ce4f97f3d0b",
        "name": "Test",
        "contactPhoneNumber": null,
        "numberOfEmployees": null,
        "country": null,
        "industry": null,
        "criticalInfrastructure": false,
        "iso27001": false,
        "nist": false,
        "grundschutz": false,
        "slug": "test",
        "description": "",
        "isPublic": false,
        "language": ""
    },
    "project": {
        "id": "a14524da-2fbb-44cc-a81d-d776ccafd06a",
        "name": "Test-Webhook",
        "description": "",
        "slug": "test-webhook",
        "isPublic": false,
        "type": "default",
        "repositoryId": null,
        "repositoryName": null
    },
    "asset": {
        "id": "146a3e8b-c2b0-4a1d-aa78-39c6a18aca18",
        "name": "Test-Webhook-4",
        "slug": "test-webhook-4",
        "description": "",
        "projectId": "a14524da-2fbb-44cc-a81d-d776ccafd06a",
        "availabilityRequirement": "medium",
        "integrityRequirement": "medium",
        "confidentialityRequirement": "medium",
        "reachableFromInternet": false,
        "repositoryId": null,
        "repositoryName": null,
        "lastSecretScan": null,
        "lastSastScan": null,
        "lastScaScan": null,
        "lastIacScan": null,
        "lastContainerScan": null,
        "lastDastScan": null,
        "signingPubKey": null,
        "enableTicketRange": false,
        "cvssAutomaticTicketThreshold": null,
        "riskAutomaticTicketThreshold": null
    },
    "assetVersion": {
        "name": "main",
        "assetId": "146a3e8b-c2b0-4a1d-aa78-39c6a18aca18",
        "slug": "main",
        "defaultBranch": true,
        "type": "branch",
        "signingPubKey": null,
        "metadata": null
    },
    "payload": {
        "bomFormat": "CycloneDX",
        "specVersion": "1.6",
        "version": 1,
        "metadata": {
...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions