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

Update connections.py #49

Merged
merged 7 commits into from
Nov 19, 2021
Merged

Update connections.py #49

merged 7 commits into from
Nov 19, 2021

Conversation

JoshuaHuntley
Copy link
Contributor

…to dbt.

resolves #31
Resolves issues when the Snowflake OCSP server is not reachable and the dbt user would like to run commands without checking the OCSP server. OCSP failures/inaccessibilitiy are possible due to network routing issues or when corporate network security has exposed Snowflake (especially in privatelink) but not the OCSP server.

Description

Exposes the insecure_mode option in the Snowflake python connector to dbt via the profile.yml file.

Checklist

  • [X ] I have signed the CLA
  • [ X] I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • [X ] I have updated the CHANGELOG.md and added information about my change to the "dbt-snowflake next" section.

Resolves issues when the Snowflake OCSP server is not reachable and the dbt user would like to run commands without checking the OCSP server. OCSP failures/inaccessibilitiy are possible due to network routing issues or when corporate network security has exposed Snowflake (especially in privatelink) but not the OCSP server.
Adding changelog information
@jtcohen6
Copy link
Contributor

Thanks for reopening the PR @JoshuaHuntley! The change here looks good. I'm just going to close and reopen to trigger tests, now that I've added the ok to test label

@jtcohen6 jtcohen6 closed this Nov 16, 2021
@jtcohen6 jtcohen6 reopened this Nov 16, 2021
Copy link
Contributor

@jtcohen6 jtcohen6 left a comment

Choose a reason for hiding this comment

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

There are a few failing unit tests. To fix, you'll just need to add insecure_mode=False within the mock.call() arguments for each of these tests.

CHANGELOG.md Outdated Show resolved Hide resolved
JoshuaHuntley and others added 5 commits November 17, 2021 10:54
Co-authored-by: Jeremy Cohen <jtcohen6@gmail.com>
Updated changelog and unit tests as requested.
Copy link
Contributor

@jtcohen6 jtcohen6 left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution @JoshuaHuntley!

@jtcohen6 jtcohen6 merged commit e1ee1c8 into dbt-labs:main Nov 19, 2021
leahwicz added a commit that referenced this pull request Dec 3, 2021
* Slack alerts for failed nightly tests (#50)

* Fix: Support individual query tag configuration for Seeds and Snapshots (#48)

* Add Query Tag for Seed

* Add Query Tag for Snapshots

* Add Changelog for #48

* Add Snapshot with Query Tag test

* Add Seed with Query Tag test

* Update connections.py (#49)

* Update connections.py

Resolves issues when the Snowflake OCSP server is not reachable and the dbt user would like to run commands without checking the OCSP server. OCSP failures/inaccessibilitiy are possible due to network routing issues or when corporate network security has exposed Snowflake (especially in privatelink) but not the OCSP server.

* Update CHANGELOG.md

Adding changelog information

* Update CHANGELOG.md

Co-authored-by: Jeremy Cohen <jtcohen6@gmail.com>

* Update changelog and unit test

Updated changelog and unit tests as requested.

* Fix typo

Co-authored-by: Jeremy Cohen <jtcohen6@gmail.com>
Co-authored-by: Jeremy Cohen <jeremy@dbtlabs.com>

* Add column comments to Snowflake views (#53)

* Add column comments to Snowflake views
* Update create_view_as macro to include column comments
* Add test for column-level view comments
* Add testing for column comments with non-lowercase column names

* Organizing adapter macros for column persistence

* Refactor query tag tests (#57)

* Refactor query tag tests

* Try this

* Try storing failures, too

* Keep trying

* Try it this way

* Bumping version to 1.0.0rc2 (#56)

* Bumping version to 1.0.0rc2

* Update changelog

Co-authored-by: Github Build Bot <buildbot@fishtownanalytics.com>
Co-authored-by: Jeremy Cohen <jeremy@dbtlabs.com>

Co-authored-by: Anton Huck <anthu@users.noreply.github.com>
Co-authored-by: R. Joshua Huntley <JoshuaHuntley@users.noreply.github.com>
Co-authored-by: Jeremy Cohen <jtcohen6@gmail.com>
Co-authored-by: Jeremy Cohen <jeremy@dbtlabs.com>
Co-authored-by: Spencer Taylor <85514383+spencer-taylor-workrise@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Github Build Bot <buildbot@fishtownanalytics.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failure to resolve Snowflake OCSP server creates issues with dbt
2 participants