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.