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

docs / platform-services

Platform services and assisted workflows

Bruin extends local pipeline work with managed cloud operations, AI-assisted asset work, external secret stores, and inference services. These services use the project context and connection model to move a task from a local command to a managed service without changing the pipeline itself.

Service boundaries

The platform-service layer separates local pipeline work from the systems that support it. Bruin keeps the local project context at the command boundary while authenticated clients handle cloud actions, AI tools, inference requests, and secret lookup.

The main service paths are:

Service pathMain purposeLocal result
Bruin Cloud integrationView and manage cloud projects, pipelines, runs, agents, data apps, and team resourcesCloud state or a cloud action
AI-assisted workflowsImprove asset metadata and install guidance for AI agentsUpdated asset definitions or agent guidance
Secrets managementResolve named connections from a managed secret storeCredentials for the local operation without storing them in the project
Inference operationsRun model-backed inference as part of assisted workflowsInference output for a local or managed operation

The relationship between these paths is shown below. A local command selects its project context first, then uses the service that owns the requested capability.

flowchart LR
    A[Local Bruin command] --> B[Project context and connections]
    B --> C{Requested capability}
    C --> D[Bruin Cloud]
    C --> E[AI tool or cloud agent]
    C --> F[Secret provider]
    C --> G[Inference service]
    D --> H[Cloud result or action]
    E --> I[Asset or agent workflow]
    F --> J[Resolved connection]
    G --> I
    J --> I
    J --> K[Local pipeline operation]

Authentication context

Cloud authentication is selected in a fixed order. An explicit API key from a flag or environment takes priority, then an active act-as session, a repository cloud connection, and finally the user's saved global login. An act-as session uses the agent's permissions but is created and renewed through the user's global login. References: cmd/cloud_auth.go• L18-86, cmd/cloud_act_as.go• L155-234, cmd/cloud_act_as_test.go• L213-256

A cloud request also carries its team context. A normal login can use an explicit team or its saved default, while an act-as session stays bound to the team that issued it. This prevents one agent session from silently operating on another team. Act-as renewal also rechecks the current session before saving a refreshed token, so stopping or replacing a session during renewal does not restore the old identity. References: cmd/cloud_auth.go• L89-100, cmd/cloud_act_as.go• L162-170, cmd/cloud_act_as_test.go• L230-258, cmd/cloud_act_as_test.go• L326-348

Environment and connection context

An environment is the named set of connection details used by a pipeline operation. Cloud and AI connections sit beside warehouse and source connections. A selected secret backend can replace the local connection source for one operation. References: pkg/…/manager.go• L278-305, pkg/…/manager.go• L288-295, pkg/…/manager.go• L158-160

Managed cloud operations

Bruin Cloud is the managed service boundary for teams that need to inspect or control pipeline work outside the local process. The CLI uses an authenticated client to act within a team and exchange cloud state with local commands.

Cloud resource lifecycle

The cloud workflow covers resources around a pipeline run. Engineers can discover teams and projects, inspect pipelines and runs, start or repeat work, inspect assets and logs, and manage agents, data apps, connection sets, skills, dashboards, and schedules.

The same service also supports backfills, agent conversations, agent memory, audit records, notification rules, and warehouse cost views. Scheduled agents can run recurring tasks and keep named run-state files between runs. A scheduled agent can also have an optional pipeline trigger that identifies the cloud project and pipeline connected to that agent. This lets managed agent scheduling include a pipeline action without changing the local pipeline definition. References: cmd/cloud.go• L28-49, cmd/cloud.go• L840-1639, cmd/cloud.go• L2416-2441, cmd/cloud.go• L4511-5474, cmd/cloud.go• L5476-6091, cmd/cloud.go• L6093-6394, pkg/…/api.go• L132-475, pkg/…/api.go• L493-1221, pkg/…/types.go• L379-515, pkg/…/pipeline_trigger.go• L9-33

Data app workflows

