Skip to content
DocumentationAPI ReferenceChangelog
WorkspaceTalon Studio v1.1.22-beta

Git & YAML

Every workspace is a real Git repository: detections as YAML, history you can diff, and an optional mirror to GitHub, GitLab, Gitea or Azure DevOps.

Git is canonical

A workspace is not a database row with a Git export bolted on: it is a Git repository, one per workspace under /data/repos. Committed files are the source of truth for content; when a commit lands (a merge, a pull from a mirror), Talon hydrates the database from it. That inversion is what makes detection-as-code real: content is versioned, diffable and reproducible.

Content is text. Detections, sourcetype metadata, deployment targets and automations are plain files, reviewable in a diff and portable to any Git host.
Settings go live on commit. The workspace's own settings (Talon/workspace.yaml), its deployment targets and which automations are switched off (Talon/automations.yaml) are staged like content: saving one writes its file as a pending change, the setting shows Pending commit, and the commit applies it. A credential is never in the file and applies at once.
Every content change is a commit. Commits and merges are attributed to the person who made them, so the history is the audit trail for content.
Secrets never land in YAML. Connection and target credentials are encrypted in the database, never committed.
Not everything is in Git. Users, credentials, change-request approvals and discussion, and validation and run history live only in Postgres, so back up the whole /data volume, not just the repositories.

The exact path is <GIT_STORAGE_PATH>/<orgId>/projects/<workspaceId>, namespaced by organisation. The image sets GIT_STORAGE_PATH=/data/repos; outside the container it defaults to ./storage/repos. Writes to one workspace repository are serialised through a repository lock, so two concurrent saves cannot race the same Git index.

Repository layout

Each workspace repository follows a predictable structure, so the same layout works whether Talon reads it or you clone a mirror:

workspace repository layout
# one Git repo per workspace, under /data/repos
Talon/workspace.yaml # settings: name, SIEM types, require-CRs, review policy, SOC, Claw autonomy
Talon/detections/ # <technique>_<name>.yaml, one per detection
Talon/streams/ # sourcetype metadata from your SIEM
Talon/data-sources/ # data source definitions (YAML)
Talon/lookups/ # lookups (Forge → Macros & Lookups)
Talon/macros/ # Splunk macros
Talon/functions/ # Sentinel KQL functions
Talon/targets/ # deployment targets (no credentials)
Talon/integrations/siem/ # workspace SIEM connections (no credentials)
Talon/skills/ # workspace house skills for Claw
Talon/threat-models/ # STRIDE threat models
Talon/threat-scenarios/ # Forge threat scenarios (YAML)
Talon/blueprints/ # detection templates (YAML)
Talon/standards/ # detection standards (YAML)
Talon/threat-intelligence/ # threat profile, workspace threat feeds, reports/
Talon/hunts/ # saved hunts
Talon/soc/suppressions.yaml # SOC suppression rules
Talon/evidence/mutes.yaml # muted evidence gaps
Talon/flows/ # Flow automations
Talon/deployments/ # generated, versioned SIEM release artifacts, one folder per SIEM
Talon/automations.yaml # automations switched off
agents/skill-templates/ # saved Flow templates

Everything in it loads back into Studio on commit and on pull. A file Studio cannot load (a detection whose talon_id is already used, say) is skipped and listed as a warning; the rest still loads. An older repository is moved to this layout once, on start, in a single "Tidy repository layout" commit, and Studio still reads the old paths.

New workspaces use this nested layout; workspaces created before it keep their detections in detections/ at the repository root. A detection YAML carries its metadata (severity, MITRE mapping, data sources, false-positive notes, tests) and a queries block with sigma and one entry per SIEM (splunk, sentinel, elastic, yara_l, crowdstrike, cribl and the Preview SIEMs'): the same file the release pipeline converts on deploy.

Branches & history

main · what shipschanges/3f9a21c0-tune-t1110 · editsCR · approved ✓merge = commit + re-validate
main
What ships. Engineers can commit to it directly unless the workspace's Require change requests setting is on; then only workspace owners (and org admins) can, and everyone else works on a branch.
branches
Each branch is backed by a change request. New branch… creates a draft change request on changes/<id>-<name>; agent work gets agent/<name>-<id>. A merged branch is deleted.
commits
Written when you commit from the workbench and when a change request merges: one merge commit per change request, attributed to the person who merged it, with Change-Request and Reviewed-by trailers naming the change request and its reviewers, and a Co-authored-by trailer when an agent wrote the change. Merging re-validates the merged detections.
Tip
Because the repository is canonical, you can read its history with plain Git: git log on a detection file shows every change, author and merge. Mirror the repository to your own Git host (below) to browse it there, or run CI against it.
Branch-scoped visibility
A detection committed only on another open change request's branch is hidden from the list while you view a different branch. Talon works this out by diffing tracked detection YAML per Git ref, not from a database flag.

Mirroring to a Git host

Connect → Source Control mirrors a workspace to a repository on GitHub, GitLab, Gitea or Azure DevOps over HTTPS. Setting it up needs the workspace owner role; pushing and pulling need engineer. The full walkthrough is in Source Control.

Repository URL, branch
The HTTPS URL of the remote and the branch to mirror (main by default).
Access token
A personal access token for the host, encrypted at rest (AES-256-GCM) and never returned by the API.
Auto-push on merge
Pushes main to the remote whenever a change request merges or you commit to main.
Enable pull
Allows pulling remote changes back. A pull fast-forwards only: conflicts are reported, never auto-merged, and the workspace must have no uncommitted changes.
Webhook (optional)
A payload URL and secret to configure on the host, so a push there triggers a pull. Signatures are verified for GitHub, GitLab and Gitea; Azure DevOps webhook signatures are not supported.
TALON_ALLOW_PRIVATE_GIT_HOSTS
Set to true to allow a Git host on a private or internal address, which is refused by default.

Matches Talon Studio 1.1.18-beta