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
# Custom Components for the Connector Builder (Experimental)
5
4
6
-
:::danger
7
-
**SECURITY WARNING**: Custom Components are currently considered **UNSAFE** and **EXPERIMENTAL**. We do not provide any sandboxing guarantees. This feature could potentially execute arbitrary code in your Airbyte environment.
5
+
# Custom components for the Connector Builder
8
6
9
-
Administrators should enable this feature at their own discretion and risk. Only available in OSS and Enterprise deployments.
10
-
:::
11
-
12
-

13
-
*Screenshot: The Custom Components editor showing a simple RecordTransformation component that appends text to a record's name field.*
7
+
Use Custom Components to extend the Connector Builder with your own Python implementations when Airbyte's built-in components don't meet your specific needs.
14
8
15
-
## What are Custom Components?
16
-
17
-
Custom Components allow you to extend the Connector Builder with your own Python implementations when the built-in components don't meet your specific integration needs. This feature enables you to:
9
+
This feature enables you to:
18
10
19
11
- Override any built-in component with a custom Python class
12
+
20
13
- Implement specialized logic for handling complex API behaviors
14
+
21
15
- Maintain full control over the connection process while still leveraging the Connector Builder framework
22
16
23
-
At their core, Custom Components are Python classes that implement specific interfaces from the Airbyte CDK. They follow a consistent pattern:
17
+
The following example shows a simple RecordTransformation component that appends text to a record's name field.
18
+
19
+

