infisical-sdk 2.3.7 → 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: d1d97c48967919e0aeb408fd06f3941e767f923fdcb5973e53676365f4b09836
4
- data.tar.gz: '0090861f15767a6a879c0672e13936b9220f721968fcb2439a2256d75be75459'
3
+ metadata.gz: b0e691ce4b2c0e45a78924794e8ea8479c19e24227a6dec75a44536c1f2b6019
4
+ data.tar.gz: b29ccd2faf5afb1594d1a21bada02ce22227386c813a7023eddb26558baa401f
5
5
  SHA512:
6
- metadata.gz: 0bbe466cda340b16e2565f18bdf19b4552ced0d66be0d16b8658028591cefd5f5abc06304877abefa6ff750900cd1ef3c01180dbf6f6c24398f93c0eccbfabd2
7
- data.tar.gz: 7823688dba885529807a330f88d3f78570d0166571a4b16503fc8a2d1dc6d6f55dcdc828f5f19d666335a844d3b44fcbfd29b9ddc8cb6e5384feacca8720b891
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.7'
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.7
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-09-02 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