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
| `source` | string | No | - | CoreAccountGroup name to use as lineage source |
98
+
| `owner` | string | No | - | CoreAccountGroup name to use as lineage owner |
95
99
96
100
*Can be provided via environment variables instead.
97
101
@@ -145,12 +149,44 @@ fields:
145
149
reference: BuiltinTag
146
150
```
147
151
148
-
## Source account tracking
152
+
## Lineage tracking
149
153
150
-
When syncing data into Infrahub, the adapter tracks the source of each record using Infrahub's account system. The adapter looks for a `CoreAccount` with a name matching the source adapter name, enabling:
154
+
When syncing data into Infrahub, the adapter tracks the source and owner of each record using Infrahub's lineage system. This enables:
151
155
152
156
- Tracking which system created each record
153
157
- Protecting source-managed attributes from manual edits
158
+
- Assigning ownership to teams or groups
159
+
160
+
### Default behavior
161
+
162
+
By default, the adapter looks for a `CoreAccount` with a name matching the source adapter name. This account is used as both the source and owner for all synced attributes.
163
+
164
+
### Using account groups
165
+
166
+
You can override the default behavior by specifying `source` and/or `owner` in the destination settings. When specified, these values are used to look up a `CoreAccountGroup` by name:
167
+
168
+
```yaml
169
+
destination:
170
+
name: infrahub
171
+
settings:
172
+
url: "http://localhost:8000"
173
+
token: "<TOKEN>"
174
+
source: "data-sync" # Uses CoreAccountGroup "data-sync" as source
175
+
owner: "network-team" # Uses CoreAccountGroup "network-team" as owner
176
+
```
177
+
178
+
This allows you to:
179
+
180
+
- Use different groups for source and owner
181
+
- Override only one while keeping the default account for the other
182
+
- Assign ownership to a team rather than an individual account
0 commit comments