Data apps are managed Cloud applications that combine a user-facing page with declared warehouse queries and HTTP requests. The CLI lets an engineer discover the team guide, inspect team safety settings, create or remove an app, and move an app between Cloud and local files for assisted editing.

The local editing flow keeps the app's HTML and request manifests together with the app identity and version. A pull protects local edits from accidental overwrite. A push can update only the supplied parts and uses the recorded version to detect a concurrent Cloud change. An app must have an agent before its queries can run, and team settings can limit warehouse queries to read-only mode and restrict where credentials may go. References: cmd/cloud_data_apps.go• L39-55, cmd/cloud_data_apps.go• L94-203, cmd/cloud_data_apps.go• L205-316, cmd/cloud_data_apps.go• L318-399, cmd/cloud_data_apps.go• L483-615, cmd/cloud_data_apps_test.go• L76-169, cmd/cloud_data_apps_test.go• L172-239

Team-scoped requests

A team is the Bruin Cloud account context for a request. The token owner's current team is the default. The CLI can target another team with its company prefix. An explicit team setting takes priority over the saved default, unless the credential is an act-as session pinned to its issuing team. This lets one authenticated workflow serve more than one team while keeping agent delegation bounded to one team. References: pkg/…/api.go• L25-99, cmd/cloud.go• L55-83, cmd/cloud.go• L186-219, cmd/cloud_auth.go• L89-100, cmd/cloud_act_as.go• L162-170

Agent identity delegation

Act-as is a cloud identity workflow that lets a person run cloud commands with one of the team's agent permissions. The person selects an agent through a global login, and Bruin stores the short-lived agent session for later cloud commands. Near expiry, Bruin renews the session with the person's login. The session is cleared with bruin cloud act-as --stop or global logout, after which commands use the person's own login again. References: cmd/cloud_act_as.go• L31-139, cmd/cloud_act_as.go• L155-234, cmd/cloud_act_as_test.go• L144-187, cmd/cloud_act_as_test.go• L260-274, cmd/cloud_act_as_test.go• L279-373

The session has clear precedence and safety boundaries. A command API key overrides the session, while a repository cloud login does not. The session cannot switch teams or Cloud API destinations, and a transient renewal failure can keep using an unexpired token. A refusal or an expired token ends the session instead of silently falling back to the agent's permissions. When the global login lacks act-as permission, an interactive command can reauthenticate, while JSON output returns a recovery message without opening a browser. References: cmd/cloud_auth.go• L35-86, cmd/cloud_act_as.go• L162-207, cmd/cloud_act_as_test.go• L213-256, cmd/cloud_act_as_test.go• L276-303, cmd/cloud_act_as_test.go• L326-348, cmd/cloud_act_as_test.go• L376-443

Pipeline execution controls

Cloud runs support both a single execution and a backfill. A backfill splits a date range into several runs and returns an identifier and a dashboard URL for tracking the group. Run requests can also select assets, include downstream work, request a full refresh, pass variables, and attach a note with tags. References: pkg/…/api.go• L237-317, pkg/…/api.go• L358-397, pkg/…/types.go• L46-84, pkg/…/api_test.go• L331-457, pkg/…/api_test.go• L1228-1293

Cloud-backed pipeline connections

Bruin Cloud also has a connection form in the local connection model. It gives local pipeline configuration and cloud service access a shared name without making the pipeline depend on cloud execution. References: pkg/…/connections.go• L2074-2080, pkg/…/connection.go• L3561-3577, pkg/…/config.go• L7-19, pkg/…/db.go• L3-18

Cloud agent workflows

Cloud agents provide a managed place for AI conversations and assisted data work. The CLI can send messages, inspect threads and message status, manage prompts and memory, export a thread, run a read-only query through an agent connection, and request a missing connection in the active chat.

