Works with SpockOps

Google Cloud Storage and SpockOps

Keep every deployment decision, policy change and signed checkpoint in your own Cloud Storage bucket, under your retention, ready for Google SecOps.

Talk to us about audit streaming
The SpockOps mark beside the Google Cloud Storage logo

Regulated firms keep evidence where they control it. SpockOps writes the governance chain, its record of every deployment decision, review, outcome, policy change and signed checkpoint, to a Cloud Storage bucket in the firm's own Google Cloud project. Location, retention and access stay with the firm, and Google SecOps and other tools read it from there.

Why keep the chain in your own bucket? #

Because evidence is stronger when it does not depend on the vendor that produced it. A copy in the firm's own project, in the location it chooses and under its own retention, survives any change of vendor, and any rewrite of history inside SpockOps would no longer match it. It is also the route Google recommends for GitHub's own audit log in Google SecOps.

GitHub Enterprise Cloud can stream its audit log to Cloud Storage, and SpockOps writes in a folder layout modelled on GitHub's own stream, so the two records can sit side by side under the same policies. SpockOps is a GitHub App that checks workflows, AI agents and deployments against a team's policies, either watching, in Evaluate, or enforcing, in Block. Everything it decides, and every change to the policies it decides by, is written in order to the governance chain, with each record carrying the hash of the one before it and a signed checkpoint each day. The audit streaming overview describes it in full.

What lands in the bucket? #

One compressed file a minute while there is something to send, in a folder named for the minute it covers, such as spockops/2026/11/16/09/31/21303b0e-73d6-5446-b1f4-627360e7912f.json.log.gz. Each file holds newline-delimited JSON, one line per record, in GitHub's audit log format, up to 5,000 records or 10 MB. The Amazon S3 page lists every kind of record; the files are identical on every cloud.

How is it set up? #

With a service account that may write to one folder of one bucket, and an HMAC key for it. SpockOps writes through Cloud Storage's S3-compatible interface, which signs requests with HMAC keys rather than a service account key file. A SpockOps administrator enters the bucket and the key, confirms the connection and chooses how much history to send.

In Google Cloud:

  1. Choose a bucket and a folder. A firm that already streams GitHub's audit log to Cloud Storage can use the same bucket with a folder of its own. SpockOps uses spockops unless told otherwise.
  2. Create a service account for SpockOps and grant it, on the bucket, a role with storage.objects.create and storage.objects.delete. Cloud Storage requires the delete permission to replace a file, and SpockOps also uses it to tidy up its connection check. An IAM condition limits both to the folder:
resource.name.startsWith("projects/_/buckets/YOUR-BUCKET/objects/spockops/")
  1. Create an HMAC key for the service account under Cloud Storage's interoperability settings, and note its access ID and secret.

In SpockOps:

  1. Open the Audit streaming page under Settings. Under "Your own pipeline or storage", choose Google Cloud Storage, or choose the security tool that will read the bucket and its Cloud Storage route.
  2. Enter the bucket and the folder, then the HMAC access ID and secret. The key is stored as a secret and never written to the chain.
  3. Confirm the connection. SpockOps writes a small file named .spockops-connection-test to the folder and removes it. No records are sent. Tools reading the bucket should be pointed at files ending in .json.log.gz, which keeps this file out of them.
  4. Choose how much history to send: from now on, the whole chain, or everything from a chosen date. For an evidence store, send the whole chain.

If Google Cloud ever refuses the key, the stream pauses and the SpockOps workspace's administrators are emailed. Once the access is fixed, delivery resumes from where it stopped.

How should the bucket be configured to hold evidence? #

As a firm would configure any store of audit evidence: private, encrypted, recoverable, and kept for as long as its obligations require. A bucket already holding GitHub's audit log is probably configured this way. The settings below are the ones an auditor is likely to ask about.

