Works with SpockOps

Datadog and SpockOps

Send every deployment decision, policy change and signed checkpoint to Datadog's logs and Cloud SIEM, beside the GitHub audit log and CI data you already watch there.

Talk to us about audit streaming
The SpockOps mark and the Datadog mark, side by side

Many engineering teams already watch their pipelines, services and GitHub activity in Datadog. 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 arrives in Datadog's logs in GitHub's format, beside the data the team already watches.

What does Datadog already receive from GitHub? #

GitHub Enterprise Cloud can stream its audit log to Datadog, and Datadog's GitHub integration reads and normalizes those events. Cloud SIEM then checks them against detection rules out of the box, such as an enterprise owner being added or a user cloning an unusual number of repositories.

That is a strong record of change to GitHub itself, and nothing on this page alters it. SpockOps arrives as its own log source, spockops, in the same shape as GitHub's events. The two can share dashboards, queries and detection rules, and can be joined on the fields they have in common: actor, org and repo.

What does SpockOps add in Datadog? #

It adds judgment to the record of configuration. GitHub's 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. Each policy either watches, in Evaluate, or enforces, in Block. Everything SpockOps decides, and every change to the policies it decides by, is written in order to a tamper-evident record called the governance chain. In Datadog, that record becomes:

  • 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 in plain words, whether the change weakened or widened the policy, and the reason given.
  • Stream changes: any change to where the chain is sent, including this Datadog connection.
  • Daily signed checkpoints, which let a copy of the chain be checked against SpockOps' published keys.

For a team that already watches CI in Datadog, the useful moment is an incident. A service that degrades after a release can be read beside the deployment that preceded it, the rules it passed or failed, and any policy that was relaxed that week, in the same Log Explorer and on the same dashboard. The audit streaming overview describes the full chain and why it can be trusted.

Which route should a Datadog team use? #

Most teams should send events straight to Datadog's log intake and keep a bucket beside it. The intake is the quickest way in. Datadog, however, drops any log stamped more than 18 hours in the past, so it cannot receive the chain's history. A bucket keeps the complete chain, for audits and for checking.

Log intake Amazon S3, through the Datadog Forwarder
How events arrive SpockOps sends each batch to Datadog, about a minute after it is recorded SpockOps writes a file a minute to your bucket; the Forwarder reads each new file and sends it on
What Datadog needs An API key and your Datadog site The Datadog Forwarder in your AWS account, triggered by the bucket
History it can receive The last 18 hours at most New records, and anything within Datadog's 18-hour limit
What you keep outside Datadog Nothing A complete copy of the chain in your own account

The 18-hour limit is Datadog's, and it applies to both routes, since the Forwarder sends through the same intake. What the bucket adds is not more history in Datadog but a complete record outside it. For a firm with audit obligations, the arrangement that works is the intake for dashboards and detection, and a bucket, read by the Forwarder or by nothing at all, as the lasting record. The bucket can also be added later as a second destination; SpockOps can fill it from the start of the chain.

How is the log intake route set up? #

In a few steps, with no change to any workflow or repository. Datadog provides an API key; SpockOps is given that key and the Datadog site the account lives on, confirms that Datadog accepts the key, and begins sending. Events appear in Log Explorer under source:spockops within a minute or two.

In Datadog:

  1. Create an API key for SpockOps under Organization Settings, API Keys. A dedicated key can be revoked on its own without disturbing anything else.
  2. Note your Datadog site. SpockOps supports datadoghq.com, datadoghq.eu, us3.datadoghq.com, us5.datadoghq.com and ap1.datadoghq.com. The site is part of the address you use to sign in.

In SpockOps:

  1. Open the Audit streaming page under Settings, choose Datadog, then the log intake route.
  2. Choose the site and paste the API key. SpockOps stores the key as a secret; it never appears in the chain or in any log.
  3. Confirm the connection. SpockOps asks Datadog to validate the key. No log is sent, so the check leaves nothing behind in Datadog.
  4. Choose where to start. From now on, the whole chain or a chosen date. For this route SpockOps leaves out anything older than 18 hours, because Datadog would drop it, and the page says so.

SpockOps labels every event with ddsource: spockops. If Datadog ever refuses the key, for example because it was revoked, the stream pauses and the SpockOps workspace's administrators are emailed; once a valid key is entered, an administrator resumes it, and it picks up from where it stopped.

How is the Amazon S3 route set up? #

SpockOps writes one compressed file a minute to a folder in your bucket, in a folder layout modelled on GitHub's own stream. The Datadog Forwarder, a function Datadog provides for your AWS account, runs whenever a new file lands and sends each line to Datadog as a log. SpockOps may write to that one folder and nothing else.

In AWS:

  1. Choose a bucket and a folder. SpockOps uses spockops unless told otherwise. Files land at paths such as spockops/2026/11/16/09/31/21303b0e-73d6-5446-b1f4-627360e7912f.json.log.gz.
  2. Create an IAM user for SpockOps with this policy, and an access key for it. The delete permission only lets SpockOps tidy up its connection check, and can be left out.
{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Action": ["s3:PutObject", "s3:DeleteObject"],
    "Resource": "arn:aws:s3:::YOUR-BUCKET/spockops/*"
  }]
}
  1. Install the Datadog Forwarder if the account does not already run one, and give it read access to the bucket.
  2. Trigger the Forwarder from the bucket on objects created under spockops/ with the suffix .json.log.gz. The suffix keeps SpockOps' small connection-check file out of Datadog.

