Hi, I have deployed Airbyte on AWS, where can I ch...
# ask-ai
m
Hi, I have deployed Airbyte on AWS, where can I change the username and password? local .env file?
k
A message from kapa.ai
New message text here
m
I used the docker desktop on my local machine to keep Airbyte before and the .env file is storing the username and password for that. Now, it's setting up on EC2 Linux container, I don't think .env file is in my local machine
m
You must access the ec2 instance using ssh or aws console and edit the .env file located there
s
Hey @Marcos Marx (Airbyte) and @kapa.ai Would you know how to do the same while deploying in the kubernetes via helm chart?
k
A message from kapa.ai
Yes, I can help you deploy Airbyte on Kubernetes using Helm. Here are the steps: 1. Install Helm: For MacOS:
brew install helm
For Linux:
Copy code
curl -fsSL -o get_helm.sh <https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3>    chmod 700 get_helm.sh    ./get_helm.sh
2. Add Helm Repository:
Copy code
helm repo add airbyte <https://airbytehq.github.io/helm-charts>    helm repo update
3. Deploy Airbyte with default values:
Copy code
helm install %release_name% airbyte/airbyte
If you want to customize your deployment, create a
values.yaml
file with your configuration overrides and use the following command:
Copy code
helm install --values path/to/values.yaml %release_name% airbyte/airbyte
You can find an example
values.yaml
file in the [charts/airbyte](https://github.com/airbytehq/airbyte-platform/blob/main/charts/airbyte/values.yaml) folder of the Airbyte repository. For more information, refer to the [Airbyte documentation on deploying with Helm](https://docs.airbyte.com/deploying-airbyte/on-kubernetes-via-helm).
s
@kapa.ai How can I change the username and password of airbyte application while deploying in kubernetes using helm?
k
A message from kapa.ai
A message from kapa.ai
Currently, there is no direct way to set the
BASIC_AUTH_USERNAME
and
BASIC_AUTH_PASSWORD
for Airbyte using the Helm chart. However, you can try to enable basic authentication on the NGINX controller in Kubernetes as a workaround. Note that some users have reported issues with the UI not loading properly after enabling basic authentication on the NGINX controller. To customize your deployment, create a
values.yaml
file with your configuration overrides and use the following command:
Copy code
helm install --values path/to/values.yaml %release_name% airbyte/airbyte
You can find an example
values.yaml
file in the [charts/airbyte](https://github.com/airbytehq/airbyte-platform/blob/main/charts/airbyte/values.yaml) folder of the Airbyte repository. For more information, refer to the [Airbyte documentation on deploying with Helm](https://docs.airbyte.com/deploying-airbyte/on-kubernetes-via-helm).
To change the username and password for the Airbyte application while deploying in Kubernetes using Helm, you can use annotations in the ingress controller as a workaround. This method is similar to what the airbyte-proxy does in the Docker version. Here's an example of how to add basic authentication to the ingress controller using annotations: 1. Create a
values.yaml
file with the following content:
Copy code
yaml ingress:   enabled: true   annotations:     <http://kubernetes.io/ingress.class|kubernetes.io/ingress.class>: nginx     <http://nginx.ingress.kubernetes.io/auth-type|nginx.ingress.kubernetes.io/auth-type>: basic     <http://nginx.ingress.kubernetes.io/auth-secret|nginx.ingress.kubernetes.io/auth-secret>: basic-auth     <http://nginx.ingress.kubernetes.io/auth-realm|nginx.ingress.kubernetes.io/auth-realm>: "Authentication Required"
2. Create a Kubernetes secret with your desired username and password:
Copy code
bash htpasswd -c auth myusername kubectl create secret generic basic-auth --from-file=auth
Replace
myusername
with your desired username. You will be prompted to enter a password. 3. Deploy Airbyte using the
values.yaml
file:
Copy code
bash helm install --values path/to/values.yaml %release_name% airbyte/airbyte
For more information on adding basic authentication to the ingress controller, refer to the [official ingress-nginx documentation](https://kubernetes.github.io/ingress-nginx/examples/auth/basic/).