The Simplest Way to Make Google Compute Engine and Tekton Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Pairing google compute engine and tekton lets teams run cloud build tasks on virtual machines. Tekton runs each build step in Kubernetes pods and updates target hosts as needed. This pairing helps engineering teams build code, test containers, and push updates to cloud hosts. You get repeatable build pipelines and scalable virtual machines in one workflow. How google compute engine and tekton share roles and data Tekton runs inside a Kubernetes cluster and manages build tasks as separate ste

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Pairing google compute engine and tekton lets teams run cloud build tasks on virtual machines. Tekton runs each build step in Kubernetes pods and updates target hosts as needed.

This pairing helps engineering teams build code, test containers, and push updates to cloud hosts. You get repeatable build pipelines and scalable virtual machines in one workflow.

How google compute engine and tekton share roles and data

Tekton runs inside a Kubernetes cluster and manages build tasks as separate steps. Each step runs in its own container and needs a cloud role to work.

To reach virtual machines, the pipeline pod uses a Google Cloud service account. Workload identity links the Kubernetes service account to the cloud service account. This setup lets pods talk to cloud APIs without storing static JSON keys.

Once the pod logs in, it sends API calls to manage virtual machines. A task might build a disk image, start a test host, or push files. Data flows from the Tekton workspace to the target host over the cloud network.

After the task finishes, Tekton tears down the pod and saves the build logs. The virtual machine keeps running the new app code or shuts down after testing.

Common failure modes and how to scope roles

Many teams start by giving Tekton a single cloud service account with broad rights. When every pipeline shares one wide role, any task can delete or change hosts. A mistake in a test script can break live virtual machines right away.

Storing long-lived SSH keys or static cloud keys inside cluster secrets creates another risk. Anyone who can read cluster secrets can copy those keys and use them outside. Unlogged shell tasks also make it hard to see which build changed a host.

End-to-End Encryption + Tekton Pipeline Security: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

You can fix these risks by giving each pipeline its own service account. Grant only the exact compute permissions that the specific build task needs to run. If a task only reads host status, do not give it write rights.

Keep network paths tight between your build cluster and your virtual machines. Run both systems inside a shared private network so traffic stays off the public internet. Use firewall rules with service account tags to limit which pods reach which hosts.

Keeping build logs and host changes clear

When a build fails or a host breaks, teams need clear logs to fix it. Standard pipeline logs show container output, but they may miss host-level actions. Turn on cloud audit logs to track every API call from your build pods.

Audit logs show which service account started, stopped, or changed a virtual machine. Pair those cloud logs with Tekton task logs so your team sees the full timeline. Clear logs help teams spot bad scripts fast and keep sensitive fields like emails safe.

When build tasks query databases, masking rewrites matched fields like card numbers in results. This practice keeps test logs clean while teams check why a pipeline step failed.

Govern statements and responses across databases and APIs

Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.

First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.

Frequently asked questions

How should Tekton pods log in to Google Compute Engine?

Use workload identity to map your Kubernetes service account to a cloud service account. This method avoids storing static JSON keys inside your cluster secrets.

How do we stop one pipeline from changing all virtual machines?

Create separate service accounts for different pipelines and scope their compute roles tightly. Use firewall rules and tags to restrict which hosts each build task can reach.

Can Tekton run tasks on private virtual machines without public IPs?

Yes, place your Kubernetes cluster and your virtual machines in the same private network. The build pods can then reach the hosts over internal IP addresses.

The query runs. The emails stay hidden.