can I give a default email to an ab instance w/ he...
# ask-ai
t
can I give a default email to an ab instance w/ helm?
k
Yes, you can provide a default email to an Airbyte instance deployed with Helm by using Kubernetes secrets and referencing them in your Helm values file. For Airbyte Self-Managed Enterprise, you can specify the admin user's email and password using secret keys in your values.yaml file. Here’s how you can do it: 1. Create a Kubernetes Secret that contains the email and password:
Copy code
yaml apiVersion: v1 kind: Secret metadata:   name: airbyte-auth-secrets type: Opaque stringData:   instance-admin-email: "[email protected]"   instance-admin-password: "yourpassword"
2. Reference these secrets in your values.yaml:
Copy code
yaml global:   auth:     instanceAdmin:       emailSecretKey: "instance-admin-email"      # The key in your secret for the email       passwordSecretKey: "instance-admin-password" # The key in your secret for the password
3. Apply the secret and deploy with Helm:
Copy code
sh kubectl apply -f secret.yaml -n <YOUR_NAMESPACE> helm upgrade --install airbyte airbyte/airbyte -f values.yaml -n <YOUR_NAMESPACE>
Make sure your values.yaml and secret keys match, and that the secret is available in the namespace where Airbyte is deployed. This approach is documented for the Enterprise edition, and the same pattern applies for setting admin credentials via secrets in Helm deployments [Step 2: Configure your Deployment](https://docs.airbyte.com/platform/enterprise-setup/implementation-guide#step-2-configure-your-deployment). If you are using a different edition or have a different setup, the knowledge sources do not provide explicit instructions for setting a default email via Helm for non-Enterprise editions.
t
how do I make sure a default user is created @kapa.ai
k
A message from kapa.ai
To ensure a default user is created in your Airbyte instance when deploying with Helm, you need to provide the admin user's email and password via a Kubernetes secret and reference those keys in your Helm values.yaml file. Steps: 1. Create a Kubernetes Secret with the admin email and password:
Copy code
yaml apiVersion: v1 kind: Secret metadata:   name: airbyte-auth-secrets type: Opaque stringData:   instance-admin-email: "[email protected]"   instance-admin-password: "yourpassword"
2. Reference the secret keys in your values.yaml:
Copy code
yaml global:   auth:     instanceAdmin:       emailSecretKey: "instance-admin-email"       passwordSecretKey: "instance-admin-password"
3. Apply the secret and deploy Airbyte:
Copy code
sh kubectl apply -f secret.yaml -n <YOUR_NAMESPACE> helm upgrade --install airbyte airbyte/airbyte -f values.yaml -n <YOUR_NAMESPACE>
Important: - The secret must be named
airbyte-auth-secrets
(as the chart currently hardcodes this name in several places). - The keys in the secret must match the values you set in
emailSecretKey
and
passwordSecretKey
. - You may need to restart the Airbyte server pod for changes to take effect. This process ensures that the Airbyte bootloader uses your provided credentials to create the default admin user on startup. If these are not provided, Airbyte will generate a random password and you may not have control over the default user credentials [Authentication](https://docs.airbyte.com/platform/1.8/deploying-airbyte/integrations/authentication) [Github Issue: Helm chart ignores user secrets](https://github.com/airbytehq/airbyte/issues/65154). If you do not see the user created as expected, double-check the secret name and keys, as some chart versions may ignore custom secret names and expect
airbyte-auth-secrets
specifically.