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

Default root cert for RDS warehouses if not provided during warehouse creation #922

Open
fatchat opened this issue Dec 19, 2024 · 2 comments
Assignees
Labels

Comments

@fatchat
Copy link
Contributor

fatchat commented Dec 19, 2024

When setting up an RDS warehouse, our destination doesn't require an SSL certificate if the ssl mode is set to allow. We don't know how Airbyte connects to the warehouse, but dbt and edr need to send a certificate in order to connect

If the warehouse is RDS we can using amazon's global bundle, which is on our production machine's disk at /home/ddp/global-bundle.pem (which we downloaded from https://truststore.pki.rds.amazonaws.com/global/global-bundle.pem)

if the sslmode is anything other than disable we should insert an sslrootcert key into

  • the secrets manager's warehouse credentials
  • the dbt cli profile
@fatchat fatchat moved this to Backlog in Dalgo 2025 Jan 23, 2025
@fatchat fatchat self-assigned this Jan 23, 2025
@fatchat
Copy link
Contributor Author

fatchat commented Jan 23, 2025

before doing this, will try copying the global-bundle.pem file into /home/ddp/.postgresql/root.crt

this is where dbt looks by default

there was already a root.crt in that location which i renamed to root.crt.backup

@fatchat fatchat moved this from Backlog to In review in Dalgo 2025 Jan 23, 2025
@fatchat fatchat added the triage label Jan 23, 2025
@fatchat
Copy link
Contributor Author

fatchat commented Jan 24, 2025

at airbytehelpers.py:885

we might insert

        if (
            "rds.amazonaws.com" in dbt_credentials["host"]
            and dbt_credentials["ssl_mode"]["mode"] == "require"
            and "sslrootcert" not in dbt_credentials
        ):
            dbt_credentials["sslrootcert"] = "/home/ddp/global-bundle.pem"  # make this an ENV var

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In review
Development

No branches or pull requests

1 participant