Agent connections expose names and types for selection. Credential values remain with the managed service boundary. An agent can also use selected external MCP services through named connections. The selected MCP set replaces the prior set, so it represents the full external-service choice for that agent. A connection request is tied to the active agent and thread, so the user completes the connection step in the cloud chat. Cloud query mode sends SQL as written and does not apply template variables. References: cmd/cloud.go• L2416-2441, cmd/cloud.go• L3137-3466, cmd/cloud.go• L3838-3979, pkg/…/api.go• L503-590, pkg/…/api.go• L642-767, pkg/…/types.go• L131-198, pkg/…/api_test.go• L544-638, pkg/…/api_test.go• L964-1008

Managed agent scheduling

Scheduled agents turn an agent plan into a recurring cloud task. A new schedule starts as an inactive draft, while an immediate trigger creates one execution without changing the schedule. A scheduled agent can also keep named run-state files as small pieces of memory across executions. Its optional pipeline trigger links the scheduled agent to a specific cloud pipeline through a project and pipeline identifier. The trigger can be read, set, or removed independently of the schedule. References: pkg/…/api.go• L1027-1082, pkg/…/api.go• L1126-1162, pkg/…/types.go• L379-416, pkg/…/types.go• L391-409, pkg/…/pipeline_trigger.go• L9-33, pkg/…/pipeline_trigger_test.go• L12-36, pkg/…/api_test.go• L1530-1651, pkg/…/api_test.go• L1825-1897

Dashboard organization

Cloud dashboards provide a managed view of data and agent work. Dashboard definitions move through draft and published states, while folders group dashboards for a team. The cloud interface can list folders even when they have no dashboards and can place a dashboard in a named folder. References: pkg/…/api.go• L912-1024, pkg/…/types.go• L336-358, pkg/…/api_test.go• L1317-1528

Dashboard history is separate from the current definition. Engineers can inspect version metadata or retrieve the full state of one version without changing the live dashboard. Folder data also preserves parent and full-path information for nested organization. References: pkg/…/api.go• L1006-1024, pkg/…/types.go• L353-377, pkg/…/api_test.go• L1317-1528

Governance and cost views

Cloud governance features expose a team audit trail and configurable notification rules. The cost explorer first describes the available dimensions and filters, then returns paged cost rows for a chosen time range and platform. References: pkg/…/api.go• L1084-1123, pkg/…/api.go• L1164-1221, pkg/…/types.go• L417-505, pkg/…/api_test.go• L1653-1823

AI-assisted workflows

AI assistance helps engineers improve asset definitions and install repeatable guidance for agent-based work. The local workflow gives an AI provider the asset context, accepts suggestions, and checks the resulting asset before it is kept.

Asset enhancement

The bruin ai enhance workflow targets one asset or a folder of assets. It can add descriptions, column documentation, quality checks, tags, and operational notes. The workflow may use database context, then formats and validates the changed asset so AI output remains subject to Bruin's asset rules. References: cmd/ai.go• L7-16, cmd/enhance.go• L30-93, cmd/enhance.go• L385-417, cmd/enhance.go• L489-549, pkg/…/prompt.go• L7-37, pkg/…/enhancer.go• L75-115

Local AI provider boundary

AI enhancement runs through an installed provider CLI instead of a provider-specific pipeline runtime. The supported boundary includes Claude, OpenCode, Codex, and Cursor. The selected provider receives the prompt and optional model or system guidance. API-key-based providers receive their key only through the child process environment. References: pkg/…/provider.go• L8-25, pkg/…/provider_factory.go• L7-40, pkg/…/provider_factory.go• L43-76, pkg/…/provider_factory.go• L79-116, pkg/…/provider_factory.go• L119-152, pkg/…/provider_cli.go• L115-177

Agent skills

Skills are reusable instructions for AI agents that work with Bruin projects. The bruin ai skills workflow installs selected bundled skills and can add project agent guidance for pipeline inspection, local or cloud tools, and result reporting. A skill can declare required connections, which lets installation prepare placeholders for the services it needs. References: cmd/skills.go• L36-76, cmd/skills.go• L170-231, cmd/skills.go• L238-306, skills/…/SKILL.md• L21-36, skills/…/SKILL.md• L21-35

