You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/secrets/bruinyml.md
+150-5Lines changed: 150 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,25 @@
1
-
## Using `.bruin.yml` as a Secrets Backend
1
+
#.bruin.yml Reference
2
2
3
-
The easiest secret backend you can use with Bruin is a `.bruin.yml` file. This file should sit at the root of the repository and will contain the connection details and other secrets used in your pipelines.
3
+
The `.bruin.yml` file is the central configuration file for Bruin pipelines. It stores all credentials, connection details, and environment configurations needed to run your data pipelines. The file is automatically created when you run any `bruin` command the first time in a project, and it is automatically added to `.gitignore`.
4
4
5
-
`.bruin.yml` is the default secrets backend. To use it, simply place the file at the root of your project. You can also specify a different location using the `--config-file /path/to/.bruin.yml`
5
+
`.bruin.yml`file is expected to be in the root of your Git repo. You can specify a different location using the `--config-file /path/to/.bruin.yml`
6
6
7
-
## `.bruin.yml` Schema
7
+
## File Structure
8
8
9
-
.bruin.yml contains information about your secrets and credentials organised in "environments". It also contains information about the default environment to use when none is specified. The environments contains a set of connections grouped by platform. This is an example that illustrates the schema from the [Quickstart](../getting-started/introduction/quickstart.md).
9
+
The file is a YAML file with the following structure:
10
+
11
+
```yaml
12
+
default_environment: <environment_name>
13
+
environments:
14
+
<environment_name>:
15
+
schema_prefix: <optional_prefix>
16
+
connections:
17
+
<connection_type>:
18
+
- name: "<connection_name>"
19
+
# connection-specific fields...
20
+
```
21
+
22
+
### Example
10
23
11
24
```yaml
12
25
default_environment: default
@@ -22,3 +35,135 @@ environments:
22
35
- "MagnusCarlsen"
23
36
- "Hikaru"
24
37
```
38
+
39
+
## Top-Level Fields
40
+
41
+
| Field | Type | Required | Description |
42
+
|-------|------|----------|-------------|
43
+
| `default_environment` | string | No | Environment to use when none is specified. Defaults to `default`. |
44
+
| `environments` | map | Yes | Map of environment names to their configurations. |
Connection schemas for ingestion sources are documented on their respective pages under [Data Ingestion](../ingestion/overview.md). Each source page includes the required `.bruin.yml` connection configuration.
0 commit comments