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

CT-2112: bump snowflake connector python #476

Merged
merged 33 commits into from
Mar 8, 2023

Conversation

mikealfare
Copy link
Contributor

@mikealfare mikealfare commented Feb 17, 2023

resolves #469, #393, #371

Description

Patches snowflake-connector-python vulnerability https://www.cve.org/CVERecord?id=CVE-2022-42965.

  • Update snowflake-connector-python to 3.0
  • Remove explicit dependencies on cryptography and requests; these are covered in dbt-core and snowflake-connector-python -> reduces potential for version conflicts
  • Add several docker files for development purposes to troubleshoot failed tests
  • Fixed test case that was failing due to failed teardown

Note: This will need to be backported into 1.4.latest, 1.3.latest, 1.2.latest, and 1.1.latest

We suspect this will also resolve issue #393 as that was tied back to an older version of snowflake-connector-python. The priority is to resolve the vulnerability, but testing will be done for this issue as well. If there is additional work to be done for #393, a new PR will be opened to cover the gap.

Checklist

@cla-bot cla-bot bot added the cla:yes label Feb 17, 2023
@mikealfare mikealfare marked this pull request as draft February 17, 2023 17:38
.changes/unreleased/Dependencies-20230216-093128.yaml Outdated Show resolved Hide resolved
setup.py Outdated Show resolved Hide resolved
Copy link
Contributor

@dbeatty10 dbeatty10 left a comment

Choose a reason for hiding this comment

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

We need to finalize the upper and lower bounds before merging.

Adding this blocking comment so we can be extra certain the merged PR has the upper and lower bounds that align with the final decision.

setup.py Outdated Show resolved Hide resolved
mikealfare and others added 15 commits February 22, 2023 15:09
…-python' into dbeatty/bump-snowflake-connector-python
…-python' into dbeatty/bump-snowflake-connector-python
… as expected, but on the vulnerable version
…-python' into dbeatty/bump-snowflake-connector-python
@mikealfare mikealfare self-assigned this Mar 4, 2023
Copy link
Contributor

@dbeatty10 dbeatty10 left a comment

Choose a reason for hiding this comment

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

Version range for snowflake-connector-python looks good 👍

Nice that you were also able to:

  • Remove explicit dependencies for cryptography and requests
  • Greatly simplify test_simple_seed.py

@mikealfare mikealfare merged commit 967a8e9 into main Mar 8, 2023
@mikealfare mikealfare deleted the dbeatty/bump-snowflake-connector-python branch March 8, 2023 15:11
mikealfare added a commit that referenced this pull request Mar 8, 2023
* Raise the upper bound to be the next major version of `snowflake-connector-python`
* Changelog entry
* updated changelog to show specific version
* added changelog for updated build dependencies

---------

Co-authored-by: Doug Beatty <[email protected]>
Co-authored-by: Doug Beatty <[email protected]>
mikealfare added a commit that referenced this pull request Mar 8, 2023
* Raise the upper bound to be the next major version of `snowflake-connector-python`
* Changelog entry
* Update .changes/unreleased/Dependencies-20230216-093128.yaml
* updated changelog to show specific version
* added changelog for updated build dependencies

---------

Co-authored-by: Doug Beatty <[email protected]>
Co-authored-by: Doug Beatty <[email protected]>
mikealfare added a commit that referenced this pull request Mar 8, 2023
* Raise the upper bound to be the next major version of `snowflake-connector-python`
* Changelog entry
* Update .changes/unreleased/Dependencies-20230216-093128.yaml
* updated changelog to show specific version
* added changelog for updated build dependencies

---------

Co-authored-by: Doug Beatty <[email protected]>
Co-authored-by: Doug Beatty <[email protected]>
mikealfare added a commit that referenced this pull request Mar 8, 2023
* Raise the upper bound to be the next major version of `snowflake-connector-python`
* Changelog entry
* Update .changes/unreleased/Dependencies-20230216-093128.yaml
* created ubuntu-py38 image for local integration testing, added makefile instructions for easy deployment
* added debian image
* added docker dev-environment image
* added additional python versions in ubuntu and debian containers, added warning readme file
* resolved five of seven failing tests
* resolved TestSimpleBigSeedBatched.test_big_batched_seed() test failure
* updated changelog to show specific version
* added changelog for updated build dependencies

---------

Co-authored-by: Doug Beatty <[email protected]>
Co-authored-by: Doug Beatty <[email protected]>
mikealfare added a commit that referenced this pull request Mar 9, 2023
* Raise the upper bound to be the next major version of `snowflake-connector-python`
* Changelog entry

---------

Co-authored-by: Doug Beatty <[email protected]>
Co-authored-by: Doug Beatty <[email protected]>
mikealfare added a commit that referenced this pull request Mar 9, 2023
* Raise the upper bound to be the next major version of `snowflake-connector-python`
* Changelog entry

---------

Co-authored-by: Doug Beatty <[email protected]>
Co-authored-by: Doug Beatty <[email protected]>
mikealfare added a commit that referenced this pull request Mar 9, 2023
* Raise the upper bound to be the next major version of `snowflake-connector-python`
* Changelog entry

---------

Co-authored-by: Doug Beatty <[email protected]>
Co-authored-by: Doug Beatty <[email protected]>
mikealfare added a commit that referenced this pull request Mar 9, 2023
* Raise the upper bound to be the next major version of `snowflake-connector-python`
* Changelog entry

---------

Co-authored-by: Doug Beatty <[email protected]>
Co-authored-by: Doug Beatty <[email protected]>
@mikealfare mikealfare mentioned this pull request Mar 9, 2023
6 tasks
mikealfare added a commit that referenced this pull request Mar 9, 2023
* updated changelog entry
* updated changelog entry file name
mikealfare added a commit that referenced this pull request Mar 9, 2023
* updated changelog entry
* updated changelog entry file name
mikealfare added a commit that referenced this pull request Mar 9, 2023
* updated changelog entry
* updated changelog entry file name
mikealfare added a commit that referenced this pull request Mar 9, 2023
* updated changelog entry
* updated changelog entry file name
mikealfare added a commit that referenced this pull request Mar 9, 2023
* updated changelog entry
* updated changelog entry file name
mikealfare added a commit that referenced this pull request Mar 9, 2023
* updated changelog entry
* updated changelog entry file name
mikealfare added a commit that referenced this pull request Mar 9, 2023
* updated changelog entry
* updated changelog entry file name
mikealfare added a commit that referenced this pull request Mar 9, 2023
* updated changelog entry
* updated changelog entry file name
mikealfare added a commit that referenced this pull request Mar 9, 2023
* updated changelog entry
* updated changelog entry file name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants