{
  "name": "webhook-post",
  "title": "POST JSON to a webhook",
  "category": "HTTP",
  "tags": [
    "curl",
    "http"
  ],
  "version": "1.0.1",
  "date": "2026-08-02",
  "notes": "Move curlimages/curl from 8.11.1 to 8.21.0. Fixable CRITICAL/HIGH drops from 26 to 1.",
  "latest": true,
  "installable": true,
  "url": "https://catalog.dagweave.com/api/v1/items/webhook-post/1.0.1.json",
  "templateUrl": "https://catalog.dagweave.com/api/v1/items/webhook-post/1.0.1/template.yaml",
  "entrypoint": "post",
  "parameters": [
    {
      "name": "json-body",
      "title": "JSON body",
      "description": "The raw JSON payload to send as the request body.",
      "type": "string",
      "required": true,
      "example": "{\"event\":\"deploy\",\"status\":\"ok\"}"
    },
    {
      "name": "url",
      "title": "Webhook URL",
      "description": "Absolute webhook URL to POST the JSON payload to.",
      "type": "string",
      "required": true,
      "example": "https://hooks.example.com/services/T000/B000/XXXX"
    },
    {
      "name": "auth-secret-key",
      "title": "Auth secret key",
      "description": "Key within the Secret that holds the Authorization header value.",
      "type": "string",
      "required": false,
      "default": "authorization"
    },
    {
      "name": "auth-secret-name",
      "title": "Auth secret name",
      "description": "Name of the Kubernetes Secret holding an optional Authorization header value (e.g. \"Bearer abc123\"). If the Secret is absent the header is omitted.",
      "type": "string",
      "required": false,
      "default": "webhook-auth"
    }
  ],
  "images": [
    {
      "ref": "curlimages/curl@sha256:3fb7e13e5d179a845c97d78204f3f1064d1907037f26a3ebf91710571151fd93",
      "repository": "curlimages/curl",
      "tag": "8.23.0",
      "digest": "sha256:3fb7e13e5d179a845c97d78204f3f1064d1907037f26a3ebf91710571151fd93"
    }
  ],
  "install": {
    "kubectl": "kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/webhook-post/1.0.1/template.yaml",
    "argo": "argo template create -n argo https://catalog.dagweave.com/api/v1/items/webhook-post/1.0.1/template.yaml"
  },
  "template": "apiVersion: argoproj.io/v1alpha1\nkind: WorkflowTemplate\nmetadata:\n  name: webhook-post\n  labels:\n    dagweave.io/catalog-item: webhook-post\n  annotations:\n    # The catalog semver this manifest was authored at. The dagweave app records\n    # (catalog-item-id, semver) -\u003e content-hash -\u003e base-vN when it mints the tenant\n    # cluster name via ResolveOrMint. Keep in sync with metadata.yaml `version`.\n    dagweave.io/catalog-version: \"1.0.1\"\n    dagweave.io/catalog-category: \"HTTP\"\nspec:\n  entrypoint: post\n  templates:\n    - name: post\n      inputs:\n        parameters:\n          # Absolute webhook URL to POST the JSON payload to.\n          - name: url\n          # The raw JSON payload to send as the request body.\n          - name: json-body\n          # Name/key of a Kubernetes Secret holding an Authorization header value\n          # (e.g. \"Bearer abc123\"). Optional: if the Secret or key is absent the\n          # Authorization header is simply omitted.\n          - name: auth-secret-name\n            default: webhook-auth\n          - name: auth-secret-key\n            default: authorization\n      container:\n        # Pinned by digest per the catalog convention: an image rebuild can never\n        # silently change the behaviour of an already-released item version.\n        # curlimages/curl:8.23.0\n        image: curlimages/curl@sha256:3fb7e13e5d179a845c97d78204f3f1064d1907037f26a3ebf91710571151fd93\n        command: [sh, -c]\n        # Values are passed as env vars (below), never interpolated into the shell,\n        # so a payload containing quotes or shell metacharacters is safe. The\n        # optional Authorization header is appended via positional params so a blank\n        # value never leaks a stray flag into the curl invocation.\n        args:\n          - |\n            set -eu\n            if [ -n \"${AUTH_HEADER:-}\" ]; then\n              set -- -H \"Authorization: ${AUTH_HEADER}\"\n            else\n              set --\n            fi\n            curl -sSf -X POST \"${URL}\" \\\n              -H \"Content-Type: application/json\" \\\n              --data-raw \"${JSON_BODY}\" \\\n              \"$@\"\n        env:\n          - name: URL\n            value: \"{{inputs.parameters.url}}\"\n          - name: JSON_BODY\n            value: \"{{inputs.parameters.json-body}}\"\n          - name: AUTH_HEADER\n            valueFrom:\n              secretKeyRef:\n                name: \"{{inputs.parameters.auth-secret-name}}\"\n                key: \"{{inputs.parameters.auth-secret-key}}\"\n                optional: true\n",
  "templateSha256": "2cafc788a8a4868c921dde72043bb1026fba58867e65ed336a9f7a1ab708205c",
  "source": "https://github.com/dagweave/catalog/tree/67458f74dbbf913b03177f3cefc69424be85eb1d/catalog/webhook-post",
  "catalogSha": "67458f74dbbf913b03177f3cefc69424be85eb1d"
}