AI service connections

AI workflows use connection entries when an operation needs a service credential or workspace context. The project model supports Bruin Cloud and PlusVibe AI connection types. The connection manager loads them with the other environment connections so AI-enabled operations can resolve them by name. References: pkg/…/connections.go• L2064-2080, pkg/…/manager.go• L158-160, pkg/…/connection.go• L3541-3577, pkg/…/connection.go• L4317-4322

Inference operations

Inference operations add model-generated columns to pipeline data. An inference asset reads rows from a query or another asset, sends the row context to a selected provider, and publishes the results back to its warehouse connection through the normal data-loading path. Providers include hosted services, routed or local services, and a typesafe mode for constrained column outputs. See Inference operations for the provider and asset contract.

Inference asset lifecycle

The inference flow validates the asset before it makes a billable model request. It requires an explicit warehouse connection, a primary key for each input row, and table output that can merge or replace results. It then reads the input, generates structured values, and publishes the complete result set only after inference succeeds. References: pkg/…/config.go• L22-25, pkg/…/config.go• L109-135, pkg/…/config.go• L154-180, pkg/…/operator.go• L53-75, pkg/…/operator.go• L115-142

Provider and connection context

Inference supports hosted model providers, local or routed provider services, and the typesafe provider for constrained column results through one provider contract. Model-backed provider credentials come from a named Bruin provider connection rather than an asset-level API-key environment setting. A secret backend can therefore supply the provider connection without putting the credential in the asset or command arguments. References: pkg/…/config.go• L52-81, pkg/…/config.go• L127-152, pkg/…/columns_test.go• L99-141, cmd/secrets_backend.go• L38-82

Result identity and reuse

Primary keys give each input row a stable identity for saved inference results. The operation can reuse completed row results across runs and can limit new model calls to changed inputs. Column groups share the request concurrency limit, while a changed group can be rerun without repeating unchanged groups. A local lock prevents two runs from using the same cache at once, while failed model or warehouse work avoids publishing partial output. References: pkg/…/operator.go• L86-113, pkg/…/operator.go• L162-191, pkg/…/operator.go• L194-220, pkg/…/operator_test.go• L134-199, pkg/…/columns_test.go• L149-239

Warehouse publication

Inference output returns to the asset's warehouse through the shared ingestr destination contract. The runner uses the current released ingestr executable for normal operations and keeps a Python-based path for legacy releases or local source. The destination is derived from the warehouse connection so quality checks run on the same supported platform. This keeps model work separate from the final table write and prevents a user-set destination from routing checks to a different warehouse. References: pkg/…/ingestr_destination.go• L40-79, pkg/…/config.go• L28-49, pkg/…/operator.go• L68-80, pkg/…/operator.go• L222-260, pkg/…/ingestr_destination_test.go• L114-140, pkg/…/uv.go• L583-646

Secret-backed connections

Secret management keeps connection data outside the local project when a team requires a managed credential source. Bruin presents each provider through one connection resolver, so pipeline commands can request a named connection without knowing where its credentials live.

Secret resolution flow

When a command receives a secrets-backend choice, it creates the matching provider client and passes that client into the normal connection-consuming workflow. The provider resolves a connection by name and can return usable connection details or a reason for a failed lookup. Missing secrets use a shared not-found result so the normal connection error stays clear, while other lookup failures remain visible in logs. Without an override, Bruin uses the configured local connection manager. The same path can supply warehouse, AI, or inference connections. References: cmd/secrets_backend.go• L38-82, pkg/…/secrets.go• L5-18, pkg/…/notfound.go• L10-31, pkg/…/config.go• L71-81

The resolution sequence is:

  1. Read the selected backend from the command context or BRUIN_SECRETS_BACKEND.
  2. Authenticate the chosen provider from its runtime settings.
  3. Fetch the named connection and turn its stored data into the connection type Bruin expects.
  4. Pass the resolved connection to the pipeline, query, or AI operation.

