Commit 991915f
feat: Support for Base64 String Private key (#341)
This pull request includes significant updates to the Meltano
configuration and enhancements to the Snowflake connector. The changes
improve configuration management and add new functionality for handling
private keys.
### Meltano Configuration Updates:
* Added `default_environment` and `environments` to specify deployment
environments. (`meltano.yml`:
[meltano.ymlL3-R114](diffhunk://#diff-6d0acc7374df2a40ec960634f967ae63128eac507abd089a68b8787e9433ddf2L3-R114))
* Updated `target-snowflake` loader settings to include new validation
groups and reorganized settings for better readability. (`meltano.yml`:
[meltano.ymlL3-R114](diffhunk://#diff-6d0acc7374df2a40ec960634f967ae63128eac507abd089a68b8787e9433ddf2L3-R114))
### Snowflake Connector Enhancements:
* Added imports for `base64`, `binascii`, and `warn` to handle private
key formats and deprecations. (`target_snowflake/connector.py`:
[target_snowflake/connector.pyR3-R10](diffhunk://#diff-9d2a86f3e673ca747a3f08bc77045ce73dbe3ead0713d3292a622091e7060cc8R3-R10))
* Introduced `SingerSDKDeprecationWarning` to warn users about using
private key pem formats. (`target_snowflake/connector.py`:
[target_snowflake/connector.pyR19](diffhunk://#diff-9d2a86f3e673ca747a3f08bc77045ce73dbe3ead0713d3292a622091e7060cc8R19))
* Enhanced `get_private_key` method to support both PEM and base64
encoded private keys, with appropriate logging and error handling.
(`target_snowflake/connector.py`:
[target_snowflake/connector.pyL131-R151](diffhunk://#diff-9d2a86f3e673ca747a3f08bc77045ce73dbe3ead0713d3292a622091e7060cc8L131-R151))
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Edgar Ramírez Mondragón <edgarrm358@gmail.com>1 parent 1d10cd4 commit 991915f
2 files changed
+92
-62
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
4 | 7 | | |
5 | | - | |
6 | 8 | | |
7 | | - | |
8 | | - | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | | - | |
15 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
16 | 33 | | |
17 | | - | |
| 34 | + | |
18 | 35 | | |
19 | 36 | | |
20 | | - | |
21 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
22 | 40 | | |
23 | | - | |
24 | | - | |
25 | 41 | | |
26 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
27 | 45 | | |
28 | | - | |
29 | | - | |
30 | 46 | | |
31 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
32 | 50 | | |
33 | 51 | | |
34 | | - | |
35 | | - | |
| 52 | + | |
| 53 | + | |
36 | 54 | | |
37 | 55 | | |
38 | | - | |
39 | | - | |
40 | | - | |
| 56 | + | |
| 57 | + | |
41 | 58 | | |
42 | 59 | | |
43 | | - | |
44 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
45 | 63 | | |
46 | 64 | | |
47 | | - | |
48 | | - | |
49 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
50 | 68 | | |
51 | | - | |
52 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
53 | 72 | | |
54 | 73 | | |
55 | | - | |
56 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
57 | 81 | | |
58 | | - | |
59 | | - | |
60 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
61 | 85 | | |
62 | 86 | | |
63 | | - | |
64 | | - | |
| 87 | + | |
| 88 | + | |
65 | 89 | | |
66 | 90 | | |
67 | | - | |
68 | | - | |
| 91 | + | |
| 92 | + | |
69 | 93 | | |
70 | 94 | | |
71 | | - | |
72 | | - | |
73 | | - | |
| 95 | + | |
| 96 | + | |
74 | 97 | | |
75 | 98 | | |
76 | | - | |
77 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
78 | 102 | | |
79 | | - | |
80 | | - | |
81 | 103 | | |
82 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
83 | 108 | | |
84 | 109 | | |
85 | | - | |
86 | | - | |
| 110 | + | |
| 111 | + | |
87 | 112 | | |
88 | 113 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 114 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| |||
128 | 131 | | |
129 | 132 | | |
130 | 133 | | |
131 | | - | |
132 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
133 | 151 | | |
134 | 152 | | |
135 | 153 | | |
| |||
0 commit comments