In SpockOps:

  1. Open the Audit streaming page under Settings, choose Datadog, then the Amazon S3 route.
  2. Enter the bucket, its region and the folder, then the access key ID and secret. The key is stored as a secret and never written to the chain.
  3. Confirm the connection. SpockOps writes a small test file to the folder and removes it if it is allowed to. No events are sent.
  4. Choose how much history to send. The bucket accepts the whole chain; Datadog will index only what falls within its 18-hour limit.

Events read by the Forwarder may arrive with a different source from those sent to the intake. The queries on this page therefore filter on @action:spockops_*, which every SpockOps event carries whichever route it took.

What do the events look like in Datadog? #

Each event is a JSON log in GitHub's audit log shape, so Datadog parses it into attributes without a pipeline. GitHub's common fields sit at the top level, and the @timestamp field sets the log's date. Everything SpockOps adds sits under spockops, so its attributes read as @spockops.actor_kind, @spockops.risk and so on.

Creating facets for the attributes a team will filter and group on makes them appear in Log Explorer's side panel and in dashboards. These are the useful ones:

Attribute What it holds
@action The kind of record, such as spockops_deployment.decision, spockops_deployment.review, spockops_policy.update or spockops_chain.checkpoint
@actor, @org, @repo As in GitHub's own events, so the two sources join cleanly
@spockops.actor_kind person, bot or agent
@spockops.outcome The verdict or result, such as approved, rejected or success
@spockops.environment, @spockops.production Where the deployment was going, and whether GitHub marks that environment as production
@spockops.mode, @spockops.failed_rules Whether the policy was in Evaluate or Block, and the rules that failed, as Policy › Rule
@spockops.policy.kind, @spockops.policy.name For policy changes, which kind of policy and which one
@spockops.risk The fixed risk values this event carries

Which queries and detection rules should a team start with? #

Four queries cover the questions a team is most often asked about change, and two of them make sensible Cloud SIEM rules from the first day. Each is written in Log Explorer's search syntax.

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

@action:spockops_deployment.decision @spockops.production:true @spockops.actor_kind:(bot OR agent)

Deployments that went through although a rule failed. These are the deployments a policy in Evaluate allowed. Grouped by @repo and @spockops.failed_rules in a top list, they show which rule to move to Block first:

@action:spockops_deployment.decision @spockops.risk:failed_in_evaluate

Policies loosened or removed. Every weakening, widening or deletion of a workflow, agentic or deployment policy:

@action:spockops_policy.* @spockops.risk:(policy_weakened OR policy_widened OR policy_deleted)

Deployments no policy covered. A deployment SpockOps saw but no policy applied to is a gap in coverage, not a failure:

@action:spockops_deployment.decision @spockops.risk:no_policy_applied

In Cloud SIEM, two of these become log detection rules with little change:

Rule Query Group by Suggested severity
Bot or agent deployed to production The first query above @repo, @actor Medium
Policy loosened without a reason @action:spockops_policy.* @spockops.risk:relaxed_without_reason @actor High

The second deserves its severity. 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.

Where does a team prove the record is complete? #

Outside Datadog. Datadog is the right place to watch the chain and alert on it, but its 18-hour intake limit and its index retention mean it is not designed to hold every record ever written. A bucket destination holds the complete chain in your own account, and SpockOps' verifier proves it intact. Every record carries a sequence number and a hash of the one before it.

The verifier, spockops-verify, confirms that no record is missing or altered and that every daily checkpoint carries a valid signature from SpockOps' published keys. It 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. It checks a file: a team downloads the chain for the audit period from SpockOps and runs the verifier on that. The ledger and the receipt explains why an auditor values the chain, and automating DevOps audits how it supports testing every change rather than a sample.

What should a Datadog team know before relying on it? #

Four points are worth settling at the start. History older than 18 hours cannot enter Datadog; only five Datadog sites are supported; every kind of record arrives, not only deployments; and the chain covers what SpockOps governs. Each affects how the stream is set up.

  • The 18-hour limit. Datadog drops any log stamped more than 18 hours in the past, on either route. SpockOps leaves older records out of an intake stream, checking each record's own time as it sends, since some are dated to when something happened rather than when it was recorded. The destination's page counts what was left out. History belongs in a bucket.
  • Supported sites. datadoghq.com, datadoghq.eu, us3.datadoghq.com, us5.datadoghq.com and ap1.datadoghq.com. An account on another site should use the S3 route.
  • The whole chain arrives. Policy changes, stream changes and checkpoints come with the deployment records. They are few in number, and they keep 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 Datadog?

Through Datadog's log intake with an API key, about a minute after each record is written, or as files in an Amazon S3 bucket that the Datadog Forwarder reads.

Can SpockOps send its full history to Datadog?

No. Datadog drops logs stamped more than 18 hours in the past, so a stream into Datadog can start no earlier than that. A bucket destination keeps the complete chain.

Does it replace Datadog's GitHub integration?

No. Datadog's GitHub integration reads GitHub's audit log. SpockOps arrives as a separate source in the same shape, and the two join on actor, org and repo.

Which Datadog sites are supported?

datadoghq.com, datadoghq.eu, us3.datadoghq.com, us5.datadoghq.com and ap1.datadoghq.com for the log intake. Accounts on other sites can use the S3 route.

Does the connection check send any logs?

No. SpockOps asks Datadog to validate the API key, and nothing is indexed.

Can SpockOps events drive Cloud SIEM detections?

Yes. Every event carries a risk list with fixed values, such as bot_actor or relaxed_without_reason, which log detection rules can match directly.

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.