Skip to content

Add cert support to Trino target hook - #183

Merged
tomasfarias merged 1 commit into
tomasfarias:masterfrom
whitepowder:feat/trino-cert-support
Sep 17, 2026
Merged

tomasfarias merged 1 commit into
tomasfarias:masterfrom
whitepowder:feat/trino-cert-support

Conversation

@whitepowder

Copy link
Copy Markdown
Contributor

Description

Add support for passing the cert parameter from Airflow Trino connection extras to the generated dbt Trino profile.

This is useful when connecting to Trino through an endpoint with a self-signed certificate. In such environments it can be necessary to disable certificate verification with cert: false.

Currently, cert configured in the Airflow connection is not propagated to the generated dbt target, so there is no way to configure this behavior through the Airflow connection.

Existing verify support is preserved.

Changes

  • Add cert to DbtTrinoHook.conn_extra_params
  • Add test coverage for cert: false

Testing

Trino hook tests pass:

2 passed

@whitepowder

Copy link
Copy Markdown
Contributor Author

@tomasfarias hey! Whenever you have a moment, could you take a quick look at this small PR? It's ready to be merged

@tomasfarias

Copy link
Copy Markdown
Owner

Hello @whitepowder, thanks for the PR. I'll take a look later today. Sorry for the delay here, been under a lot of work lately.

@tomasfarias tomasfarias left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Small, pretty low risk change.

@tomasfarias
tomasfarias merged commit cf2b017 into tomasfarias:master Sep 17, 2026
20 checks passed
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

Successfully merging this pull request may close these issues.

2 participants