<@U04S8PLJWMT> Can I connect to a Airbyte OSS serv...
# ask-ai
e
@kapa.ai Can I connect to a Airbyte OSS server that has authentication disabled using the Python airbyte library?
k
Yes, you can connect to an Airbyte OSS server with authentication disabled using the Python Airbyte library. Airbyte allows you to disable authentication by setting the following in your
values.yaml
file:
Copy code
yaml global:     auth:       enabled: false
After applying this configuration and redeploying Airbyte, the API will be accessible without authentication, meaning you can interact with it directly from the Python Airbyte library or any other client without needing to provide credentials. This is confirmed in the documentation, which explains how to disable authentication and notes that the API will be open in this mode [Deploying Airbyte - Authentication](https://docs.airbyte.com/platform/deploying-airbyte/integrations/authentication). However, be aware that disabling authentication exposes your Airbyte API to anyone who can reach the server, so you should ensure your network is secure (e.g., restrict access via firewall or private network) [Forum Post: Secure way to access the Airbyte api server with only Airflow](https://discuss.airbyte.io/t/1573). In summary: Yes, the Python Airbyte library will work with an Airbyte OSS server that has authentication disabled.
e
@kapa.ai Can you give an example on how to use the Python Airbyte library while authentication is disabled? The
airbyte.cloud.CloudWorkspace
module requires a client_id and client_secret
k
A message from kapa.ai
I'm sorry, but the knowledge sources do not contain an example of using the Python Airbyte library (such as
airbyte.cloud.CloudWorkspace
) with authentication disabled. The documentation does explain how to disable authentication on the Airbyte OSS server, but it does not provide a code example or clarify how the Python SDK behaves in this scenario or whether it supports unauthenticated connections directly [Deploying Airbyte - Authentication](https://docs.airbyte.com/platform/deploying-airbyte/integrations/authentication). If you need to interact with the Airbyte API without authentication, you may need to use direct HTTP requests to the API endpoints, as the official SDKs are designed to work with authentication (client_id and client_secret). The knowledge sources do not provide further details or examples for this use case.
e
@kapa.ai what should I use as the api_root of my Airbyte OSS server with default ports, ip address 10.10.10.10 and http
k
A message from kapa.ai
For an Airbyte OSS server running with default ports and authentication disabled, your
api_root
should be:
Copy code
http://10.10.10.10:8000/api/public/v1
This is based on the migration to the new Airbyte server API, where API endpoints are now accessed via the
/api/public/v1
path on port 8000 by default [Standalone server deprecation and migration to airbyte-server](https://github.com/airbytehq/airbyte/issues/43423), [Python SDK usage discussion](https://github.com/airbytehq/airbyte/discussions/45182). So, use:
Copy code
http://10.10.10.10:8000/api/public/v1
as your
api_root
.
e
@kapa.ai What is the difference between the airbyte-api-python-sdk and PyAirbyte
k
A message from kapa.ai
The main difference between airbyte-api-python-sdk and PyAirbyte is their purpose and usage: - airbyte-api-python-sdk is a Python SDK designed to programmatically control and manage your Airbyte instance. It allows you to automate tasks such as creating connections, managing sources and destinations, and orchestrating syncs by interacting directly with the Airbyte API. This SDK is suitable if you want to manage Airbyte infrastructure and workflows from Python code [Airbyte platform overview](https://docs.airbyte.com/platform), [API and Python SDK](https://docs.airbyte.com/platform#api-and-python-sdk). - PyAirbyte is a Python library that brings Airbyte’s data extraction and loading capabilities directly into your Python environment. It is ideal for developers and data scientists who want to move data using Airbyte connectors within Python scripts or notebooks, especially for prototyping, data exploration, or AI/ML workflows. PyAirbyte is not intended for managing Airbyte server infrastructure, but rather for running syncs and loading data into Python-friendly caches like DuckDB or Pandas DataFrames [Airbyte platform overview](https://docs.airbyte.com/platform#pyairbyte), [Using PyAirbyte](https://docs.airbyte.com/platform/using-airbyte/pyairbyte/getting-started). In summary: - Use airbyte-api-python-sdk to manage and automate your Airbyte server. - Use PyAirbyte to extract and load data using Airbyte connectors directly in Python scripts or notebooks.