Setting Recommendation Why it matters
Public access prevention and uniform bucket-level access On The chain names repositories, people and policies, and access is governed in one place
Encryption Google-managed keys, or customer-managed keys in Cloud KMS where the firm wants control of the key Applied by the bucket to every file SpockOps writes
Object Versioning and soft delete On A deleted or replaced file can be recovered
Lifecycle rules Keep recent files in Standard, then move them to Nearline, Coldline or Archive, then delete after the retention period Matches retention to the obligation
Access to read Separate read-only identities for each tool and for auditors SpockOps can write but not read; readers can read but not write
Logging Data Access audit logs for Cloud Storage Records who read the evidence and when

PCI DSS, for example, asks for twelve months of audit history with the most recent three immediately available, which a lifecycle rule meets directly. A bucket retention policy is worth testing on a copy first: SpockOps rewrites a file when it retries a delivery, which a locked bucket refuses. What regulators ask of a software change is set out in what regulators require.

Which tools can read the bucket? #

Any tool that reads Cloud Storage and newline-delimited JSON, and three security tools do so directly. One bucket can serve several readers at once, and a firm that changes SIEM later keeps its history: the new tool reads the same bucket.

Tool How it reads the bucket
Google SecOps A Google Cloud Storage V2 feed, under the SPOCKOPS_CHAIN log type (its parser is in development)
Elastic Security Elastic Agent's Google Cloud Storage input
Panther A Google Cloud Storage log source

How is the copy verified? #

With SpockOps' verifier, run by anyone the firm hands it to, including its auditor. It checks that every record is present and in order, that none was altered, and that every daily checkpoint carries a valid signature from SpockOps' published keys. Download a period's files with gcloud storage cp, then follow the steps on the Amazon S3 page, which apply unchanged.

SpockOps' verifier, spockops-verify, is a single script, in Python or in Bash, downloaded from the Audit streaming page in SpockOps, and it needs no connection to SpockOps to run. It exits with 0 when everything holds and 1 when anything does not, naming each failure. The checks rest on standard SHA-256 hashes and Ed25519 signatures, so a team can also write its own in any language. the ledger and the receipt explains why an auditor values the chain.

What should a Google Cloud team know before relying on it? #

Three points are worth settling at the start: SpockOps writes with an HMAC key, every kind of record arrives, and the chain covers what SpockOps governs.

  • An HMAC key, for now. SpockOps does not yet use workload identity federation. Rotating the key is straightforward: create a new one, enter it in SpockOps, then deactivate the old one.
  • The whole chain arrives. Policy changes, stream changes and checkpoints come with the deployment records, which keeps the copy complete enough to verify.
  • The chain covers what SpockOps governs. A deployment to an environment that does not use SpockOps' protection rule produces no decision. SpockOps shows which environments and workflows its policies cover, so gaps are visible rather than assumed.

Questions

What access does SpockOps need in Google Cloud?

An HMAC key for a service account allowed to create and delete objects in one folder of one bucket. It cannot read the bucket or reach anything else in the project.

Why does SpockOps need permission to delete?

Cloud Storage requires it to replace a file, which SpockOps does when it retries a delivery, and SpockOps uses it to remove its connection-check file.

Why an HMAC key rather than a service account key file?

SpockOps writes through Cloud Storage's S3-compatible interface, which signs requests with HMAC keys.

Which tools can read the bucket?

Google SecOps, Elastic Security and Panther, each through its own Cloud Storage input.

How do we prove the files are complete and unaltered?

Run SpockOps' verifier, spockops-verify, on them. It checks every record, link and daily signed checkpoint against SpockOps' published keys, without connecting to SpockOps.

Talk to us about audit streaming

Every run checked.
Every deployment decided.
Every decision signed.

One rulebook for people, bots and agents across your GitHub Actions estate. SpockOps checks every run as it starts, decides each deployment by who asked, what ran it and where it came from, and signs every decision into a record your auditors can re-run. Engineers see each verdict as a check beside their tests, and nothing in their workflows changes.

No changes to any workflow or repository: nothing runs inside your pipelines.