Dagweave catalog

Upload a file to Google Cloud Storage

gcs-uploadv1.0.4updated 2026-08-205 versions

Upload a local file or artifact to a Google Cloud Storage bucket with gsutil, authenticating with a service-account key read from a Kubernetes Secret.

Install v1.0.4

Installs the template into your Argo namespace. The URL is pinned to this version.

kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/gcs-upload/1.0.4/template.yaml

Or with the Argo CLI:

argo template create -n argo https://catalog.dagweave.com/api/v1/items/gcs-upload/1.0.4/template.yaml

Facts

Category
Object storage
Tags
cloud-sdk object-storage
Entrypoint
upload
Template SHA-256
62322a6d0f95bbe5c2896a0674bd7d31d7f7bdbf20165190a4652e8e4ad96f15
Source
gcs-upload at catalog commit 67458f7
API
item document, latest template.yaml

Images and provenance

Every image is pinned by digest, so a rebuilt tag can never change what this version runs.

RepositoryTagDigest
google/cloud-sdkslimsha256:b38f2881552c3054d140c8eeb4ad88bdc0eb4deeeb38507c5dac1403adc3ee64

Parameters

NameDescriptionDefault
bucket required Target GCS bucket name (no gs:// prefix).
Example my-gcs-bucket
none
object required Destination object name within the bucket.
Example reports/2026/summary.csv
none
source-path required Local path of the file to upload. none
gcp-secret-key Key within the Secret that holds the service-account JSON key. key.json
gcp-secret-name Name of the Kubernetes Secret holding the GCP service-account JSON key. gcp-credentials

WorkflowTemplate

Download template.yaml

apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
  name: gcs-upload
  labels:
    dagweave.io/catalog-item: gcs-upload
  annotations:
    # The catalog semver this manifest was authored at. The dagweave app records
    # (catalog-item-id, semver) -> content-hash -> base-vN when it mints the tenant
    # cluster name via ResolveOrMint. Keep in sync with metadata.yaml `version`.
    dagweave.io/catalog-version: "1.0.4"
    dagweave.io/catalog-category: "Object storage"
spec:
  entrypoint: upload
  templates:
    - name: upload
      inputs:
        parameters:
          # Target GCS bucket name (no gs:// prefix).
          - name: bucket
          # Destination object name within the bucket.
          - name: object
          # Local path of the file to upload.
          - name: source-path
          # Name of the Kubernetes Secret holding the GCP service-account JSON key,
          # plus the key within it. Defaults let a user leave them blank in the
          # Inspector.
          - name: gcp-secret-name
            default: gcp-credentials
          - name: gcp-secret-key
            default: key.json
      container:
        # Pinned by digest per the catalog convention: an image rebuild can never
        # silently change the behaviour of an already-released item version.
        # google/cloud-sdk:slim
        image: google/cloud-sdk@sha256:b38f2881552c3054d140c8eeb4ad88bdc0eb4deeeb38507c5dac1403adc3ee64
        command: [sh, -c]
        # The service-account key arrives as an env var (never interpolated into the
        # shell), is written to a private temp file, and gcloud activates it before
        # gsutil runs. Bucket/object/source are passed as env too and referenced
        # double-quoted, so metacharacters are safe.
        args:
          - |
            set -eu
            umask 077
            printf '%s' "${GOOGLE_CREDENTIALS_JSON}" > /tmp/gcp-key.json
            gcloud auth activate-service-account --key-file=/tmp/gcp-key.json
            gsutil cp "${SOURCE_PATH}" "gs://${GCS_BUCKET}/${GCS_OBJECT}"
        env:
          - name: GCS_BUCKET
            value: "{{inputs.parameters.bucket}}"
          - name: GCS_OBJECT
            value: "{{inputs.parameters.object}}"
          - name: SOURCE_PATH
            value: "{{inputs.parameters.source-path}}"
          - name: GOOGLE_CREDENTIALS_JSON
            valueFrom:
              secretKeyRef:
                name: "{{inputs.parameters.gcp-secret-name}}"
                key: "{{inputs.parameters.gcp-secret-key}}"

Version history

Read from the item's changelog. Each version has its own JSON document; the pinned catalogue vendors the manifest of the latest one, so that is the version that installs.

  1. 1.0.4 latest 2026-08-20

    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.

    kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/gcs-upload/1.0.4/template.yaml
    argo template create -n argo https://catalog.dagweave.com/api/v1/items/gcs-upload/1.0.4/template.yaml

    version document, template.yaml

  2. 1.0.3 2026-08-11

    Repin google/cloud-sdk:slim on the current digest, which is also the newest 580.0.0-slim. gcloud goes 579.0.0 to 580.0.0 and gsutil stays at 5.37. The last fixable OS-package HIGH, linux-libc-dev CVE-2026-64561, is gone with the newer Debian trixie base, so the OS baseline record is deleted rather than rewritten. The three cryptography advisories in the bundled Python are unmoved and keep their record.

    This release is documented, but its manifest is not vendored here, so it has no install command. Version document

  3. 1.0.2 2026-08-11

    Repin google/cloud-sdk:slim on the current digest. Same tag, newer build. Fixable OS-package HIGH drops from 21 to 1: the libexpat1 and linux-libc-dev updates have landed, one newer linux-libc-dev has not. gcloud goes 578.0.0 to 579.0.0 and gsutil stays at 5.37.

    This release is documented, but its manifest is not vendored here, so it has no install command. Version document

  4. 1.0.1 2026-08-02

    Move google/cloud-sdk off the pinned 495.0.0-slim tag onto the rolling slim tag that bigquery-query already uses. Fixable CRITICAL/HIGH drops from 980 to 18. gcloud goes 495.0.0 to 578.0.0 and gsutil 5.30 to 5.37.

    This release is documented, but its manifest is not vendored here, so it has no install command. Version document

  5. 1.0.0 2026-07-16

    Initial release.

    This release is documented, but its manifest is not vendored here, so it has no install command. Version document

Run it once

After installing, from the command line.

argo submit -n argo --from workflowtemplate/gcs-upload \
  -p bucket=my-gcs-bucket \
  -p object=reports/2026/summary.csv \
  -p source-path=...

Workflow that references it

A Workflow with the required parameters filled from the examples.

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: gcs-upload-
spec:
  workflowTemplateRef:
    name: gcs-upload
  arguments:
    parameters:
      - name: bucket
        value: "my-gcs-bucket"
      - name: object
        value: "reports/2026/summary.csv"
      - name: source-path
        value: "..."

As a step of a larger workflow

steps:
  - - name: gcs-upload
      templateRef:
        name: gcs-upload
        template: upload