infisical-sdk 2.3.5 → 2.3.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7b5840d03f6c833ba8654d8ece098eda6f03988e84f20863e25d723b8fda42f6
4
- data.tar.gz: 5b82a9f42ca77b6a979dbeb459db366a7c1494dae60c2c96a3bc59c44c778a68
3
+ metadata.gz: b0e691ce4b2c0e45a78924794e8ea8479c19e24227a6dec75a44536c1f2b6019
4
+ data.tar.gz: b29ccd2faf5afb1594d1a21bada02ce22227386c813a7023eddb26558baa401f
5
5
  SHA512:
6
- metadata.gz: fc19ba3579b3a68b46e950920498350741c2badd366ec83e7ed02e05ee87221abb3d23bccd20fd241b96b53a1c84c7512ebf2bab54e76aa44aeb2b2f55ffeaf0
7
- data.tar.gz: 9122fb8a4163303d17784f111a46858fc0c971d6f154c6aeb5b2c1aca1bc699318209cfb8edec39cb38773719605a19c76cbf87855c1c4f8de304c9608f40b03
6
+ metadata.gz: a14ccca5d3ee69e14deb7efb2eaed6d30e7dc7569334b05c321e83176a9d2ebb5fbf00b4e8e560c309b5a512dfd970d333851d5368662c88a59691b93fb57113
7
+ data.tar.gz: aeaf409ea23e1b6cfd4649315706d119840dfe748b186ed7f5d08bf875f6e491c07a283e67d02689b287ea74b3576d4a86d914d16dae6a05f1f751d41b666233
@@ -17,6 +17,7 @@ module InfisicalSDK
17
17
  secret_name:,
18
18
  project_id:,
19
19
  environment:,
20
+ expand_secret_references: true,
20
21
  path: nil,
21
22
  include_imports: nil,
22
23
  type: nil
@@ -28,6 +29,7 @@ module InfisicalSDK
28
29
  environment: environment,
29
30
  path: path,
30
31
  include_imports: include_imports,
32
+ expand_secret_references: expand_secret_references,
31
33
  get_secret_options_type: type
32
34
  ))
33
35
 
@@ -0,0 +1,38 @@
1
+ module InfisicalSDK
2
+ # Command mapper
3
+ class InfisicalCommands < Command
4
+ attribute :get_secret, Types.Constructor(GetSecretOptions).optional.default(nil)
5
+ attribute :list_secrets, Types.Constructor(ListSecretsOptions).optional.default(nil)
6
+ attribute :create_secret, Types.Constructor(CreateSecretOptions).optional.default(nil)
7
+ attribute :update_secret, Types.Constructor(UpdateSecretOptions).optional.default(nil)
8
+ attribute :delete_secret, Types.Constructor(DeleteSecretOptions).optional.default(nil)
9
+ attribute :create_symmetric_key, Types.Constructor(ArbitraryOptions).optional.default(nil)
10
+ attribute :encrypt_symmetric, Types.Constructor(EncryptSymmetricOptions).optional.default(nil)
11
+ attribute :decrypt_symmetric, Types.Constructor(DecryptSymmetricOptions).optional.default(nil)
12
+ attribute :universal_auth_login, Types.Constructor(UniversalAuthLoginClass).optional.default(nil)
13
+ attribute :kubernetes_auth_login, Types.Constructor(KubernetesAuthLoginClass).optional.default(nil)
14
+ attribute :azure_auth_login, Types.Constructor(AzureAuthLoginClass).optional.default(nil)
15
+ attribute :gcp_id_token_auth_login, Types.Constructor(GcpIDTokenAuthLoginClass).optional.default(nil)
16
+ attribute :gcp_iam_auth_login, Types.Constructor(GcpIamAuthLoginClass).optional.default(nil)
17
+ attribute :aws_iam_auth_login, Types.Constructor(AwsIamAuthLoginClass).optional.default(nil)
18
+
19
+ def to_dynamic
20
+ {
21
+ "getSecret" => get_secret&.to_dynamic,
22
+ "listSecrets" => list_secrets&.to_dynamic,
23
+ "createSecret" => create_secret&.to_dynamic,
24
+ "updateSecret" => update_secret&.to_dynamic,
25
+ "deleteSecret" => delete_secret&.to_dynamic,
26
+ "createSymmetricKey" => create_symmetric_key&.to_dynamic,
27
+ "encryptSymmetric" => encrypt_symmetric&.to_dynamic,
28
+ "decryptSymmetric" => decrypt_symmetric&.to_dynamic,
29
+ "universalAuthLogin" => universal_auth_login&.to_dynamic,
30
+ "kubernetesAuthLogin" => kubernetes_auth_login&.to_dynamic,
31
+ "azureAuthLogin" => azure_auth_login&.to_dynamic,
32
+ "gcpIdTokenAuthLogin" => gcp_id_token_auth_login&.to_dynamic,
33
+ "gcpIamAuthLogin" => gcp_iam_auth_login&.to_dynamic,
34
+ "awsIamAuthLogin" => aws_iam_auth_login&.to_dynamic,
35
+ }.compact
36
+ end
37
+ end
38
+ end
data/lib/infisical-sdk.rb CHANGED
@@ -23,6 +23,7 @@ module InfisicalSDK
23
23
  client_secret: nil,
24
24
  client_id: nil,
25
25
  auth: nil,
26
+ ssl_certificate_path: nil,
26
27
  user_agent: 'infisical-ruby-sdk',
27
28
  cache_ttl: cache_ttl,
28
29
  site_url: site_url
Binary file
Binary file
Binary file
Binary file
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InfisicalSDK
4
- VERSION = '2.3.5'
4
+ VERSION = '2.3.8'
5
5
  end
Binary file
@@ -8,6 +8,7 @@ module InfisicalSDK
8
8
  project_id: String,
9
9
  environment: String,
10
10
  path: String?,
11
+ expand_secret_references: bool?,
11
12
  include_imports: bool?,
12
13
  type: String?
13
14
  ) -> InfisicalSecret
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.3.5
4
+ version: 2.3.8
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-08-19 00:00:00.000000000 Z
11
+ date: 2024-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-struct
@@ -108,6 +108,7 @@ files:
108
108
  - lib/clients/cryptography.rb
109
109
  - lib/clients/secrets.rb
110
110
  - lib/command_runner.rb
111
+ - lib/extended_schemas/schemas.rb
111
112
  - lib/infisical-sdk.rb
112
113
  - lib/infisical_error.rb
113
114
  - lib/infisical_lib.rb