Dmytro Shamenko
08/19/2025, 8:05 AM2025-08-19 07:51:24,798 [scheduler-executor-thread-1] ERROR i.a.s.a.ApiHelper(execute):47 - Unexpected Exception
com.amazonaws.SdkClientException: Unable to load AWS credentials from any provider in the chain: [EnvironmentVariableCredentialsProvider: Unable to load AWS credentials from environment variables (AWS_ACCESS_KEY_ID (or AWS_ACCESS_KEY) and AWS_SECRET_KEY (or AWS_SECRET_ACCESS_KEY)), SystemPropertiesCredentialsProvider: Unable to load AWS credentials from Java system properties (aws.accessKeyId and aws.secretKey), WebIdentityTokenCredentialsProvider: Unable to find a region via the region provider chain. Must provide an explicit region in the builder or setup environment to supply a region., com.amazonaws.auth.profile.ProfileCredentialsProvider@1750107f: profile file cannot be null, com.amazonaws.auth.EC2ContainerCredentialsProviderWrapper@39a98441: Unauthorized (Service: null; Status Code: 401; Error Code: null; Request ID: null; Proxy: null)]
at com.amazonaws.auth.AWSCredentialsProviderChain.getCredentials(AWSCredentialsProviderChain.java:142)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.getCredentialsFromContext(AmazonHttpClient.java:1295)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.runBeforeRequestHandlers(AmazonHttpClient.java:869)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.doExecute(AmazonHttpClient.java:818)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeWithTimer(AmazonHttpClient.java:805)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.execute(AmazonHttpClient.java:779)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.access$500(AmazonHttpClient.java:735)
at com.amazonaws.http.AmazonHttpClient$RequestExecutionBuilderImpl.execute(AmazonHttpClient.java:717)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:581)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:559)
at com.amazonaws.services.secretsmanager.AWSSecretsManagerClient.doInvoke(AWSSecretsManagerClient.java:2911)
at com.amazonaws.services.secretsmanager.AWSSecretsManagerClient.invoke(AWSSecretsManagerClient.java:2878)
at com.amazonaws.services.secretsmanager.AWSSecretsManagerClient.invoke(AWSSecretsManagerClient.java:2867)
at com.amazonaws.services.secretsmanager.AWSSecretsManagerClient.executeDescribeSecret(AWSSecretsManagerClient.java:898)
at com.amazonaws.services.secretsmanager.AWSSecretsManagerClient.describeSecret(AWSSecretsManagerClient.java:867)
at com.amazonaws.secretsmanager.caching.cache.SecretCacheItem.executeRefresh(SecretCacheItem.java:102)
at com.amazonaws.secretsmanager.caching.cache.SecretCacheItem.executeRefresh(SecretCacheItem.java:32)
at com.amazonaws.secretsmanager.caching.cache.SecretCacheObject.refresh(SecretCacheObject.java:188)
at com.amazonaws.secretsmanager.caching.cache.SecretCacheObject.getSecretValue(SecretCacheObject.java:286)
at com.amazonaws.secretsmanager.caching.SecretCache.getSecretString(SecretCache.java:123)
at io.airbyte.config.secrets.persistence.AwsSecretManagerPersistence.read(AwsSecretManagerPersistence.kt:52)
at io.airbyte.config.secrets.persistence.AwsSecretManagerPersistence.write(AwsSecretManagerPersistence.kt:77)
at io.airbyte.config.secrets.persistence.SecretPersistence$DefaultImpls.writeWithExpiry(SecretPersistence.kt:58)
at io.airbyte.config.secrets.persistence.AwsSecretManagerPersistence.writeWithExpiry(AwsSecretManagerPersistence.kt:41)
at io.airbyte.config.secrets.SecretsRepositoryWriter.splitSecretConfig(SecretsRepositoryWriter.kt:358)
at io.airbyte.config.secrets.SecretsRepositoryWriter.createEphemeralFromConfig(SecretsRepositoryWriter.kt:334)
at io.airbyte.commons.server.helpers.SecretSanitizer.sanitizePartialConfig(SecretSanitizer.kt:46)
at io.airbyte.commons.server.handlers.SchedulerHandler.checkSourceConnectionFromSourceCreate(SchedulerHandler.java:227)
at io.airbyte.server.apis.controllers.SchedulerApiController.executeSourceCheckConnection$lambda$1(SchedulerApiController.kt:45)
at io.airbyte.server.apis.ApiHelper.execute(ApiHelper.kt:32)
at io.airbyte.server.apis.controllers.SchedulerApiController.executeSourceCheckConnection(SchedulerApiController.kt:45)
at io.airbyte.server.apis.controllers.$SchedulerApiController$Definition$Exec.dispatch(Unknown Source)
at io.micronaut.context.AbstractExecutableMethodsDefinition$DispatchedExecutableMethod.invokeUnsafe(AbstractExecutableMethodsDefinition.java:461)
at io.micronaut.context.DefaultBeanContext$BeanContextUnsafeExecutionHandle.invokeUnsafe(DefaultBeanContext.java:4419)
at io.micronaut.web.router.AbstractRouteMatch.execute(AbstractRouteMatch.java:272)
at io.micronaut.web.router.DefaultUriRouteMatch.execute(DefaultUriRouteMatch.java:38)
at io.micronaut.http.server.RouteExecutor.executeRouteAndConvertBody(RouteExecutor.java:493)
at io.micronaut.http.server.RouteExecutor.lambda$callRoute$5(RouteExecutor.java:470)
at io.micronaut.core.execution.ExecutionFlow.lambda$async$0(ExecutionFlow.java:92)
at io.micronaut.core.propagation.PropagatedContext.lambda$wrap$3(PropagatedContext.java:211)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)
Where S3 with same credentials works well.kapa.ai
08/19/2025, 8:05 AMauthenticationType: instanceProfile with Airbyte on AWS EKS to access AWS Secrets Manager is typically due to one (or more) of the following issues: 1. Missing or Misconfigured IAM Role/Service Account When using instanceProfile, Airbyte expects the EKS nodes (or the Kubernetes Service Account, if using IRSA) to have an IAM role attached with the necessary permissions to access AWS Secrets Manager. If this role is missing, not attached, or lacks the required policies, authentication will fail. The error message indicates that none of the credential providers in the chain could supply valid credentials, and the EC2/EKS provider was unauthorized. 2. Region Not Set or Not Propagated The error also mentions: > Unable to find a region via the region provider chain. Must provide an explicit region in the builder or setup environment to supply a region. This means that the AWS SDK inside Airbyte cannot determine which AWS region to use. You must explicitly set the region in your values.yaml under the awsSecretManager configuration: yaml global: secretsManager: type: awsSecretManager secretName: "airbyte-config-secrets" awsSecretManager: region: <aws-region> authenticationType: instanceProfile If the region is not set, or if the environment variables/configuration do not propagate it, authentication will fail with this error. This is a common pitfall, as S3 clients may infer the region from the bucket, but Secrets Manager requires it to be set explicitly in the configuration or environment. 3. IRSA (IAM Roles for Service Accounts) Not Configured If you are using IRSA, ensure that: - The Kubernetes Service Account used by Airbyte pods is annotated with the correct IAM role. - The IAM role has the necessary Secrets Manager permissions (see [AWS Secret Manager Policy example](https://docs.airbyte.com/platform/deploying-airbyte/infrastructure/aws)). 4. Permissions The IAM role must have permissions for actions like secretsmanager:GetSecretValue, secretsmanager:CreateSecret, etc., and the correct resource conditions (e.g., tags) as shown in the documentation: json { "Effect": "Allow", "Action": [ "secretsmanager:GetSecretValue", "secretsmanager:CreateSecret", "secretsmanager:ListSecrets", "secretsmanager:DescribeSecret", "secretsmanager:TagResource", "secretsmanager:UpdateSecret" ], "Resource": ["*"], "Condition": { "ForAllValues:StringEquals": { "secretsmanager:ResourceTag/AirbyteManaged": "true" } } } [See full example](https://docs.airbyte.com/platform/deploying-airbyte/infrastructure/aws) Summary of what to check: - Ensure the region is explicitly set in your Airbyte Helm values. - Confirm the EKS node role or Service Account IAM role has the correct permissions. - If using IRSA, verify the Service Account is annotated and mapped to the IAM role. - Double-check that the role has the required Secrets Manager permissions. References: - [Configuring External Connector Secret Management](https://docs.airbyte.com/platform/deploying-airbyte/integrations/secrets#values) - [AWS Infrastructure Setup](https://docs.airbyte.com/platform/deploying-airbyte/infrastructure/aws) If you have set the region and permissions correctly and still face issues, please provide your values.yaml and details about your IAM/IRSA setup for further troubleshooting.Dmytro Shamenko
08/19/2025, 8:09 AMsecretsManager:
enabled: true
type: AWS_SECRET_MANAGER
awsSecretManager:
region: ${aws_region}
authenticationType: instanceProfile
• Policy allowing SM.
statement {
sid = "SecretsManagerAccess"
effect = "Allow"
actions = [
"secretsmanager:GetSecretValue",
"secretsmanager:CreateSecret",
"secretsmanager:ListSecrets",
"secretsmanager:DescribeSecret",
"secretsmanager:TagResource",
"secretsmanager:UpdateSecret"
]
resources = [
"*"
]
condition {
test = "ForAllValues:StringEquals"
variable = "secretsmanager:ResourceTag/AirbyteManaged"
values = ["true"]
}
}kapa.ai
08/19/2025, 8:09 AMkapa.ai
08/19/2025, 8:10 AMauthenticationType: instanceProfile with AWS Secrets Manager on EKS appears correct, assuming IRSA is properly set up and the IAM policy is attached as described. However, the error message you shared indicates two main issues: 1. Unable to load AWS credentials from any provider in the chain 2. Unable to find a region via the region provider chain From the documentation, the following points are emphasized: - The region must be explicitly set in your configuration. In your values.yaml, you have: yaml awsSecretManager: region: ${aws_region} authenticationType: instanceProfile Ensure that ${aws_region} is being correctly interpolated and is not left as a literal string. The region must be a valid AWS region string (e.g., us-east-1) and not an environment variable placeholder unless your deployment system replaces it at runtime [Configuring External Connector Secret Management](https://docs.airbyte.com/platform/enterprise-setup/implementation-guide#configuring-external-connector-secret-management). - The IAM policy you provided matches the recommended policy in the documentation, including the condition on the AirbyteManaged tag. However, if the secrets you are trying to access do not have this tag, access will be denied. Double-check that the secrets in AWS Secrets Manager have the tag AirbyteManaged=true as required by the policy [AWS Policies Appendix](https://docs.airbyte.com/platform/enterprise-setup/implementation-guide#aws-policies-appendix). - The documentation does not mention any additional required configuration for instanceProfile beyond what you have provided. It does, however, note that the region must be set and that the compute infrastructure (EKS nodes or service account) must have the correct permissions [Secret Management Values](https://docs.airbyte.com/platform/deploying-airbyte/integrations/secrets#values). Summary: If IRSA is configured correctly, the IAM policy is attached, and the region is set explicitly (not as an unresolved variable), then according to the documentation, Airbyte should be able to access AWS Secrets Manager using instanceProfile. If you are still encountering issues, the knowledge sources do not provide further troubleshooting steps for this specific scenario. You may want to verify that the region is not being left as a placeholder and that the required tags are present on your secrets. If these checks do not resolve the issue, the knowledge sources do not contain enough information to provide a more specific answer.Dmytro Shamenko
08/19/2025, 8:12 AMAWS_AUTHENTICATION_TYPE: instanceProfile
AWS_DEFAULT_REGION: eu-west-2
@kapa.aikapa.ai
08/19/2025, 8:12 AMkapa.ai
08/19/2025, 8:12 AMAWS_AUTHENTICATION_TYPE: instanceProfile - AWS_DEFAULT_REGION: eu-west-2 and that IRSA and IAM policies are correctly set up, your setup matches the requirements described in the Airbyte documentation for using AWS Secrets Manager with instanceProfile authentication on EKS. The documentation specifies that you must set the region explicitly and ensure the compute infrastructure (EKS nodes or service account) has the necessary permissions, which you have done [Configuring External Connector Secret Management](https://docs.airbyte.com/platform/enterprise-setup/implementation-guide#configuring-external-connector-secret-management). However, your error message still indicates that the AWS SDK is unable to find credentials or a region, even though both are set in your environment. The documentation does not provide further troubleshooting steps for this scenario. It does not mention any additional required environment variables or configuration beyond what you have already set. Summary: Based on the knowledge sources, your configuration appears correct. If you are still experiencing issues, the documentation does not provide enough information to diagnose further. You may need to consult AWS or Airbyte support for more advanced troubleshooting, as the knowledge sources do not cover this specific failure mode.Dmytro Shamenko
08/19/2025, 8:14 AMAWS_SECRET_MANAGER_REGION: eu-west-2
SECRET_PERSISTENCE: AWS_SECRET_MANAGER
AWS_ASSUME_ROLE_SECRET_NAME: airbyte-config-secrets
@kapa.aikapa.ai
08/19/2025, 8:14 AMkapa.ai
08/19/2025, 8:15 AMregion: eu-west-2 in your values.yaml or as an environment variable). - Setting SECRET_PERSISTENCE: AWS_SECRET_MANAGER (or type: awsSecretManager in Helm values). - If using IRSA, ensuring the Kubernetes Service Account is properly annotated and the IAM role has the correct permissions. - The IAM policy should allow the necessary Secrets Manager actions, and the secrets should have the required tags if your policy uses conditions. Your provided environment variables: AWS_SECRET_MANAGER_REGION: eu-west-2 SECRET_PERSISTENCE: AWS_SECRET_MANAGER AWS_ASSUME_ROLE_SECRET_NAME: airbyte-config-secrets are not directly referenced in the official Airbyte documentation for configuring AWS Secrets Manager. The documentation and examples consistently use: - region under the awsSecretManager configuration in values.yaml - authenticationType: instanceProfile or credentials - The Kubernetes secret name (e.g., airbyte-config-secrets) for storing credentials if not using instance profile There is no mention in the knowledge sources of using AWS_SECRET_MANAGER_REGION or AWS_ASSUME_ROLE_SECRET_NAME as required or supported environment variables for configuring AWS Secrets Manager in Airbyte. The required region should be set as region in the awsSecretManager block of your Helm values or as AWS_DEFAULT_REGION in the environment, as you have already done. Summary: The knowledge sources do not mention AWS_SECRET_MANAGER_REGION or AWS_ASSUME_ROLE_SECRET_NAME as required or supported variables for Airbyte's AWS Secrets Manager integration. The correct approach is to set the region in your values.yaml and ensure your IAM/IRSA setup is correct [Configuring External Connector Secret Management](https://docs.airbyte.com/platform/enterprise-setup/implementation-guide#configuring-external-connector-secret-management) [Secret Management Values](https://docs.airbyte.com/platform/deploying-airbyte/integrations/secrets#values). If you are still experiencing issues, the knowledge sources do not provide further troubleshooting steps for these specific environment variables.Dmytro Shamenko
08/19/2025, 8:16 AMauthenticationType: instanceProfile or credentials
@kapa.ai
Can I set credentials instead for awsSecretsManager to force different chain?kapa.ai
08/19/2025, 8:16 AMkapa.ai
08/19/2025, 8:16 AMauthenticationType: instanceProfile and authenticationType: credentials for AWS Secrets Manager in Airbyte is as follows: - instanceProfile: Airbyte will use the IAM role attached to the compute infrastructure (such as the EKS node or the Kubernetes Service Account via IRSA) to authenticate with AWS. No explicit AWS credentials are provided in the configuration; instead, Airbyte relies on the environment (the instance profile or service account role) to provide the necessary permissions. This is recommended for production environments on AWS, as it avoids hardcoding credentials and leverages AWS's security best practices. - credentials: Airbyte will use explicit AWS credentials (access key ID and secret access key) provided via a Kubernetes secret. You must create a Kubernetes secret (by default, airbyte-config-secrets) containing your AWS access key ID and secret access key, and reference these in your configuration. This method is more static and is generally used for testing or in environments where instance profiles are not available. Example for `credentials`: yaml global: secretsManager: type: awsSecretManager secretName: "airbyte-config-secrets" awsSecretManager: region: <aws-region> authenticationType: credentials accessKeyIdSecretKey: <your-access-key-id-key> secretAccessKeySecretKey: <your-secret-access-key-key> You must ensure the referenced keys exist in your Kubernetes secret. Can you set credentials instead to force a different chain? Yes, you can set authenticationType: credentials to force Airbyte to use the credentials provided in your Kubernetes secret, rather than relying on the instance profile. This will change the AWS SDK's credential provider chain to use the static credentials you supply [Secret Management Values](https://docs.airbyte.com/platform/deploying-airbyte/integrations/secrets#values). References: - [Secret Management Values](https://docs.airbyte.com/platform/deploying-airbyte/integrations/secrets#values) - [Configuring External Connector Secret Management](https://docs.airbyte.com/platform/enterprise-setup/implementation-guide#configuring-external-connector-secret-management) If you switch to credentials, make sure your Kubernetes secret is set up correctly with the required keys.Dmytro Shamenko
08/19/2025, 8:19 AMsecretsManager:
enabled: falsekapa.ai
08/19/2025, 8:19 AMkapa.ai
08/19/2025, 8:19 AMauthenticationType: instanceProfile. This tells Airbyte to use the IAM role associated with the Kubernetes Service Account for AWS Secrets Manager access, rather than static credentials. This is the recommended approach for production on EKS, as described in the documentation [Configuring External Connector Secret Management](https://docs.airbyte.com/platform/enterprise-setup/implementation-guide#configuring-external-connector-secret-management). Regarding the enabled: false setting: yaml secretsManager: enabled: false The knowledge sources mention this field in some configuration examples, but do not explicitly document its effect. In the context of the provided examples, it appears that setting enabled: false would disable the use of an external secrets manager, causing Airbyte to default to storing secrets as Kubernetes secrets instead of using AWS Secrets Manager or another external provider. However, since the documentation does not clearly define the behavior of the enabled field, there is some uncertainty here. Summary: - To use a Kubernetes Service Account (IRSA), set authenticationType: instanceProfile. - Setting secretsManager.enabled: false likely disables external secret management, but the knowledge sources do not explicitly confirm this or detail its exact effect. If you need to be certain about the behavior of enabled: false, you may want to test this setting or consult Airbyte's official support, as the documentation does not provide a definitive answer.Chiranga
08/24/2026, 5:05 AMsecretsManager:
enabled: false
type: "" # one of: VAULT, GOOGLE_SECRET_MANAGER, AWS_SECRET_MANAGER, AZURE_KEY_VAULT, TESTING_CONFIG_DB_TABLE