{
  "name": "http-request-curl",
  "title": "HTTP request (curl)",
  "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/http-request-curl/1.0.1.json",
  "templateUrl": "https://catalog.dagweave.com/api/v1/items/http-request-curl/1.0.1/template.yaml",
  "entrypoint": "request",
  "parameters": [
    {
      "name": "url",
      "title": "URL",
      "description": "Absolute request URL.",
      "type": "string",
      "required": true,
      "example": "https://api.example.com/v1/resource"
    },
    {
      "name": "body",
      "title": "Body",
      "description": "Optional request body. Sent only when non-empty.",
      "type": "string",
      "required": false,
      "default": ""
    },
    {
      "name": "content-type",
      "title": "Content-Type",
      "description": "Content-Type header value for the request.",
      "type": "string",
      "required": false,
      "default": "application/json"
    },
    {
      "name": "method",
      "title": "Method",
      "description": "HTTP method to use.",
      "type": "string",
      "required": false,
      "default": "GET",
      "enum": [
        "GET",
        "POST",
        "PUT",
        "PATCH",
        "DELETE",
        "HEAD",
        "OPTIONS"
      ]
    },
    {
      "name": "token-secret-key",
      "title": "Token secret key",
      "description": "Key within the Secret that holds the bearer token.",
      "type": "string",
      "required": false,
      "default": "token"
    },
    {
      "name": "token-secret-name",
      "title": "Token secret name",
      "description": "Name of the Kubernetes Secret holding an optional bearer token. If the Secret is absent the Authorization header is omitted.",
      "type": "string",
      "required": false,
      "default": "http-bearer-token"
    }
  ],
  "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/http-request-curl/1.0.1/template.yaml",
    "argo": "argo template create -n argo https://catalog.dagweave.com/api/v1/items/http-request-curl/1.0.1/template.yaml"
  },
  "template": "apiVersion: argoproj.io/v1alpha1\nkind: WorkflowTemplate\nmetadata:\n  name: http-request-curl\n  labels:\n    dagweave.io/catalog-item: http-request-curl\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: request\n  templates:\n    - name: request\n      inputs:\n        parameters:\n          # HTTP method (GET, POST, PUT, PATCH, DELETE, ...).\n          - name: method\n            default: GET\n          # Absolute request URL.\n          - name: url\n          # Optional request body. Sent with --data-raw when non-empty.\n          - name: body\n            default: \"\"\n          # Content-Type header value for the request.\n          - name: content-type\n            default: application/json\n          # Name/key of a Kubernetes Secret holding a bearer token. Optional: if the\n          # Secret or key is absent the Authorization header is simply omitted.\n          - name: token-secret-name\n            default: http-bearer-token\n          - name: token-secret-key\n            default: token\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 URL or body containing quotes or shell metacharacters is safe. The\n        # optional bearer token and body are appended via positional params so a\n        # blank value never leaks a stray flag into the curl invocation.\n        args:\n          - |\n            set -eu\n            if [ -n \"${BEARER_TOKEN:-}\" ]; then\n              set -- -H \"Authorization: Bearer ${BEARER_TOKEN}\"\n            else\n              set --\n            fi\n            if [ -n \"${BODY}\" ]; then\n              set -- \"$@\" --data-raw \"${BODY}\"\n            fi\n            curl -sSf -X \"${METHOD}\" \"${URL}\" \\\n              -H \"Content-Type: ${CONTENT_TYPE}\" \\\n              \"$@\"\n        env:\n          - name: METHOD\n            value: \"{{inputs.parameters.method}}\"\n          - name: URL\n            value: \"{{inputs.parameters.url}}\"\n          - name: BODY\n            value: \"{{inputs.parameters.body}}\"\n          - name: CONTENT_TYPE\n            value: \"{{inputs.parameters.content-type}}\"\n          - name: BEARER_TOKEN\n            valueFrom:\n              secretKeyRef:\n                name: \"{{inputs.parameters.token-secret-name}}\"\n                key: \"{{inputs.parameters.token-secret-key}}\"\n                optional: true\n",
  "templateSha256": "b9cb0dc832bec735915a94fe6802ed8de437bb49cb603dd913cad77029a3b7a1",
  "source": "https://github.com/dagweave/catalog/tree/67458f74dbbf913b03177f3cefc69424be85eb1d/catalog/http-request-curl",
  "catalogSha": "67458f74dbbf913b03177f3cefc69424be85eb1d"
}
