Skip to main content

Overview

Collate 1.12 introduces Git Sink, a workflow capability that automatically synchronizes metadata changes in Collate to a Git repository. Many organizations are adopting a metadata as code approach. Just like application code, metadata benefits from version control, review workflows, and historical tracking. Git Sink captures metadata updates in Collate and commits them to GitHub. Teams can maintain version history, review governance changes, and integrate metadata management with existing engineering workflows. Collate remains the main interface for managing metadata while Git stores the version history.
Note: Git Sink is a Beta feature.

Why Git Sink Matters

Metadata changes frequently as data platforms evolve. Teams document tables, add tags, create test cases, and update governance classifications. Without version control, these updates are hard to track. Git Sink helps organizations:
  • Track metadata history
  • Review governance updates through Git workflows
  • Integrate metadata with DevOps processes
  • Manage metadata using version control
Teams can treat metadata as code while continuing to manage it through the Collate interface.

How Git Sink Works

Git Sink uses the Collate workflow engine. A workflow listens for metadata events and writes those changes to a Git repository. Examples of events include:
  • Creating a test case
  • Updating a table description
  • Adding tags or tiers
  • Updating glossary assignments
When these events occur, the workflow commits the updated metadata to Git.

Creating a Git Sink Workflow

Follow these steps to create a workflow that captures metadata events and syncs them to Git.
Note: Limitation: Currently, Git Sink workflows only support Start and End nodes. You cannot add additional intermediate nodes beyond the Git Sink node itself.
  1. From the left navigation bar, navigate to Governance > Workflows. Click Create Workflow. Navigate to Workflows
  2. Enter a Workflow Name and Description, then click Save and Next. Create Workflow
  3. Drag the Start node onto the canvas and fill in the following fields:
    • Data Asset: Select the entity types the workflow monitors (for example, Table).
    • Data Asset Filter (Optional): Add filters to narrow which assets the workflow acts on.
    • Trigger Type: Choose Event Based to trigger when an asset changes, or Periodic Batch to run on a schedule.
    Configure Start Node
  4. Click Save.
  5. Drag the Git Sink node onto the canvas and connect it to the Start node. Enter the GitHub connection details — for full configuration options, see GitHub Configuration below. Add Git Sink Node Configure GitHub Connection
  6. Click Save.
  7. Drag an End node onto the canvas and connect it to the Git Sink node. Add End Node
  8. Click Save, then toggle the workflow to Active. Save and Activate Workflow
After activated, the workflow looks for metadata changes and pushes them to GitHub.

GitHub Configuration

Configure the connection to your GitHub repository in the Git Sink node. Git Sink node form with Display Name, Repository URL, Branch, Base Path, Access Token, and Conflict Resolution The Git Sink node has the following fields:
  • Display Name (required): The name of the node.
  • Description: A description of the node.
  • Repository URL (required): The URL of the GitHub repository where Collate stores metadata files, for example https://github.com/org/repo.git.
  • Branch: The branch Collate commits to. The default is main.
  • Base Path: The folder in the repository where Collate writes the metadata files. The default is metadata.
  • Access Token (required): A GitHub personal access token. Create one in GitHub Developer Settings and use it for authentication.
  • Conflict Resolution: Choose how Collate handles conflicts:
    • Overwrite External Changes
    • Preserve External Changes
    • Fail on Conflict
    Conflict Resolution list with Overwrite External Changes, Preserve External Changes, and Fail on Conflict Most organizations treat Collate as the primary metadata source.
  • Commit Message Template: The message for each commit. The default is Sync {entityType}: {entityName}.
  • Signing Private Key: The ASCII-armored PGP private key of the GitHub account that the commits are signed as. The key’s email must be a verified email on that account, and the account owner must upload the public key to GitHub. Leave this field empty to commit through the GitHub API.
  • Passphrase: The passphrase of the signing key, if the key has one.
  • Allow Unsigned Fast Push: Without a signing key, select this option to push commits with git instead of the GitHub API. This is faster, but the commits are not marked as Verified.
