infisical-sdk 2.2.8 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/clients/{encryption.rb → cryptography.rb} +1 -1
- data/lib/infisical-sdk.rb +3 -3
- data/lib/linux-arm64/libinfisical_c.so +0 -0
- data/lib/linux-x64/libinfisical_c.so +0 -0
- data/lib/macos-arm64/libinfisical_c.dylib +0 -0
- data/lib/macos-x64/libinfisical_c.dylib +0 -0
- data/lib/schemas.rb +22 -14
- data/lib/version.rb +1 -1
- data/lib/windows-x64/infisical_c.dll +0 -0
- data/sig/infisical_sdk/{encryption_client.rbs → cryptography_client.rbs} +1 -1
- data/sig/infisical_sdk/infisical_client.rbs +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 631a8d8f205037d27e93e742be97f1f26f6be52b7bb3f033329f684cbe841603
|
4
|
+
data.tar.gz: ff0bfcd3d7f95575ff2f1bf5f2cc15da52b78cbf972e687856600009103f00cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3300ea068deb6069a4e048207aeb35d431c8391d09c249c561522392939158175be8e6d78d3ef17e6d39f25fea3af77d21f2c648f65a9618e2798abd3d3c424
|
7
|
+
data.tar.gz: e3667b1d1d86b27d23312edf236ed9e484615a460dd302444d3d0683fdc538343f8de355ace58b310ba70c044e51106256af248528c71b131563cbbe0ec6ebd1
|
data/lib/infisical-sdk.rb
CHANGED
@@ -10,11 +10,11 @@ require_relative 'infisical_error'
|
|
10
10
|
require_relative 'command_runner'
|
11
11
|
require_relative 'clients/secrets'
|
12
12
|
require_relative 'clients/auth'
|
13
|
-
require_relative 'clients/
|
13
|
+
require_relative 'clients/cryptography'
|
14
14
|
|
15
15
|
module InfisicalSDK
|
16
16
|
class InfisicalClient
|
17
|
-
attr_reader :infisical, :command_runner, :secrets, :auth, :
|
17
|
+
attr_reader :infisical, :command_runner, :secrets, :auth, :cryptography
|
18
18
|
|
19
19
|
def initialize(site_url = nil, cache_ttl = 300)
|
20
20
|
settings = ClientSettings.new(
|
@@ -34,7 +34,7 @@ module InfisicalSDK
|
|
34
34
|
@command_runner = CommandRunner.new(@infisical, @handle)
|
35
35
|
@secrets = SecretsClient.new(@command_runner)
|
36
36
|
@auth = AuthClient.new(@command_runner)
|
37
|
-
@
|
37
|
+
@cryptography = CryptographyClient.new(@command_runner)
|
38
38
|
end
|
39
39
|
|
40
40
|
def free_mem
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/schemas.rb
CHANGED
@@ -300,18 +300,25 @@ class ClientSettings < Dry::Struct
|
|
300
300
|
# The URL of the site to connect to. Defaults to "https://app.infisical.com".
|
301
301
|
attribute :site_url, Types::String.optional.optional
|
302
302
|
|
303
|
+
# The SSL certificate path is an optional field that allows you to specify a custom SSL
|
304
|
+
# certificate to use for requests made to Infisical.
|
305
|
+
# This option can be substituted with the `INFISICAL_SSL_CERTIFICATE` environment variable,
|
306
|
+
# which should contain the certificate as a string, not the path.
|
307
|
+
attribute :ssl_certificate_path, Types::String.optional.optional
|
308
|
+
|
303
309
|
attribute :user_agent, Types::String.optional.optional
|
304
310
|
|
305
311
|
def self.from_dynamic!(d)
|
306
312
|
d = Types::Hash[d]
|
307
313
|
new(
|
308
|
-
access_token:
|
309
|
-
auth:
|
310
|
-
cache_ttl:
|
311
|
-
client_id:
|
312
|
-
client_secret:
|
313
|
-
site_url:
|
314
|
-
|
314
|
+
access_token: d["accessToken"],
|
315
|
+
auth: d["auth"] ? AuthenticationOptions.from_dynamic!(d["auth"]) : nil,
|
316
|
+
cache_ttl: d["cacheTtl"],
|
317
|
+
client_id: d["clientId"],
|
318
|
+
client_secret: d["clientSecret"],
|
319
|
+
site_url: d["siteUrl"],
|
320
|
+
ssl_certificate_path: d["sslCertificatePath"],
|
321
|
+
user_agent: d["userAgent"],
|
315
322
|
)
|
316
323
|
end
|
317
324
|
|
@@ -321,13 +328,14 @@ class ClientSettings < Dry::Struct
|
|
321
328
|
|
322
329
|
def to_dynamic
|
323
330
|
{
|
324
|
-
"accessToken"
|
325
|
-
"auth"
|
326
|
-
"cacheTtl"
|
327
|
-
"clientId"
|
328
|
-
"clientSecret"
|
329
|
-
"siteUrl"
|
330
|
-
"
|
331
|
+
"accessToken" => access_token,
|
332
|
+
"auth" => auth&.to_dynamic,
|
333
|
+
"cacheTtl" => cache_ttl,
|
334
|
+
"clientId" => client_id,
|
335
|
+
"clientSecret" => client_secret,
|
336
|
+
"siteUrl" => site_url,
|
337
|
+
"sslCertificatePath" => ssl_certificate_path,
|
338
|
+
"userAgent" => user_agent,
|
331
339
|
}
|
332
340
|
end
|
333
341
|
|
data/lib/version.rb
CHANGED
Binary file
|
@@ -10,7 +10,7 @@ module InfisicalSDK
|
|
10
10
|
attr_reader infisical: InfisicalModule
|
11
11
|
|
12
12
|
attr_reader auth: AuthClient
|
13
|
-
attr_reader
|
13
|
+
attr_reader cryptography: CryptographyClient
|
14
14
|
attr_reader secrets: SecretsClient
|
15
15
|
|
16
16
|
def initialize: (String?, Integer?) -> untyped
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: infisical-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Infisical Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-struct
|
@@ -105,7 +105,7 @@ files:
|
|
105
105
|
- Steepfile
|
106
106
|
- infisical-sdk.gemspec
|
107
107
|
- lib/clients/auth.rb
|
108
|
-
- lib/clients/
|
108
|
+
- lib/clients/cryptography.rb
|
109
109
|
- lib/clients/secrets.rb
|
110
110
|
- lib/command_runner.rb
|
111
111
|
- lib/infisical-sdk.rb
|
@@ -120,7 +120,7 @@ files:
|
|
120
120
|
- lib/windows-x64/infisical_c.dll
|
121
121
|
- sig/infisical_sdk/auth_client.rbs
|
122
122
|
- sig/infisical_sdk/command_runner.rbs
|
123
|
-
- sig/infisical_sdk/
|
123
|
+
- sig/infisical_sdk/cryptography_client.rbs
|
124
124
|
- sig/infisical_sdk/infisical_client.rbs
|
125
125
|
- sig/infisical_sdk/infisical_lib.rbs
|
126
126
|
- sig/infisical_sdk/sdk.rbs
|