{
  "name": "gcs-upload",
  "title": "Upload a file to Google Cloud Storage",
  "category": "Object storage",
  "tags": [
    "cloud-sdk",
    "object-storage"
  ],
  "version": "1.0.4",
  "date": "2026-08-20",
  "notes": "Repin google/cloud-sdk:slim onto 581.0.0-slim, the digest :slim now heads at. gcloud goes 580.0.0 to 581.0.0 on the same Dockerfile: Entrypoint, Cmd, User and WorkingDir match across both digests and the only layers that differ are the ones carrying the version argument. The four util-linux advisories the old pin went red on, CVE-2026-53612 through CVE-2026-53615, are gone with Debian's 2.41.5-0+deb13u1, so the OS baseline record is deleted rather than rewritten. The eleven vendored advisories are the same eleven on both digests and keep their record.",
  "latest": true,
  "installable": true,
  "url": "https://catalog.dagweave.com/api/v1/items/gcs-upload/1.0.4.json",
  "templateUrl": "https://catalog.dagweave.com/api/v1/items/gcs-upload/1.0.4/template.yaml",
  "entrypoint": "upload",
  "parameters": [
    {
      "name": "bucket",
      "title": "Bucket",
      "description": "Target GCS bucket name (no gs:// prefix).",
      "type": "string",
      "required": true,
      "example": "my-gcs-bucket"
    },
    {
      "name": "object",
      "title": "Object name",
      "description": "Destination object name within the bucket.",
      "type": "string",
      "required": true,
      "example": "reports/2026/summary.csv"
    },
    {
      "name": "source-path",
      "title": "Source path",
      "description": "Local path of the file to upload.",
      "type": "string",
      "required": true
    },
    {
      "name": "gcp-secret-key",
      "title": "GCP secret key",
      "description": "Key within the Secret that holds the service-account JSON key.",
      "type": "string",
      "required": false,
      "default": "key.json"
    },
    {
      "name": "gcp-secret-name",
      "title": "GCP secret name",
      "description": "Name of the Kubernetes Secret holding the GCP service-account JSON key.",
      "type": "string",
      "required": false,
      "default": "gcp-credentials"
    }
  ],
  "images": [
    {
      "ref": "google/cloud-sdk@sha256:b38f2881552c3054d140c8eeb4ad88bdc0eb4deeeb38507c5dac1403adc3ee64",
      "repository": "google/cloud-sdk",
      "tag": "slim",
      "digest": "sha256:b38f2881552c3054d140c8eeb4ad88bdc0eb4deeeb38507c5dac1403adc3ee64"
    }
  ],
  "install": {
    "kubectl": "kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/gcs-upload/1.0.4/template.yaml",
    "argo": "argo template create -n argo https://catalog.dagweave.com/api/v1/items/gcs-upload/1.0.4/template.yaml"
  },
  "template": "apiVersion: argoproj.io/v1alpha1\nkind: WorkflowTemplate\nmetadata:\n  name: gcs-upload\n  labels:\n    dagweave.io/catalog-item: gcs-upload\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.4\"\n    dagweave.io/catalog-category: \"Object storage\"\nspec:\n  entrypoint: upload\n  templates:\n    - name: upload\n      inputs:\n        parameters:\n          # Target GCS bucket name (no gs:// prefix).\n          - name: bucket\n          # Destination object name within the bucket.\n          - name: object\n          # Local path of the file to upload.\n          - name: source-path\n          # Name of the Kubernetes Secret holding the GCP service-account JSON key,\n          # plus the key within it. Defaults let a user leave them blank in the\n          # Inspector.\n          - name: gcp-secret-name\n            default: gcp-credentials\n          - name: gcp-secret-key\n            default: key.json\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        # google/cloud-sdk:slim\n        image: google/cloud-sdk@sha256:b38f2881552c3054d140c8eeb4ad88bdc0eb4deeeb38507c5dac1403adc3ee64\n        command: [sh, -c]\n        # The service-account key arrives as an env var (never interpolated into the\n        # shell), is written to a private temp file, and gcloud activates it before\n        # gsutil runs. Bucket/object/source are passed as env too and referenced\n        # double-quoted, so metacharacters are safe.\n        args:\n          - |\n            set -eu\n            umask 077\n            printf '%s' \"${GOOGLE_CREDENTIALS_JSON}\" \u003e /tmp/gcp-key.json\n            gcloud auth activate-service-account --key-file=/tmp/gcp-key.json\n            gsutil cp \"${SOURCE_PATH}\" \"gs://${GCS_BUCKET}/${GCS_OBJECT}\"\n        env:\n          - name: GCS_BUCKET\n            value: \"{{inputs.parameters.bucket}}\"\n          - name: GCS_OBJECT\n            value: \"{{inputs.parameters.object}}\"\n          - name: SOURCE_PATH\n            value: \"{{inputs.parameters.source-path}}\"\n          - name: GOOGLE_CREDENTIALS_JSON\n            valueFrom:\n              secretKeyRef:\n                name: \"{{inputs.parameters.gcp-secret-name}}\"\n                key: \"{{inputs.parameters.gcp-secret-key}}\"\n",
  "templateSha256": "62322a6d0f95bbe5c2896a0674bd7d31d7f7bdbf20165190a4652e8e4ad96f15",
  "source": "https://github.com/dagweave/catalog/tree/67458f74dbbf913b03177f3cefc69424be85eb1d/catalog/gcs-upload",
  "catalogSha": "67458f74dbbf913b03177f3cefc69424be85eb1d"
}