Git Sink node form with Commit Message Template, Signing Private Key, Passphrase, and Allow Unsigned Fast Push Collate stores the access token, signing private key, and passphrase encrypted when a Fernet key is configured, and masks them when you view the workflow.

Commit Modes

The Git Sink node writes to GitHub in one of two modes:
  • API mode (default): Collate commits through the GitHub API. Existing workflows use this mode.
  • Fast push mode: Collate builds commits locally and pushes them to the branch as a fast-forward. Fast push is faster on large syncs. Collate uses it only when you set a Signing Private Key or select Allow Unsigned Fast Push.
Signed commits show as Verified in GitHub when:
  • You uploaded the matching public key to the GitHub account.
  • The email on the key is verified on that account.
Collate never creates, uploads, or deletes keys on your GitHub account. The access token needs no extra scopes for signed pushes. If GitHub rejects a push, for example because a branch rule requires signed commits, the run falls back to API mode. Collate remembers the branch and key combination for 30 minutes. If Collate cannot load the key, for example because the passphrase is wrong or the key has expired or been revoked, it logs a warning without key material and the run uses API mode.
Note: An administrator can force a mode with the GIT_SINK_TRANSPORT system property or environment variable. Set it to auto, api, or push.

Repository Structure

Collate stores synced metadata in GitHub as YAML files. The structure reflects the hierarchy of the data platform. Example
Each file includes metadata such as:
  • Fully qualified name
  • Columns
  • Tags and classifications
  • Descriptions
  • Timestamps and user information
This makes it easy to track metadata changes and maintain a clear history.

What Is Not Exported

Git Sink does not write the following to the repository, so credentials and row-level data stay out of Git:
  • Service connection details: The connection block of a service, including its host, user, database, and secrets.
  • Table sample data: The sampleData of a table.
  • Queries: Query entities are skipped. A Git Sink workflow cannot select Query as a data asset, and All leaves it out.
Files already in the repository that contain these fields are rewritten without them the next time the workflow syncs the entity.

Large and Periodic Syncs

For a Periodic Batch trigger, Git Sink processes entities in batches and commits them in groups:
  • Batch size: One run handles at most 5,000 entities at a time, so a server crash or a stop request affects at most one chunk.
  • Commit size: Commits start at 100 files and grow up to 1,000 files. Collate reduces the size only when GitHub fails or times out a request, not when a request is slow.
  • Unchanged content: Collate skips files whose content has not changed instead of creating empty commits.
  • Conditions and actions: When a periodic workflow has a Git Sink, the workflow runs once per batch. Check Condition nodes evaluate every entity in the batch and pass on only the matching ones. Action nodes, such as Set Action, apply to every entity in the batch.
Note: Collate rejects a Git Sink workflow when you save it if it uses a periodic trigger together with nodes that cannot run per batch, such as approval tasks, run app, ingestion, or data completeness nodes.

Retries and Failures

  • Transient errors: Collate retries transient GitHub API errors, including 500 and 503 responses and connection resets. Before it retries a commit that might have landed, it checks the commit history for the run token it adds to the commit body, which avoids duplicate commits. This check is not an exactly-once guarantee: if the history lookup fails or the commit is not yet visible, a retry can produce a duplicate.
  • Large commits: When GitHub rejects a commit as too large, Collate splits it in half and retries.
  • Run status: When a periodic batch run fails and no failure branch handles it, the workflow instance ends with the status Failure, not Finished.

Terminate a Stuck Run

If a server stops during a run, the workflow instance can stay in the Running status. An administrator can end it with the terminate endpoint:
  • The endpoint requires administrator permissions.
  • If the instance is not executing a job, Collate clears it and its open workflow tasks right away.
  • If a job is executing, the endpoint returns 202. The Git Sink stops after its current sub-batch, and the instance ends as Failure with the message Terminated by admin: <reason>.
Important: Terminating a run is irreversible. The instance ends as Failure, and Collate closes the open workflow tasks of the instance.

Example Workflow

  1. A Git Sink workflow is active.
  2. A user updates a table in Collate.
  3. The update triggers a metadata event.
  4. The workflow commits the change to GitHub.
  5. The repository stores the updated metadata in YAML format.
Future updates create additional commits, letting you track metadata changes over time.