Supported secret providers

Bruin supports Vault, Doppler, AWS Secrets Manager, and Azure Key Vault as secret providers. Each provider has its own authentication and location needs. All providers serve the same named-connection contract to the rest of Bruin.

The providers differ mainly in how they reach the store and prove identity:

ProviderService contextAuthentication shape
VaultA configured Vault host, mount, and pathDirect token or Kubernetes workload identity
DopplerA Doppler project and configDoppler access token
AWS Secrets ManagerThe AWS account and region selected by the runtimeExplicit AWS credentials or the default AWS credential chain
Azure Key VaultA secure Azure vault endpointClient credentials, managed identity, Azure CLI, or the default Azure credential

Every provider expects a secret to describe one Bruin connection with a non-empty type and an object in details. Bruin converts that record into the same connection object used by local configuration, so pipeline operations do not depend on the provider's data format. Providers can reuse a resolved connection during the operation to avoid repeated reads. References: cmd/secrets_backend.go• L17-22, pkg/…/vault.go• L51-184, pkg/…/vault.go• L287-340, pkg/…/vault.go• L425-615, pkg/…/aws_secretsmanager.go• L25-64, pkg/…/aws_secretsmanager.go• L101-236, pkg/…/azure_keyvault.go• L27-76, pkg/…/azure_keyvault.go• L151-173, pkg/…/azure_keyvault.go• L176-310, pkg/…/doppler.go• L76-128, pkg/…/doppler.go• L131-245, pkg/…/vault_test.go• L129-185, pkg/…/vault_test.go• L492-656

Vault supports direct tokens and Kubernetes workload authentication. It accepts HTTP, HTTPS, and Unix-socket endpoints. It also bounds requests and retries temporary service failures. References: pkg/…/vault.go• L51-184, pkg/…/vault.go• L287-340, pkg/…/vault.go• L425-615, pkg/…/vault_test.go• L129-185, pkg/…/vault_test.go• L492-656

AI credential lookup

AI enhancement can use the selected environment's Anthropic connection. With a secret backend override, Bruin resolves that connection through the backend before it gives the API key to the enhancement provider. This keeps AI credentials out of assets and command arguments. References: cmd/enhance.go• L579-635, cmd/secrets_backend.go• L51-79

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep Bruin Cloud authentication precedence aligned across API-key flags, environment variables, act-as sessions, repository connections, saved global login, and the bruin connection type.
  • Keep act-as sessions bound to their issuing team and Cloud API destination. Preserve renewal, stop, logout, and API-key override behavior.
  • Prevent an in-flight act-as renewal from restoring a session that was stopped or replaced while the renewal request was pending.
  • Preserve the shared connection-resolver contract when adding or changing a secret provider.
  • Keep missing-secret classification consistent across Vault, Doppler, AWS Secrets Manager, and Azure Key Vault. Missing entries should not obscure the caller's normal connection-not-found message.
  • Keep Vault endpoint, authentication, secret shape, timeout, and retry settings aligned with the provider contract. Do not allow backend diagnostics or credentials into returned errors.
  • Keep each provider's authentication and endpoint validation aligned with its service boundary. Do not let provider-specific settings change the shared type and details payload contract.
  • Keep AI skill connection names and required types aligned with the placeholders written into .bruin.yml.
  • Treat cloud resource names or response shapes as contract changes for both the API client and cloud CLI commands.
  • Keep data app guide, HTML, query manifest, HTTP manifest, agent link, visibility, and version-conflict behavior aligned across Cloud and local editing commands.
  • Keep dashboard draft, published, and version paths aligned. Create and update affect the draft until an explicit publish action.
  • Keep dashboard folder names and counts aligned across list, get, create, and update flows. Do not assume the dashboard list includes empty folders.
  • Treat MCP integration updates as full replacements. Preserve the rule that omitted external services are detached from the agent.
  • Keep scheduled-agent creation, manual triggering, pipeline-trigger linking, and run-state persistence distinct. A manual trigger must not activate or alter the schedule. A missing or removed pipeline trigger must remain distinguishable from a configured one.
  • Keep cost explorer schema fields aligned with request filters and pagination fields. A truncated response must expose its next offset.
  • Keep AI provider selection, credential injection, and post-edit validation aligned so a provider cannot write an asset that the enhancement workflow accepts without checking.
  • Keep inference provider validation aligned with the supported provider set and the typesafe column rules. Invalid provider or column settings must fail before model work starts.
  • Keep inference provider connections separate from warehouse connections. Preserve row identity, cache scope, and the rule that inference output publishes only through the destination derived from its warehouse connection.
  • Keep inference destination mapping aligned with the connection-type map and quality-check routing. A connection type with no supported destination must fail before model requests.
  • Keep cloud-chat identity bound to the run environment when changing connection-request commands. Do not restore caller-controlled agent or thread identifiers.
  • Keep read-only cloud query behavior aligned with the API contract. Query text is sent verbatim and must not regain server-side template-variable handling by accident.
  • Keep the ingestr runner's selected release and execution mode aligned with the destination and inference publication contract. Released versions and legacy or local versions may use different runners, but both must preserve the shared output path.

