<@U04S8PLJWMT> Hi! Is there a way to set the defau...
# ask-ai
j
@kapa.ai Hi! Is there a way to set the default login user (email) and password via the Helm chart when deploying Airbyte? I’d like to avoid manual UI setup and predefine the login credentials in my deployment values. Thanks!
k
Yes, you can predefine the default login credentials (email and password) for Airbyte when deploying via Helm, but with some caveats: - Password: You can set the default admin password by creating a Kubernetes secret named
airbyte-auth-secrets
with the key
instance-admin-password
. This secret can be created before deploying Airbyte, and the Helm chart will use it during installation. Here’s an example of the secret YAML:
Copy code
yaml     apiVersion: v1     kind: Secret     metadata:       name: airbyte-auth-secrets     type: Opaque     stringData:       instance-admin-password: your_password_here       # Optionally, you can also set:       # instance-admin-client-id: your_client_id       # instance-admin-client-secret: your_client_secret
Apply it with:
Copy code
kubectl apply -f secret.yaml -n <YOUR_NAMESPACE>
This avoids the need for manual UI setup for the password. You may need to restart the Airbyte server pod for changes to take effect. [Authentication Integration Guide](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/authentication) - Email: The knowledge sources do not explicitly document a way to set the default admin email via the Helm chart or Kubernetes secret for the open-source or community edition. The email is typically set at first login or via the UI. For Airbyte Enterprise, you can reference an email secret key in your
values.yaml
under
global.auth.instanceAdmin.emailSecretKey
, but you must also ensure the corresponding secret exists. Here’s an example for Enterprise:
Copy code
yaml     global:       auth:         instanceAdmin:           firstName: "Admin"           lastName: "User"           emailSecretKey: "admin-email" # The key in your secret           passwordSecretKey: "admin-password" # The key in your secret
And your secret would look like:
Copy code
yaml     apiVersion: v1     kind: Secret     metadata:       name: airbyte-config-secrets     type: Opaque     stringData:       admin-email: "admin@example.com"       admin-password: "your_password_here"
[Enterprise Setup Guide](https://docs.airbyte.com/platform/next/enterprise-setup/implementation-guide#step-2-configure-your-deployment) Summary: - You can always set the password via a Kubernetes secret. - Setting the email via secret is only documented for Airbyte Enterprise, not for the open-source/community edition. - For open-source/community, the email is not configurable via Helm chart or secret according to the current documentation. If you need to automate both email and password for the open-source edition, the knowledge sources do not provide a documented method for the email. For Enterprise, use the
emailSecretKey
and
passwordSecretKey
fields as shown above.
j
@kapa.ai and where you set the email?
k
A message from kapa.ai
For Airbyte Enterprise, you can set the admin email by referencing a key in a Kubernetes secret and specifying that key in your
values.yaml
file. Here’s how it works: 1. Create a Kubernetes secret (commonly named
airbyte-config-secrets
) with a key for the email, for example `instance-admin-email`:
Copy code
yaml     apiVersion: v1     kind: Secret     metadata:       name: airbyte-config-secrets     type: Opaque     stringData:       instance-admin-email: "admin@example.com"       instance-admin-password: "your_password_here"
2. Reference the email key in your
values.yaml
under the
global.auth.instanceAdmin.emailSecretKey
field:
Copy code
yaml     global:       auth:         instanceAdmin:           firstName: "Admin"           lastName: "User"           emailSecretKey: "instance-admin-email"      # The key in your secret           passwordSecretKey: "instance-admin-password" # The key in your secret
This setup tells Airbyte to use the value of
instance-admin-email
from the
airbyte-config-secrets
secret as the admin email during deployment. [See documentation for details](https://docs.airbyte.com/platform/next/enterprise-setup/implementation-guide#creating-a-kubernetes-secret). Note: For the open-source/community edition, the knowledge sources do not document a way to set the admin email via Helm chart or secret. This method is only described for Airbyte Enterprise. If you are using the open-source edition, setting the email via secret is not currently supported according to the available documentation.