{
  "name": "graphql-query",
  "title": "Run a GraphQL query",
  "description": "POST a GraphQL query (or mutation) with JSON variables to a GraphQL endpoint, authenticated with a bearer token read from a Kubernetes Secret. The request body is assembled with jq so quotes and newlines in the query are escaped safely.",
  "category": "HTTP",
  "tags": [
    "curl-jq",
    "http"
  ],
  "latestVersion": "1.0.2",
  "versions": [
    "1.0.2",
    "1.0.1",
    "1.0.0"
  ],
  "parameters": [
    "endpoint",
    "query",
    "token-secret-key",
    "token-secret-name",
    "variables-json"
  ],
  "images": [
    "badouralix/curl-jq@sha256:38362e9b8ef4bd09a88c0db07941e61e0bf0f7240e9f36a3ff2c31ad75546be2"
  ],
  "url": "https://catalog.dagweave.com/api/v1/items/graphql-query.json",
  "templateUrl": "https://catalog.dagweave.com/api/v1/items/graphql-query/latest/template.yaml",
  "page": "https://catalog.dagweave.com/items/graphql-query/",
  "entrypoint": "query",
  "parameterDetails": [
    {
      "name": "endpoint",
      "title": "Endpoint",
      "description": "Absolute GraphQL endpoint URL.",
      "type": "string",
      "required": true,
      "example": "https://api.example.com/graphql"
    },
    {
      "name": "query",
      "title": "Query",
      "description": "The GraphQL query (or mutation) document.",
      "type": "string",
      "required": true,
      "example": "query($id: ID!) { user(id: $id) { name } }"
    },
    {
      "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 the bearer token.",
      "type": "string",
      "required": false,
      "default": "graphql-token"
    },
    {
      "name": "variables-json",
      "title": "Variables (JSON)",
      "description": "JSON object of query variables.",
      "type": "string",
      "required": false,
      "default": "{}",
      "example": "{\"id\":\"123\"}"
    }
  ],
  "imageDetails": [
    {
      "ref": "badouralix/curl-jq@sha256:38362e9b8ef4bd09a88c0db07941e61e0bf0f7240e9f36a3ff2c31ad75546be2",
      "repository": "badouralix/curl-jq",
      "digest": "sha256:38362e9b8ef4bd09a88c0db07941e61e0bf0f7240e9f36a3ff2c31ad75546be2"
    }
  ],
  "versionDetails": [
    {
      "version": "1.0.2",
      "date": "2026-09-12",
      "notes": "Move to badouralix/curl-jq:ubuntu. The Alpine build this pinned carries two jq advisories on the path this item takes, and its publisher has not rebuilt it since 1 July. The ubuntu tag has neither, and fixable CRITICAL/HIGH drops from 4 to 2. It is Ubuntu 24.04 rather than Alpine, so sh is dash rather than busybox ash, curl goes back from 8.21.0 to 8.5.0 and jq from 1.8.1 to 1.7.1. Still runs as root.",
      "latest": true,
      "installable": true,
      "url": "https://catalog.dagweave.com/api/v1/items/graphql-query/1.0.2.json",
      "templateUrl": "https://catalog.dagweave.com/api/v1/items/graphql-query/1.0.2/template.yaml"
    },
    {
      "version": "1.0.1",
      "date": "2026-08-02",
      "notes": "Swap the abandoned dwdraju/alpine-curl-jq, last built 2025-02-21, for badouralix/curl-jq, which is still being rebuilt. Fixable CRITICAL/HIGH drops from 19 to 1. Same Alpine base, same root user, same /bin/sh default command; curl goes 8.12.1 to 8.21.0 and jq 1.7.1 to 1.8.1.",
      "latest": false,
      "installable": false,
      "url": "https://catalog.dagweave.com/api/v1/items/graphql-query/1.0.1.json"
    },
    {
      "version": "1.0.0",
      "date": "2026-07-17",
      "notes": "Initial release.",
      "latest": false,
      "installable": false,
      "url": "https://catalog.dagweave.com/api/v1/items/graphql-query/1.0.0.json"
    }
  ],
  "source": "https://github.com/dagweave/catalog/tree/67458f74dbbf913b03177f3cefc69424be85eb1d/catalog/graphql-query",
  "catalogSha": "67458f74dbbf913b03177f3cefc69424be85eb1d"
}