20
+
21
+
## What are Custom Components?
22
+
23
+
Custom Components are Python classes that implement specific interfaces from the Airbyte CDK. They follow a consistent pattern:
24
+
24
25
- A dataclass that implements the interface of the component it's replacing
26
+
25
27
- Fields representing configurable arguments from the YAML configuration
26
-
- Implementation of required methods to handle the component's specific functionality
27
28
28
-
When enabled, Custom Components bring the full flexibility of the Low-Code CDK's advanced capabilities directly into the Connector Builder UI environment.
29
+
- Implementation of required methods to handle the component's specific capability
29
30
30
-
## Why Custom Components are Powerful
31
+
## Why Custom Components are powerful
31
32
32
-
Custom Components provide significant advantages when building complex connectors:
33
+
When enabled, Custom Components bring the full flexibility of the Low-Code CDK into the simpler Connector Builder UI. Custom Components provide significant advantages when building complex connectors, and they equip you to integrate with virtually any API, regardless of complexity or your unique requirements.
33
34
34
-
1.**Handle Edge Cases**: They allow you to address unique API behaviors that aren't covered by built-in components, such as unusual pagination patterns, complex authentication schemes, or specialized data transformation needs.
35
+
1.**Handle Edge Cases**: Address unique API behaviors that aren't covered by built-in components, such as unusual pagination patterns, complex authentication schemes, or specialized data transformation needs.
35
36
36
-
2.**Extend Functionality**: When standard components don't offer the precise functionality you need, Custom Components let you implement exactly what's required without compromising.
37
+
2.**Extend Functionality**: When standard components don't offer the precise capabilities you need, Custom Components let you implement exactly what's required without compromising.
37
38
38
39
3.**Maintain Framework Benefits**: While providing customization, you still benefit from the structure, testing capabilities, and deployment options of the Connector Builder framework.
39
40
40
41
4.**Iterative Development**: You can start with built-in components and gradually replace only the specific parts that need customization, rather than building an entire connector from scratch.
41
42
42
43
5.**Specialized Transformations**: Implement complex data manipulation, normalization, or enrichment that goes beyond what declarative configuration can provide.
43
44
44
-
This powerful capability bridges the gap between low-code simplicity and custom code flexibility, enabling integration with virtually any API regardless of its complexity or unique requirements.
45
+
## How to enable Custom Components
45
46
46
-
## How to Enable Custom Components
47
+
:::danger Security Warning
48
+
Custom Components are currently considered **UNSAFE** and **EXPERIMENTAL**. Airbyte doesn't provide any sandboxing guarantees. This feature could execute arbitrary code in your Airbyte environment. Enable it at your own risk.
49
+
:::
50
+
51
+
Airbyte disables Custom Components by default due to their experimental nature and security implications. Administrators can enable this feature in Self-Managed Community and Self-Managed Enterprise deployments using one of the following methods:
47
52
48
-
Custom Components are disabled by default due to their experimental nature and security implications. Administrators can enable this feature in OSS and Enterprise deployments using one of the following methods:
53
+
### Using abctl
49
54
50
-
### Using ABCTL
55
+
If you deploy Airbyte with abctl, follow the steps below to update your values and redeploy Airbyte.
51
56
52
-
1. Create a values override file (e.g., `custom-components-values.yaml`) with the following content:
53
-
```yaml
57
+
1. Edit your existing `values.yaml` file or create a new override file with this configuration:
58
+
59
+
```yaml title="values.yaml"
54
60
workload-launcher:
55
61
extraEnv:
56
62
AIRBYTE_ENABLE_UNSAFE_CODE: true
@@ -59,17 +65,19 @@ Custom Components are disabled by default due to their experimental nature and s
59
65
AIRBYTE_ENABLE_UNSAFE_CODE: true
60
66
```
61
67
62
-
2. Use this file during deployment with the ABCTL command:
68
+
2. Use this file during deployment with the abctl command:
69
+
63
70
```bash
64
-
abctl local install --values custom-components-values.yaml
71
+
abctl local install --values values.yaml
65
72
```
66
73
67
-
### Using Helm Charts Directly
74
+
### Using Helm charts
68
75
69
-
If you're deploying Airbyte using our public Helm charts without ABCTL:
76
+
If you're deploying Airbyte using public Helm charts without abctl, follow the steps below to update your values and redeploy Airbyte.
70
77
71
-
1. Edit your existing `values.yaml` file or create a new override file with the same configuration:
72
-
```yaml
78
+
1. Edit your existing `values.yaml` file or create a new override file with this configuration:
79
+
80
+
```yaml title="values.yaml"
73
81
workload-launcher:
74
82
extraEnv:
75
83
AIRBYTE_ENABLE_UNSAFE_CODE: true
@@ -79,30 +87,35 @@ If you're deploying Airbyte using our public Helm charts without ABCTL:
79
87
```
80
88
81
89
2. Apply the configuration during Helm installation or upgrade:
After enabling Custom Components, carefully monitor your deployment for any security or performance issues. Remember that this feature allows execution of arbitrary code in your Airbyte environment.
96
+
Monitor your deployment for any security or performance issues. Remember that this feature allows execution of arbitrary code in your Airbyte environment.
88
97
:::
89
98
90
-
## How to Use Custom Components
99
+
## How to use Custom Components
91
100
92
-
Custom Components in the Connector Builder UI extend the functionality available in the Low-Code CDK. For detailed implementation information, please refer to our[Custom Components documentation](../config-based/advanced-topics/custom-components.md).
101
+
Custom Components in the Connector Builder UI extend the capabilities available in the Low-Code CDK. For detailed implementation information, please refer to the[Custom Components documentation](../config-based/advanced-topics/custom-components.md).
93
102
94
103
Key implementation steps include:
95
104
96
105
1. Create a Python class that implements the interface of the component you want to customize
106
+
97
107
2. Define the necessary fields and methods required by that interface
108
+
98
109
3. Reference your custom component in the connector configuration using its fully qualified class name
99
110
100
111
The existing documentation provides examples of:
112
+
101
113
- How to create custom component classes
114
+
102
115
- Required implementation interfaces
116
+
103
117
- Properly referencing custom components in your configuration
104
-
- Handling parameter propagation between parent and child components
105
118
106
-
Remember that while using the Connector Builder UI, you'll need to switch to the YAML editor view to implement custom components, as they cannot be configured through the visual interface.
119
+
- Handling parameter propagation between parent and child components
107
120
108
-
Custom Components are currently in active development. While powerful, they should be used with caution in production environments.
121
+
While using the Connector Builder UI, you need to switch to the YAML editor view to implement custom components. You can't configure them through the visual interface.
0 commit comments