Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use_credential_provider does not work when using a k8s cluster role binding #321

Open
JRocki opened this issue Jan 16, 2024 · 3 comments
Open

Comments

@JRocki
Copy link

JRocki commented Jan 16, 2024

Hello! I'm running dbt-duckdb on a k8s cluster via EKS that has a cluster role binding rather than using an IAM role. The project uses parquet files on S3 as the data source. It seems that using use_credential_provider does not work for role bindings as it leads to an HTTP 400 error. I can work around this, but I'm wondering if there is an alternative setting the botocore session instead of using aws_creds = session.get_credentials().get_frozen_credentials() as it is here.

example code:

temp_project:
  target: dev
  outputs:
    dev:
      type: duckdb
      path: "/temp.duckdb"
      extensions:
        - httpfs
        - parquet
      use_credential_provider: aws
@jwills
Copy link
Collaborator

jwills commented Jan 16, 2024

Ah, there isn't one right now, but I would be happy to help add one if I can-- is there somewhere I can read up on what is needed to make this work? Or can you just tell me?

@JRocki
Copy link
Author

JRocki commented Jan 17, 2024

I am also currently looking into this and trying to track down how boto3 handles it. If I can find something, I will send it your way or I will open a PR. This is a great package and I'd be happy to help contribute if I can.

@nclaeys
Copy link

nclaeys commented Feb 28, 2024

@JRocki what do you mean with using cluster role binding for k8s? The use credential provider uses boto3 behind the scenes. So it uses the standard aws credential provider chain. If it does not work, this means that your configuration is probably wrong or unsupported by boto3. Can you give more details on your configuration/settings?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants