<@U04S8PLJWMT> I'm using oss version and I want to...
# ask-ai
i
@kapa.ai I'm using oss version and I want to use aws secret manager. Can I use instanceProfile with oss without access and secret key?
k
Yes, you can use AWS Secrets Manager with the OSS (open-source) version of Airbyte, and you have two authentication options: 1. Access Key and Secret Key (credentials): You can authenticate by creating a Kubernetes secret containing your AWS Secrets Manager access key ID and secret access key. This is the standard method and is fully supported in OSS. The configuration in your
values.yaml
would look like:
Copy code
yaml    global:      secretsManager:        type: awsSecretManager        secretName: "airbyte-config-secrets"        awsSecretManager:          region: <aws-region>          authenticationType: credentials # Use "credentials" for access/secret key
The Kubernetes secret should have the keys
aws-secret-manager-access-key-id
and
aws-secret-manager-secret-access-key
with your credentials as values. [See documentation for details](https://docs.airbyte.com/platform/deploying-airbyte/integrations/secrets#values). 2. Instance Profile (IAM Role): You can also set
authenticationType: instanceProfile
if your Airbyte compute infrastructure (e.g., EC2, EKS node, or K8s service account) already has the necessary IAM permissions to access AWS Secrets Manager. In this case, you do not need to provide access and secret keys, as the instance profile will be used for authentication.
Copy code
yaml    global:      secretsManager:        type: awsSecretManager        secretName: "airbyte-config-secrets"        awsSecretManager:          region: <aws-region>          authenticationType: instanceProfile # Use "instanceProfile" for IAM role
[See documentation for details](https://docs.airbyte.com/platform/deploying-airbyte/integrations/secrets#values). Summary: - If you use
authenticationType: credentials
, you must provide access and secret keys. - If you use
authenticationType: instanceProfile
, you do not provide access and secret keys; the IAM role attached to your compute resources is used. You should not use both methods simultaneously; choose one based on your infrastructure and security requirements. > Note: The OSS version fully supports both authentication methods for AWS Secrets Manager. There is no restriction on using instance profiles in OSS for this purpose. [Reference: Secret Management Values](https://docs.airbyte.com/platform/deploying-airbyte/integrations/secrets#values)
A message from kapa.ai
Yes, you can use AWS Secrets Manager with the OSS (open-source) version of Airbyte and authenticate using an instance profile (IAM role) without providing an access key and secret key. To do this, set
authenticationType
to
instanceProfile
in your configuration. This allows Airbyte to use the IAM role attached to your compute infrastructure (such as an EC2 instance or EKS node) to access AWS Secrets Manager, and you do not need to provide explicit AWS credentials. Here is an example configuration:
Copy code
yaml global:   secretsManager:     type: awsSecretManager     secretName: "airbyte-config-secrets"     awsSecretManager:       region: <aws-region>       authenticationType: instanceProfile
This approach is documented and supported in the OSS version of Airbyte. Just ensure that your compute environment has the necessary IAM permissions to access AWS Secrets Manager, as described in the documentation [Configuring External Connector Secret Management](https://docs.airbyte.com/platform/deploying-airbyte/integrations/secrets#values).
i
like this? global: auth: enabled: false cookieSecureSetting: "false" image: pullPolicy: IfNotPresent imagePullSecrets: - name: regcred secretsManager: type: awsSecretManager awsSecretManager: region: us-east-2 authenticationType: instanceProfile @kapa.ai
k
A message from kapa.ai
Yes, your configuration is correct for using AWS Secrets Manager with the OSS version of Airbyte and authenticating via an instance profile (IAM role) without providing access and secret keys. Your
values.yaml
snippet:
Copy code
yaml global:   auth:     enabled: false     cookieSecureSetting: "false"   image:     pullPolicy: IfNotPresent   imagePullSecrets:     - name: regcred   secretsManager:     type: awsSecretManager     awsSecretManager:       region: us-east-2       authenticationType: instanceProfile
This matches the documented approach: when you set
authenticationType: instanceProfile
, Airbyte will use the IAM role attached to your compute resources to access AWS Secrets Manager, and you do not need to provide access or secret keys. Just ensure your compute environment (e.g., EC2, EKS, or K8s service account) has the necessary IAM permissions for Secrets Manager access [as described in the documentation](https://docs.airbyte.com/platform/deploying-airbyte/integrations/secrets#values). If you follow this setup, you are using the recommended method for instance profile authentication with OSS Airbyte.
i
I'm running on ec2 - using abctl. what K8s service account should I check? @kapa.ai
k
A message from kapa.ai
If you are running Airbyte OSS on an EC2 instance using abctl, you are not running Airbyte on Kubernetes, so there is no Kubernetes service account involved. The instance profile (IAM role) should be attached directly to your EC2 instance. Airbyte, when configured with
authenticationType: instanceProfile
, will use the IAM role associated with the EC2 instance to access AWS Secrets Manager. You do not need to check or configure a Kubernetes service account in this setup. Instead, ensure that your EC2 instance has the correct IAM role attached with the necessary permissions for AWS Secrets Manager access, as described in the documentation: > Set
authenticationType
to
instanceProfile
if the compute infrastructure running Airbyte has pre-existing permissions (e.g. IAM role) to read and write from AWS Secrets Manager. [Source: Deploying Airbyte > Integrations > Secret Management](https://docs.airbyte.com/platform/deploying-airbyte/integrations/secrets#values) So, in summary: No Kubernetes service account is involved when running Airbyte on EC2 with abctl. Just ensure your EC2 instance has the correct IAM role attached.
i
@kapa.ai but I'm running kubectl command and I used abctl to install
k
A message from kapa.ai
Thank you for clarifying. If you are running Airbyte on Kubernetes (for example, on EKS or another Kubernetes cluster on EC2) and installed it using abctl, then Kubernetes service accounts are relevant. In this case, when using
authenticationType: instanceProfile
, Airbyte will use the IAM role associated with the Kubernetes service account that is assigned to the Airbyte pods. This is typically done using [IAM Roles for Service Accounts (IRSA)](https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html) on EKS. You should check which service account is assigned to your Airbyte workload pods. You can do this by running:
Copy code
sh kubectl get pod <airbyte-pod-name> -o jsonpath='{.spec.serviceAccountName}'
The service account should have the necessary IAM role annotation (e.g., `eks.amazonaws.com/role-arn`) that allows access to AWS Secrets Manager. If your pods are using the
default
service account instead of a custom one with the correct IAM role, you may encounter permission issues. You should ensure that your Airbyte deployment is configured to use the intended service account, as described in your
values.yaml
under the
serviceAccount
section. For example:
Copy code
yaml airbyte:   serviceAccount:     name: airbyte     annotations:       eks.amazonaws.com/role-arn: arn:aws:iam::<ACCOUNT_ID>:role/<ROLE_NAME>
This setup ensures that Airbyte pods use the correct service account, which in turn uses the IAM role for AWS Secrets Manager access via instance profile. [See related discussion and configuration example](https://github.com/airbytehq/airbyte/issues/50979). If you are seeing your pods use the
default
service account, you may need to adjust your Helm values or deployment configuration to specify the correct service account for Airbyte workloads.
i
@kapa.ai where should I add this? this is my values file: global: auth: enabled: false cookieSecureSetting: "false" image: pullPolicy: IfNotPresent imagePullSecrets: - name: regcred secretsManager: type: awsSecretManager awsSecretManager: region: us-east-2 authenticationType: instanceProfile
k
A message from kapa.ai
To specify a custom Kubernetes service account for your Airbyte deployment, you should add the
serviceAccount
section at the root level of your
values.yaml
file (not under
global
). According to the official documentation, you can do this as follows:
Copy code
yaml serviceAccount:   name: <your-service-account-name>
So, your
values.yaml
should look like this:
Copy code
yaml global:   auth:     enabled: false     cookieSecureSetting: "false"   image:     pullPolicy: IfNotPresent   imagePullSecrets:     - name: regcred   secretsManager:     type: awsSecretManager     awsSecretManager:       region: us-east-2       authenticationType: instanceProfile  serviceAccount:   name: <your-service-account-name>
Replace
<your-service-account-name>
with the name of the Kubernetes service account that has the appropriate IAM role annotation for AWS Secrets Manager access. This approach is documented for customizing your service account in Airbyte deployments [see documentation](https://docs.airbyte.com/platform/enterprise-setup/implementation-guide#customizing-your-service-account). If you do not specify this, Airbyte will use the default service account (
airbyte-sa
or
default
), which may not have the required permissions. If you need to manage the service account externally (not via Helm), you can set
serviceAccount.create: false
and specify the name, as discussed in [this issue](https://github.com/airbytehq/airbyte/issues/18731).
i
@kapa.ai where is the helm chart abctl is using?
k
A message from kapa.ai
The knowledge sources do not explicitly state which Helm chart or chart repository is used by abctl when installing Airbyte. The documentation for
abctl
mentions that you can specify a chart path or chart version using the
--chart
and
--chart-version
flags, and you can further customize the installation with a
--values
file, but it does not provide the default chart location or repository used by
abctl
if these options are not specified [see abctl reference](https://docs.airbyte.com/platform/deploying-airbyte/abctl#reference). If you need to know the exact Helm chart being used, you may need to check the
abctl
command you are running (for any explicit
--chart
or
--chart-version
flags) or consult the
abctl
tool's documentation or source code for defaults. The knowledge sources provided do not contain further details on this.
i
@kapa.ai where can I find what values can I add to values.yaml I pass to abctl?
k
A message from kapa.ai
You can find the full list of values you can add to your
values.yaml
file for Airbyte in the official documentation under the Values.yaml reference section. The documentation provides a complete reference for the version of the Helm chart you are using. For Helm chart V2 (recommended for new deployments), see: - [Values.yaml reference (Next)](https://docs.airbyte.com/platform/next/deploying-airbyte/values) - [Values.yaml reference (Current)](https://docs.airbyte.com/platform/deploying-airbyte/values) Both pages also link to the full example
values.yaml
files on GitHub for each chart version. You should use the one that matches your Helm chart version. For example, for Helm chart V2, you can review the [full example on GitHub](https://github.com/airbytehq/airbyte-platform/blob/main/charts/v2/airbyte/values.yaml) [Values.yaml reference](https://docs.airbyte.com/platform/next/deploying-airbyte/values). These resources will show you all the configuration options you can set in your
values.yaml
file that you pass to
abctl
.