rb_snowflake_client 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +11 -11
- data/README.md +2 -1
- data/lib/ruby_snowflake/client/key_pair_jwt_auth_manager.rb +2 -2
- data/lib/ruby_snowflake/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef7c1798270965128711042d7d218668b318356bf6a3fac8efc2144538c5a246
|
4
|
+
data.tar.gz: a04c605cfff4659c18deb58ccdca3d49db8a6d85d98825a496ab6d8641030193
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3633bc26af9b0912735ad82840795ab81c6178c381b11ae7ade7b6fd2272576a7a9d4f65a7cd22a5786ede9f2d153bc7ccb3a5816fe0263e48cb6f5df448297b
|
7
|
+
data.tar.gz: 449e2d7140b58c6d629fd17bf4641b3d698a03d10a1fb6df3444fd3bd5bf6fd6da1f146c59d96dcedd3932ddc1f5b4b086524f427385510435e36dc8de052824
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rb_snowflake_client (1.
|
4
|
+
rb_snowflake_client (1.3.0)
|
5
5
|
bigdecimal (>= 3.0)
|
6
6
|
concurrent-ruby (>= 1.2)
|
7
7
|
connection_pool (>= 2.4)
|
@@ -14,18 +14,18 @@ GEM
|
|
14
14
|
remote: https://rubygems.org/
|
15
15
|
specs:
|
16
16
|
base64 (0.2.0)
|
17
|
-
bigdecimal (3.1.
|
17
|
+
bigdecimal (3.1.9)
|
18
18
|
coderay (1.1.3)
|
19
|
-
concurrent-ruby (1.3.
|
19
|
+
concurrent-ruby (1.3.4)
|
20
20
|
connection_pool (2.4.1)
|
21
21
|
diff-lcs (1.5.1)
|
22
|
-
dotenv (3.1.
|
22
|
+
dotenv (3.1.7)
|
23
23
|
json (2.9.1)
|
24
|
-
jwt (2.
|
24
|
+
jwt (2.10.1)
|
25
25
|
base64
|
26
26
|
method_source (1.1.0)
|
27
|
-
parallel (1.
|
28
|
-
pry (0.
|
27
|
+
parallel (1.26.3)
|
28
|
+
pry (0.15.2)
|
29
29
|
coderay (~> 1.1)
|
30
30
|
method_source (~> 1.0)
|
31
31
|
rake (13.2.1)
|
@@ -34,15 +34,15 @@ GEM
|
|
34
34
|
rspec-core (~> 3.13.0)
|
35
35
|
rspec-expectations (~> 3.13.0)
|
36
36
|
rspec-mocks (~> 3.13.0)
|
37
|
-
rspec-core (3.13.
|
37
|
+
rspec-core (3.13.2)
|
38
38
|
rspec-support (~> 3.13.0)
|
39
|
-
rspec-expectations (3.13.
|
39
|
+
rspec-expectations (3.13.3)
|
40
40
|
diff-lcs (>= 1.2.0, < 2.0)
|
41
41
|
rspec-support (~> 3.13.0)
|
42
|
-
rspec-mocks (3.13.
|
42
|
+
rspec-mocks (3.13.2)
|
43
43
|
diff-lcs (>= 1.2.0, < 2.0)
|
44
44
|
rspec-support (~> 3.13.0)
|
45
|
-
rspec-support (3.13.
|
45
|
+
rspec-support (3.13.2)
|
46
46
|
|
47
47
|
PLATFORMS
|
48
48
|
arm64-darwin-22
|
data/README.md
CHANGED
@@ -197,7 +197,8 @@ ALTER USER EXAMPLE_USER SET RSA_PUBLIC_KEY = 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMI
|
|
197
197
|
```
|
198
198
|
5. Verify your auth setup. If you have `snowsql` installed, that has an easy method (CTRL-d to exit)
|
199
199
|
```bash
|
200
|
-
snowsql -a
|
200
|
+
# example: snowsql -a AAAAAAA.BBBBBBBB.us-east-1 -u john --private-key-path private_key.pem
|
201
|
+
snowsql -a <account_identifier>.<region> -u <user> --private-key-path private_key.pem
|
201
202
|
```
|
202
203
|
or alternatively, use the client to verify:
|
203
204
|
```ruby
|
@@ -30,8 +30,8 @@ module RubySnowflake
|
|
30
30
|
private_key = OpenSSL::PKey.read(@private_key_pem)
|
31
31
|
|
32
32
|
payload = {
|
33
|
-
:iss => "#{@organization.upcase}-#{@account.upcase}.#{@user}.#{public_key_fingerprint}",
|
34
|
-
:sub => "#{@organization.upcase}-#{@account.upcase}.#{@user}",
|
33
|
+
:iss => "#{@organization.upcase}-#{@account.upcase}.#{@user.upcase}.#{public_key_fingerprint}",
|
34
|
+
:sub => "#{@organization.upcase}-#{@account.upcase}.#{@user.upcase}",
|
35
35
|
:iat => now,
|
36
36
|
:exp => @token_expires_at
|
37
37
|
}
|