Important failure modes

TriggerConsequenceGuard
No Bruin Cloud API key is available from a flag, environment variable, repository connection, or saved loginCloud commands cannot create an authenticated clientSupply one of the supported key sources before calling a cloud command
A command sets BRUIN_CLOUD_API_KEY or --api-key while an act-as session is activeThe command uses the API key's identity instead of the agent's permissionsCheck the reported credential source before relying on delegated access
An act-as request targets a different team from the active sessionThe command stops instead of switching the agent to another teamStop the session before selecting another team
An act-as session belongs to another Cloud API destinationCloud commands refuse to use the sessionStop the session and sign in to the active destination
A global login cannot act as agentsStarting or renewing act-as fails, or interactive mode asks for reauthenticationReauthenticate the global login with the act-as permission enabled
An act-as token nears expiry while renewal is refusedThe session ends and commands cannot continue as the agentRestore the person's access to the agent, then start act-as again
An act-as token nears expiry during a temporary service outageA still-valid token remains usable, but an expired token ends the sessionRetry while the service is available and do not rely on an expired token
A stop or replacement occurs while act-as renewal is in flightThe renewal must not restore the old agent session or identityRecheck the stored session before applying renewal results
A corrupt act-as session is presentCloud resolution fails until the invalid session is removedUse bruin cloud act-as --stop to clear the session, then resolve auth again
A global logout leaves an act-as session activeLater cloud commands may continue with delegated permissionsTreat global logout as a stop for the active act-as session
A cloud request targets the wrong team contextThe command reads or changes resources for an unintended teamUse the team prefix explicitly when the token can act on more than one team
The saved default team is not reachable by the current tokenCloud commands that use the default fail at the service boundaryCheck available prefixes with bruin cloud teams list and update or clear the default
The data app has no assigned agentIts declared queries cannot runAssign an agent before relying on the app for query work
A data app pull would overwrite changed local filesLocal app edits are lost or the command stops before writingReview the changes or use --force only when overwrite is intended
A data app push uses a stale recorded versionCloud rejects the update and the local version stays unchangedPull the current app, re-apply the edit, and push again; use --force only for an intentional overwrite
A data app manifest is not a JSON arrayThe push stops before sending an invalid app definitionKeep query and HTTP request manifests as JSON arrays
A cloud data app query sends credentials to a disallowed hostThe managed app cannot use that request under team policyCheck data app settings and use an approved host
The cloud service returns HTTP 429 responses repeatedlyThe client retries with backoff, then returns the final API errorReduce request bursts and retry after the service limit resets
A cloud chat command runs without the run-bound agent and thread identityNo connection card is created because the command cannot address an unspecified chatRun the request from a Bruin Cloud chat workflow with its bound identity present
A caller tries to pass another agent or thread to a connection requestThe request cannot be redirected to an unrelated chatKeep agent and thread IDs sourced from the cloud run environment
A cloud query includes template variables or a write statementThe query service receives the SQL as written and rejects unsupported query behaviorRender needed values before cloud query mode and use a read-only statement
A scheduled agent has no pipeline trigger when a linked pipeline action is expectedThe agent has no project and pipeline target for that actionConfigure and verify the trigger before relying on the scheduled workflow
A pipeline trigger uses the wrong project or pipeline identifierThe scheduled workflow points at the wrong cloud pipeline or the service rejects the targetCheck both identifiers as one linked target and remove stale trigger data
A dashboard is created or updated without a publish actionThe change remains in the draft and does not replace the live viewRead the draft or publish the dashboard when the change is ready
A dashboard folder name is empty or does not match the intended team folderThe dashboard stays unfiled or the service rejects the requestUse a valid folder name and confirm the returned folder value
An agent MCP update omits an integration that should remain attachedThe full replacement detaches that external service from the agentRead the current picks before replacement and send the complete intended set
A scheduled agent is created and treated as activeThe task does not run on its schedule until a human activates itTreat creation as an inactive draft and use manual trigger only for a one-off execution
A cost explorer page is treated as complete while truncated is trueThe caller shows an incomplete cost viewContinue from next_offset until the response is not truncated
Audit-log access uses a token without the required user scopeThe audit request fails even when team access worksUse a personal user-scoped token for the audit trail
The selected AI CLI is not installed or cannot be foundAsset enhancement stops before the provider can runInstall the selected CLI and let the enhancement workflow verify it before editing
AI output produces an invalid assetThe enhancement fails and the original asset is restored by the command workflowKeep the final asset validation step in place
An inference asset selects an unsupported provider or invalid typesafe column rulesValidation stops before model requestsUse a supported provider and valid output type, level, or threshold settings
A selected secret backend lacks its required runtime settingsConnection resolution fails before the pipeline or AI operation startsConfigure the backend's required authentication and location settings
A secret is missing from Doppler, AWS Secrets Manager, or Azure Key VaultThe connection lookup returns no usable connection and the caller reports a not-found resultCheck the provider's project/config, secret name, or vault before rerunning the operation
A provider returns a secret without a non-empty type and object detailsBruin cannot turn the record into a connectionStore the provider payload in the shared connection shape
Azure Key Vault uses an invalid endpoint or an unavailable credential sourceThe provider cannot create an authenticated clientUse an HTTPS *.vault.azure.net endpoint and one supported Azure credential source
AWS credentials are incomplete or the selected region is not available to the runtimeAWS secret lookup cannot create a usable service clientProvide a complete explicit credential pair or a valid default AWS credential chain
Doppler lacks its token, project, or config contextThe provider cannot retrieve the named connectionConfigure all three Doppler service settings before selecting the backend
A Vault host, path, or mount is invalid, or its token and Kubernetes login settings are absentVault cannot create a client or authenticate the lookupProvide a valid endpoint and path with one supported authentication method
A Vault response lacks a non-empty connection type or object detailsThe named connection cannot become a Bruin connectionStore both type and details in each Vault secret
Vault returns a temporary service failure beyond the retry or request time limitThe connection lookup fails instead of returning credentialsSet valid retry bounds and keep the Vault service reachable within the request timeout
A named connection is missing or has the wrong type in the secret storeThe downstream operation cannot create the requested clientResolve the named connection and inspect the backend-specific lookup error
A released ingestr version cannot be installedInference or Python asset publication stops before the destination writeKeep the requested release available and use a supported legacy or local path when needed
An inference asset has no primary key or has duplicate or null input keysResults cannot be assigned to stable rows, so the model call is rejected before publicationDefine non-null unique primary keys in the input and output asset
An inference asset uses an unsupported materialization or warehouse destinationThe operation cannot publish results or route quality checks safelyUse table merge or create-replace materialization and a supported ingestr destination
An inference provider connection is missing or an asset uses api_key_envValidation stops before model requestsDefine inference_connection as a named Bruin connection and resolve it through the selected connection source
Two inference runs use the same local cache at onceOne run stops instead of risking conflicting saved resultsSerialize runs for the same project, pipeline, asset, connection, and destination
An inference request or destination write fails part way throughPartial model results are not published, and the next run must resume from saved completed rowsKeep result persistence separate from final publication and rerun after the failing service recovers

