Works with SpockOps

Sumo Logic and SpockOps

Send every deployment decision, policy change and signed checkpoint to Sumo Logic through an Amazon S3 source, with a complete copy kept in your own bucket.

Talk to us about audit streaming
The SpockOps mark beside the Sumo Logic logo

Many teams bring their logs together in Sumo Logic, GitHub's among them. SpockOps adds the record of how change was governed: each deployment decision with the rules behind it, each review and outcome, and every change to the policies themselves. It reaches Sumo Logic through an Amazon S3 source, with a complete copy kept in the firm's own bucket.

What does SpockOps add in Sumo Logic? #

It adds judgment to the record of configuration. GitHub's audit log can show that a deployment reached production and that a reviewer approved it. SpockOps adds which policies and rules it was checked against, which failed, whether a person, a bot or an AI agent asked for it, and whether those rules had been loosened beforehand.

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 a tamper-evident record called the governance chain:

  • Deployment decisions, with each policy and rule checked, the rules that failed, the runner, and whether the actor was a person, a bot or an agent.
  • Reviews and outcomes: who approved or rejected each deployment, and how it ended.
  • Policy changes to workflow, agentic and deployment policies: who made them, what changed, whether the change weakened or widened the policy, and the reason given.
  • Stream changes and daily signed checkpoints, which let the copy in the bucket be checked against SpockOps' published keys.

Every event also carries a short risk list drawn from a fixed vocabulary, such as bot_actor, failed_in_evaluate or policy_weakened, so a search can match on meaning without reconstructing it. The audit streaming overview describes the full chain and why it can be trusted.

How does the chain reach Sumo Logic? #

Through a bucket in the firm's own AWS account. SpockOps writes one compressed file a minute to a folder there, in a folder layout modelled on GitHub's own stream, and an Amazon S3 source on a Sumo Logic hosted collector reads each new file. The files stay in the bucket, where they serve as the copy an auditor can verify. A direct route into a Sumo Logic HTTP source is planned.

How is it set up? #

In two parts: the bucket and SpockOps' write access, then a Sumo Logic source that reads it. No workflow or repository changes.

The bucket. Prepare it as the Amazon S3 page describes: an IAM user for SpockOps that can write to one folder, and nothing more. Then, in SpockOps, open the Audit streaming page under Settings, choose Sumo Logic, enter the bucket, its region, the folder and the key, confirm the connection and choose how much history to send.

In Sumo Logic:

  1. Add an Amazon S3 source to a hosted collector, pointing at the bucket.
  2. Set the path expression to SpockOps' folder and its files, for example spockops/*.json.log.gz. This keeps SpockOps' small connection-check file out of Sumo Logic.
  3. Give the source read access to the bucket, with the IAM role and external ID that Sumo Logic provides, or an access key of its own. It needs to read and list; SpockOps' own key cannot.
  4. Set the source category, for example spockops/chain, and set the timestamp to come from each event's @timestamp field, in epoch milliseconds.

Sumo Logic decompresses each file and indexes one message per line.

Which searches should a team start with? #

Three searches cover the questions a team is most often asked about change, and the third makes a sensible scheduled alert. Each parses the fields it needs with Sumo Logic's json operator.

Bots and agents deploying to production. A short search, and one whose answer is rarely what a team expects:

_sourceCategory=spockops/chain "spockops_deployment.decision"
| json "action", "actor", "repo", "spockops.actor_kind", "spockops.production", "spockops.environment"
    as action, actor, repo, actor_kind, production, environment nodrop
| where action = "spockops_deployment.decision" and production = "true" and actor_kind in ("bot", "agent")
| fields repo, actor, actor_kind, environment

Deployments that went through although a rule failed. These are the deployments a policy in Evaluate allowed, counted by repository:

_sourceCategory=spockops/chain "failed_in_evaluate"
| json "repo", "spockops.risk" as repo, risk
| where risk matches "*failed_in_evaluate*"
| count by repo
| sort by _count

Policies loosened without a reason. Saved as a scheduled search that alerts on any result:

_sourceCategory=spockops/chain "relaxed_without_reason"
| json "actor", "spockops.policy.kind", "spockops.policy.name", "spockops.risk" as actor, kind, policy, risk
| where risk matches "*relaxed_without_reason*"
| fields actor, kind, policy

A control loosened with a written reason is a decision someone can be asked about; one loosened without a reason is the pattern an investigation looks for afterwards.

How can a team show that the record is complete? #

In two ways. A search shows that no record is missing, because every record carries a sequence number with no gaps; SpockOps' verifier, spockops-verify, run against the files in the bucket, shows that none was altered and that every daily checkpoint carries a valid signature. This search lists any gap, and an empty result means every record arrived:

_sourceCategory=spockops/chain
| json "spockops.seq" as seq
| num(seq)
| sort by seq asc
| diff seq as step
| where step > 1

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 Amazon S3 page shows the commands, and the ledger and the receipt explains why an auditor values the chain.

What should a Sumo Logic team know before relying on it? #

  • A bucket, for now. Events reach Sumo Logic as quickly as the S3 source reads new files. A direct route into an HTTP source is planned.
  • 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

How does SpockOps send data to Sumo Logic?

SpockOps writes a compressed file a minute to an Amazon S3 bucket in your account, and an Amazon S3 source on a Sumo Logic hosted collector reads each new file.

Can SpockOps send directly to a Sumo Logic HTTP source?

Not yet. A direct route is planned. The bucket route keeps a complete copy of the chain in your own account in the meantime.

How can we prove the data is complete?

Every record carries a sequence number, so a search can show there are no gaps. SpockOps' verifier then checks the hashes and daily signatures on the files in the bucket.

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.