Introducing a new way to review your PRs.

Read the announcement

bruin-data / bruin

Build data pipelines with SQL and Python, ingest data from different sources, add quality checks, and build end-to-end flows.

View on GitHub

21 documents · Updated Nov 20, 2026

overview

Knowledge Base updated: 2026-11-19

Bruin knowledge base

Orientation

Bruin is a Go-based data pipeline platform. Its command-line application coordinates project setup, pipeline validation and execution, ingestion, and integrations with managed services.

Pipeline definitions and runtime behavior are centered in pkg/pipeline/**; CLI entry points and user-facing workflows live in cmd/**. Connection configuration, connector implementations, and ingestion models are distributed across pkg/config/**, pkg/connection/**, connector packages, and pkg/ingestr/**.

Critical user configuration is represented through project pipeline specifications and connection definitions. Cloud, AI, secret-provider, and inference capabilities extend local execution through the platform-service packages and CLI workflows.

flowchart TD
  CLI[cmd CLI commands] --> Project[Project configuration]
  CLI --> Pipeline[Pipeline model]
  Project --> Pipeline
  Pipeline --> Validate[Validation and linting]
  Pipeline --> Runtime[Execution runtime]
  Pipeline --> Assets[Pipeline assets]
  Assets --> Connections[Connection configuration]
  Assets --> Ingestion[Ingestion operators]
  Connections --> Integrations[Source and destination integrations]
  Runtime --> Integrations
  Pipeline --> Governance[Quality, lineage, semantic metadata]
  CLI --> Cloud[Bruin Cloud]
  CLI --> AI[AI-assisted workflows]
  Connections --> Secrets[Secrets management]
  Runtime --> Inference[Inference operations]

Glossary

  • Asset: A pipeline unit with metadata, dependencies, materialization, and execution behavior.
  • Variant: A selectable pipeline configuration variation used to adapt execution behavior.
  • Connection: A named, environment-aware configuration for accessing an external system.
  • Ingestion operator: A source-to-destination data movement definition attached to pipeline behavior.
  • Bruin Cloud: Managed services accessed by the CLI and cloud API client.

Invariants

  • Pipeline specifications must be validated before they become executable workloads; the model and validation logic are in pkg/pipeline/**.
  • External-system access is mediated through shared connection configuration and abstractions in pkg/…/connections.go and pkg/connection/**.
  • CLI lifecycle workflows are implemented under cmd/**, rather than embedded directly in connector packages.
  • Secrets are resolved through connection configuration rather than stored as ordinary connector values; see pkg/…/connections.go and secret-provider packages.
  • Ingestion source definitions are modeled separately from connector execution details in pkg/…/sources.go.

Routing table

Path or triggerDocumentation
cmd/root.go, cmd/*.goCLI workflows
cmd/run.go, cmd/validate.go, cmd/render.go, cmd/import.go, cmd/fetch.go, cmd/auth.go, cmd/login.go, cmd/cloud_*.goCommand families and operational workflows
cmd/init.go, templates/**Project initialization and templates
cmd/backfill*.go, pkg/backfill/**Backfill planning and recovery
pkg/pipeline/**, pkg/selector/**Pipeline orchestration
pkg/…/pipeline.go, pkg/pipeline/parser/**, pkg/pipeline/validation/**Pipeline specification and asset modeling
pkg/executor/**, pkg/runtime/**, cmd/run.goExecution runtime
pkg/…/connections.go, pkg/connection/**, pkg/ingestr/**Data connectivity and ingestion
pkg/…/connections.go, pkg/…/connection.go, pkg/config/**Connection configuration
pkg/ingestr/**, pkg/…/sources.goIngestion operators
pkg/azureblob/**, pkg/snowflake/**, pkg/{bigquery,databricks,postgres,redshift,duckdb,clickhouse,mysql,mssql,s3,gcs,kafka}/**Source and destination integrations
pkg/quality/**, pkg/lineage/**, pkg/semantic/**Data governance and metadata
pkg/quality/**, pkg/lint/**, cmd/validate.goQuality policies and linting
pkg/lineage/**, cmd/lineage.goData lineage
pkg/semantic/**, cmd/semantic*.goSemantic layer engine
pkg/cloud/**, pkg/ai/**, pkg/secrets/**, pkg/inference/**, cmd/cloud_*.goPlatform services and assisted workflows
pkg/cloud/**, cmd/cloud_*.go, cmd/auth.go, cmd/login.goBruin Cloud integration
pkg/ai/**, pkg/python/**, cmd/ai*.goAI-assisted workflows
pkg/secrets/**, pkg/…/connections.goSecrets management
pkg/inference/**, pkg/arrow/**Inference operations