Key files

FileWhy to read it
cmd/cloud.goShows the cloud command surface and how local configuration becomes a team-scoped cloud client
cmd/cloud_auth.goShows cloud credential precedence, team selection, and the boundary between personal and delegated identity
cmd/cloud_act_as.goShows how a person starts, checks, renews, and stops an agent session
cmd/cloud_act_as_test.goShows the act-as contract for precedence, team and destination pinning, renewal, logout, safe concurrent changes, and recovery paths
cmd/cloud_data_apps.goShows the Cloud data app lifecycle and the local pull, edit, and push boundary
cmd/cloud_data_apps_test.goShows the data app contract for guides, settings, local file safety, version conflicts, manifests, and app state
pkg/…/api.goShows the managed resource boundary for projects, pipeline runs, agents, agent queries, dashboards, folders, schedules, run states, and reporting
pkg/…/pipeline_trigger.goShows how a scheduled agent reads, sets, or removes its linked cloud pipeline target
pkg/…/pipeline_trigger_test.goShows that a missing trigger is valid and that a configured trigger remains part of the scheduled-agent response
pkg/…/api_test.goShows the API contract checks for authentication, team scope, retries, run options, cloud-agent actions, dashboards, folders, schedules, run states, queries, and cost views
pkg/…/types.goDefines the cloud resource shapes exchanged by the API client and cloud commands, including scheduled-agent pipeline links
pkg/…/connections.goDefines the project-level connection forms for Bruin Cloud and AI services
cmd/enhance.goShows the end-to-end local AI enhancement workflow and its use of connection-backed credentials
pkg/…/enhancer.goShows how AI output becomes a formatted and validated asset
cmd/skills.goShows how reusable AI skills and their required service connections enter a project
pkg/…/config.goDefines the supported inference providers, connection rules, input choices, and output limits
pkg/…/columns_test.goShows constrained column output rules and shared request behavior across inference column groups
pkg/…/operator.goShows how inference reads rows, reuses saved results, and publishes model output to a warehouse
pkg/…/operator_test.goShows the guarantees for cache reuse, failure recovery, input identity, destination checks, and request cancellation
pkg/…/ingestr_destination.goShows how warehouse connection types select ingestr destinations for loading and quality checks
pkg/…/uv.goShows the shared Python and ingestr runner boundary, including released, legacy, and local ingestr execution paths
cmd/secrets_backend.goShows how a command selects a managed secret provider
pkg/…/secrets.goDefines the common contract that lets all secret providers serve pipeline operations
pkg/…/aws_secretsmanager.goShows how AWS Secrets Manager turns a named secret into a Bruin connection
pkg/…/azure_keyvault.goShows Azure Key Vault authentication choices and named-connection lookup
pkg/…/doppler.goShows how Doppler project secrets enter the shared connection flow
pkg/…/notfound.goShows the shared missing-secret classification and logging behavior
pkg/…/notfound_test.goShows that missing-secret errors stay quiet while other lookup failures remain visible
pkg/…/vault.goShows how Vault authentication, endpoint handling, connection lookup, retries, and error reporting fit the shared secret-provider contract
pkg/…/vault_test.goShows the Vault contract checks for endpoint setup, authentication responses, retries, time limits, caching, response shape, and connection listing