pulumi-vault 6.1.1__py3-none-any.whl → 6.2.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,6 +21,9 @@ class BackendArgs:
21
21
  description: Optional[pulumi.Input[str]] = None,
22
22
  disable_remount: Optional[pulumi.Input[bool]] = None,
23
23
  environment: Optional[pulumi.Input[str]] = None,
24
+ identity_token_audience: Optional[pulumi.Input[str]] = None,
25
+ identity_token_key: Optional[pulumi.Input[str]] = None,
26
+ identity_token_ttl: Optional[pulumi.Input[int]] = None,
24
27
  namespace: Optional[pulumi.Input[str]] = None,
25
28
  path: Optional[pulumi.Input[str]] = None,
26
29
  use_microsoft_graph_api: Optional[pulumi.Input[bool]] = None):
@@ -34,6 +37,12 @@ class BackendArgs:
34
37
  :param pulumi.Input[bool] disable_remount: If set, opts out of mount migration on path updates.
35
38
  See here for more info on [Mount Migration](https://www.vaultproject.io/docs/concepts/mount-migration)
36
39
  :param pulumi.Input[str] environment: The Azure environment.
40
+ :param pulumi.Input[str] identity_token_audience: The audience claim value. Requires Vault 1.17+.
41
+ *Available only for Vault Enterprise*
42
+ :param pulumi.Input[str] identity_token_key: The key to use for signing identity tokens. Requires Vault 1.17+.
43
+ *Available only for Vault Enterprise*
44
+ :param pulumi.Input[int] identity_token_ttl: The TTL of generated identity tokens in seconds. Requires Vault 1.17+.
45
+ *Available only for Vault Enterprise*
37
46
  :param pulumi.Input[str] namespace: The namespace to provision the resource in.
38
47
  The value should not contain leading or trailing forward slashes.
39
48
  The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace).
@@ -53,10 +62,19 @@ class BackendArgs:
53
62
  pulumi.set(__self__, "disable_remount", disable_remount)
54
63
  if environment is not None:
55
64
  pulumi.set(__self__, "environment", environment)
65
+ if identity_token_audience is not None:
66
+ pulumi.set(__self__, "identity_token_audience", identity_token_audience)
67
+ if identity_token_key is not None:
68
+ pulumi.set(__self__, "identity_token_key", identity_token_key)
69
+ if identity_token_ttl is not None:
70
+ pulumi.set(__self__, "identity_token_ttl", identity_token_ttl)
56
71
  if namespace is not None:
57
72
  pulumi.set(__self__, "namespace", namespace)
58
73
  if path is not None:
59
74
  pulumi.set(__self__, "path", path)
75
+ if use_microsoft_graph_api is not None:
76
+ warnings.warn("""This field is not supported in Vault-1.12+ and is the default behavior. This field will be removed in future version of the provider.""", DeprecationWarning)
77
+ pulumi.log.warn("""use_microsoft_graph_api is deprecated: This field is not supported in Vault-1.12+ and is the default behavior. This field will be removed in future version of the provider.""")
60
78
  if use_microsoft_graph_api is not None:
61
79
  pulumi.set(__self__, "use_microsoft_graph_api", use_microsoft_graph_api)
62
80
 
@@ -145,6 +163,45 @@ class BackendArgs:
145
163
  def environment(self, value: Optional[pulumi.Input[str]]):
146
164
  pulumi.set(self, "environment", value)
147
165
 
166
+ @property
167
+ @pulumi.getter(name="identityTokenAudience")
168
+ def identity_token_audience(self) -> Optional[pulumi.Input[str]]:
169
+ """
170
+ The audience claim value. Requires Vault 1.17+.
171
+ *Available only for Vault Enterprise*
172
+ """
173
+ return pulumi.get(self, "identity_token_audience")
174
+
175
+ @identity_token_audience.setter
176
+ def identity_token_audience(self, value: Optional[pulumi.Input[str]]):
177
+ pulumi.set(self, "identity_token_audience", value)
178
+
179
+ @property
180
+ @pulumi.getter(name="identityTokenKey")
181
+ def identity_token_key(self) -> Optional[pulumi.Input[str]]:
182
+ """
183
+ The key to use for signing identity tokens. Requires Vault 1.17+.
184
+ *Available only for Vault Enterprise*
185
+ """
186
+ return pulumi.get(self, "identity_token_key")
187
+
188
+ @identity_token_key.setter
189
+ def identity_token_key(self, value: Optional[pulumi.Input[str]]):
190
+ pulumi.set(self, "identity_token_key", value)
191
+
192
+ @property
193
+ @pulumi.getter(name="identityTokenTtl")
194
+ def identity_token_ttl(self) -> Optional[pulumi.Input[int]]:
195
+ """
196
+ The TTL of generated identity tokens in seconds. Requires Vault 1.17+.
197
+ *Available only for Vault Enterprise*
198
+ """
199
+ return pulumi.get(self, "identity_token_ttl")
200
+
201
+ @identity_token_ttl.setter
202
+ def identity_token_ttl(self, value: Optional[pulumi.Input[int]]):
203
+ pulumi.set(self, "identity_token_ttl", value)
204
+
148
205
  @property
149
206
  @pulumi.getter
150
207
  def namespace(self) -> Optional[pulumi.Input[str]]:
@@ -178,6 +235,9 @@ class BackendArgs:
178
235
  """
179
236
  Use the Microsoft Graph API. Should be set to true on vault-1.10+
180
237
  """
238
+ warnings.warn("""This field is not supported in Vault-1.12+ and is the default behavior. This field will be removed in future version of the provider.""", DeprecationWarning)
239
+ pulumi.log.warn("""use_microsoft_graph_api is deprecated: This field is not supported in Vault-1.12+ and is the default behavior. This field will be removed in future version of the provider.""")
240
+
181
241
  return pulumi.get(self, "use_microsoft_graph_api")
182
242
 
183
243
  @use_microsoft_graph_api.setter
@@ -193,6 +253,9 @@ class _BackendState:
193
253
  description: Optional[pulumi.Input[str]] = None,
194
254
  disable_remount: Optional[pulumi.Input[bool]] = None,
195
255
  environment: Optional[pulumi.Input[str]] = None,
256
+ identity_token_audience: Optional[pulumi.Input[str]] = None,
257
+ identity_token_key: Optional[pulumi.Input[str]] = None,
258
+ identity_token_ttl: Optional[pulumi.Input[int]] = None,
196
259
  namespace: Optional[pulumi.Input[str]] = None,
197
260
  path: Optional[pulumi.Input[str]] = None,
198
261
  subscription_id: Optional[pulumi.Input[str]] = None,
@@ -206,6 +269,12 @@ class _BackendState:
206
269
  :param pulumi.Input[bool] disable_remount: If set, opts out of mount migration on path updates.
207
270
  See here for more info on [Mount Migration](https://www.vaultproject.io/docs/concepts/mount-migration)
208
271
  :param pulumi.Input[str] environment: The Azure environment.
272
+ :param pulumi.Input[str] identity_token_audience: The audience claim value. Requires Vault 1.17+.
273
+ *Available only for Vault Enterprise*
274
+ :param pulumi.Input[str] identity_token_key: The key to use for signing identity tokens. Requires Vault 1.17+.
275
+ *Available only for Vault Enterprise*
276
+ :param pulumi.Input[int] identity_token_ttl: The TTL of generated identity tokens in seconds. Requires Vault 1.17+.
277
+ *Available only for Vault Enterprise*
209
278
  :param pulumi.Input[str] namespace: The namespace to provision the resource in.
210
279
  The value should not contain leading or trailing forward slashes.
211
280
  The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace).
@@ -225,6 +294,12 @@ class _BackendState:
225
294
  pulumi.set(__self__, "disable_remount", disable_remount)
226
295
  if environment is not None:
227
296
  pulumi.set(__self__, "environment", environment)
297
+ if identity_token_audience is not None:
298
+ pulumi.set(__self__, "identity_token_audience", identity_token_audience)
299
+ if identity_token_key is not None:
300
+ pulumi.set(__self__, "identity_token_key", identity_token_key)
301
+ if identity_token_ttl is not None:
302
+ pulumi.set(__self__, "identity_token_ttl", identity_token_ttl)
228
303
  if namespace is not None:
229
304
  pulumi.set(__self__, "namespace", namespace)
230
305
  if path is not None:
@@ -233,6 +308,9 @@ class _BackendState:
233
308
  pulumi.set(__self__, "subscription_id", subscription_id)
234
309
  if tenant_id is not None:
235
310
  pulumi.set(__self__, "tenant_id", tenant_id)
311
+ if use_microsoft_graph_api is not None:
312
+ warnings.warn("""This field is not supported in Vault-1.12+ and is the default behavior. This field will be removed in future version of the provider.""", DeprecationWarning)
313
+ pulumi.log.warn("""use_microsoft_graph_api is deprecated: This field is not supported in Vault-1.12+ and is the default behavior. This field will be removed in future version of the provider.""")
236
314
  if use_microsoft_graph_api is not None:
237
315
  pulumi.set(__self__, "use_microsoft_graph_api", use_microsoft_graph_api)
238
316
 
@@ -297,6 +375,45 @@ class _BackendState:
297
375
  def environment(self, value: Optional[pulumi.Input[str]]):
298
376
  pulumi.set(self, "environment", value)
299
377
 
378
+ @property
379
+ @pulumi.getter(name="identityTokenAudience")
380
+ def identity_token_audience(self) -> Optional[pulumi.Input[str]]:
381
+ """
382
+ The audience claim value. Requires Vault 1.17+.
383
+ *Available only for Vault Enterprise*
384
+ """
385
+ return pulumi.get(self, "identity_token_audience")
386
+
387
+ @identity_token_audience.setter
388
+ def identity_token_audience(self, value: Optional[pulumi.Input[str]]):
389
+ pulumi.set(self, "identity_token_audience", value)
390
+
391
+ @property
392
+ @pulumi.getter(name="identityTokenKey")
393
+ def identity_token_key(self) -> Optional[pulumi.Input[str]]:
394
+ """
395
+ The key to use for signing identity tokens. Requires Vault 1.17+.
396
+ *Available only for Vault Enterprise*
397
+ """
398
+ return pulumi.get(self, "identity_token_key")
399
+
400
+ @identity_token_key.setter
401
+ def identity_token_key(self, value: Optional[pulumi.Input[str]]):
402
+ pulumi.set(self, "identity_token_key", value)
403
+
404
+ @property
405
+ @pulumi.getter(name="identityTokenTtl")
406
+ def identity_token_ttl(self) -> Optional[pulumi.Input[int]]:
407
+ """
408
+ The TTL of generated identity tokens in seconds. Requires Vault 1.17+.
409
+ *Available only for Vault Enterprise*
410
+ """
411
+ return pulumi.get(self, "identity_token_ttl")
412
+
413
+ @identity_token_ttl.setter
414
+ def identity_token_ttl(self, value: Optional[pulumi.Input[int]]):
415
+ pulumi.set(self, "identity_token_ttl", value)
416
+
300
417
  @property
301
418
  @pulumi.getter
302
419
  def namespace(self) -> Optional[pulumi.Input[str]]:
@@ -354,6 +471,9 @@ class _BackendState:
354
471
  """
355
472
  Use the Microsoft Graph API. Should be set to true on vault-1.10+
356
473
  """
474
+ warnings.warn("""This field is not supported in Vault-1.12+ and is the default behavior. This field will be removed in future version of the provider.""", DeprecationWarning)
475
+ pulumi.log.warn("""use_microsoft_graph_api is deprecated: This field is not supported in Vault-1.12+ and is the default behavior. This field will be removed in future version of the provider.""")
476
+
357
477
  return pulumi.get(self, "use_microsoft_graph_api")
358
478
 
359
479
  @use_microsoft_graph_api.setter
@@ -371,6 +491,9 @@ class Backend(pulumi.CustomResource):
371
491
  description: Optional[pulumi.Input[str]] = None,
372
492
  disable_remount: Optional[pulumi.Input[bool]] = None,
373
493
  environment: Optional[pulumi.Input[str]] = None,
494
+ identity_token_audience: Optional[pulumi.Input[str]] = None,
495
+ identity_token_key: Optional[pulumi.Input[str]] = None,
496
+ identity_token_ttl: Optional[pulumi.Input[int]] = None,
374
497
  namespace: Optional[pulumi.Input[str]] = None,
375
498
  path: Optional[pulumi.Input[str]] = None,
376
499
  subscription_id: Optional[pulumi.Input[str]] = None,
@@ -382,6 +505,19 @@ class Backend(pulumi.CustomResource):
382
505
 
383
506
  ### *Vault-1.9 And Above*
384
507
 
508
+ You can setup the Azure secrets engine with Workload Identity Federation (WIF) for a secret-less configuration:
509
+ ```python
510
+ import pulumi
511
+ import pulumi_vault as vault
512
+
513
+ azure = vault.azure.Backend("azure",
514
+ subscription_id="11111111-2222-3333-4444-111111111111",
515
+ tenant_id="11111111-2222-3333-4444-222222222222",
516
+ client_id="11111111-2222-3333-4444-333333333333",
517
+ identity_token_audience="<TOKEN_AUDIENCE>",
518
+ identity_token_ttl="<TOKEN_TTL>")
519
+ ```
520
+
385
521
  ```python
386
522
  import pulumi
387
523
  import pulumi_vault as vault
@@ -418,6 +554,12 @@ class Backend(pulumi.CustomResource):
418
554
  :param pulumi.Input[bool] disable_remount: If set, opts out of mount migration on path updates.
419
555
  See here for more info on [Mount Migration](https://www.vaultproject.io/docs/concepts/mount-migration)
420
556
  :param pulumi.Input[str] environment: The Azure environment.
557
+ :param pulumi.Input[str] identity_token_audience: The audience claim value. Requires Vault 1.17+.
558
+ *Available only for Vault Enterprise*
559
+ :param pulumi.Input[str] identity_token_key: The key to use for signing identity tokens. Requires Vault 1.17+.
560
+ *Available only for Vault Enterprise*
561
+ :param pulumi.Input[int] identity_token_ttl: The TTL of generated identity tokens in seconds. Requires Vault 1.17+.
562
+ *Available only for Vault Enterprise*
421
563
  :param pulumi.Input[str] namespace: The namespace to provision the resource in.
422
564
  The value should not contain leading or trailing forward slashes.
423
565
  The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace).
@@ -438,6 +580,19 @@ class Backend(pulumi.CustomResource):
438
580
 
439
581
  ### *Vault-1.9 And Above*
440
582
 
583
+ You can setup the Azure secrets engine with Workload Identity Federation (WIF) for a secret-less configuration:
584
+ ```python
585
+ import pulumi
586
+ import pulumi_vault as vault
587
+
588
+ azure = vault.azure.Backend("azure",
589
+ subscription_id="11111111-2222-3333-4444-111111111111",
590
+ tenant_id="11111111-2222-3333-4444-222222222222",
591
+ client_id="11111111-2222-3333-4444-333333333333",
592
+ identity_token_audience="<TOKEN_AUDIENCE>",
593
+ identity_token_ttl="<TOKEN_TTL>")
594
+ ```
595
+
441
596
  ```python
442
597
  import pulumi
443
598
  import pulumi_vault as vault
@@ -486,6 +641,9 @@ class Backend(pulumi.CustomResource):
486
641
  description: Optional[pulumi.Input[str]] = None,
487
642
  disable_remount: Optional[pulumi.Input[bool]] = None,
488
643
  environment: Optional[pulumi.Input[str]] = None,
644
+ identity_token_audience: Optional[pulumi.Input[str]] = None,
645
+ identity_token_key: Optional[pulumi.Input[str]] = None,
646
+ identity_token_ttl: Optional[pulumi.Input[int]] = None,
489
647
  namespace: Optional[pulumi.Input[str]] = None,
490
648
  path: Optional[pulumi.Input[str]] = None,
491
649
  subscription_id: Optional[pulumi.Input[str]] = None,
@@ -505,6 +663,9 @@ class Backend(pulumi.CustomResource):
505
663
  __props__.__dict__["description"] = description
506
664
  __props__.__dict__["disable_remount"] = disable_remount
507
665
  __props__.__dict__["environment"] = environment
666
+ __props__.__dict__["identity_token_audience"] = identity_token_audience
667
+ __props__.__dict__["identity_token_key"] = identity_token_key
668
+ __props__.__dict__["identity_token_ttl"] = identity_token_ttl
508
669
  __props__.__dict__["namespace"] = namespace
509
670
  __props__.__dict__["path"] = path
510
671
  if subscription_id is None and not opts.urn:
@@ -531,6 +692,9 @@ class Backend(pulumi.CustomResource):
531
692
  description: Optional[pulumi.Input[str]] = None,
532
693
  disable_remount: Optional[pulumi.Input[bool]] = None,
533
694
  environment: Optional[pulumi.Input[str]] = None,
695
+ identity_token_audience: Optional[pulumi.Input[str]] = None,
696
+ identity_token_key: Optional[pulumi.Input[str]] = None,
697
+ identity_token_ttl: Optional[pulumi.Input[int]] = None,
534
698
  namespace: Optional[pulumi.Input[str]] = None,
535
699
  path: Optional[pulumi.Input[str]] = None,
536
700
  subscription_id: Optional[pulumi.Input[str]] = None,
@@ -549,6 +713,12 @@ class Backend(pulumi.CustomResource):
549
713
  :param pulumi.Input[bool] disable_remount: If set, opts out of mount migration on path updates.
550
714
  See here for more info on [Mount Migration](https://www.vaultproject.io/docs/concepts/mount-migration)
551
715
  :param pulumi.Input[str] environment: The Azure environment.
716
+ :param pulumi.Input[str] identity_token_audience: The audience claim value. Requires Vault 1.17+.
717
+ *Available only for Vault Enterprise*
718
+ :param pulumi.Input[str] identity_token_key: The key to use for signing identity tokens. Requires Vault 1.17+.
719
+ *Available only for Vault Enterprise*
720
+ :param pulumi.Input[int] identity_token_ttl: The TTL of generated identity tokens in seconds. Requires Vault 1.17+.
721
+ *Available only for Vault Enterprise*
552
722
  :param pulumi.Input[str] namespace: The namespace to provision the resource in.
553
723
  The value should not contain leading or trailing forward slashes.
554
724
  The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace).
@@ -567,6 +737,9 @@ class Backend(pulumi.CustomResource):
567
737
  __props__.__dict__["description"] = description
568
738
  __props__.__dict__["disable_remount"] = disable_remount
569
739
  __props__.__dict__["environment"] = environment
740
+ __props__.__dict__["identity_token_audience"] = identity_token_audience
741
+ __props__.__dict__["identity_token_key"] = identity_token_key
742
+ __props__.__dict__["identity_token_ttl"] = identity_token_ttl
570
743
  __props__.__dict__["namespace"] = namespace
571
744
  __props__.__dict__["path"] = path
572
745
  __props__.__dict__["subscription_id"] = subscription_id
@@ -615,6 +788,33 @@ class Backend(pulumi.CustomResource):
615
788
  """
616
789
  return pulumi.get(self, "environment")
617
790
 
791
+ @property
792
+ @pulumi.getter(name="identityTokenAudience")
793
+ def identity_token_audience(self) -> pulumi.Output[Optional[str]]:
794
+ """
795
+ The audience claim value. Requires Vault 1.17+.
796
+ *Available only for Vault Enterprise*
797
+ """
798
+ return pulumi.get(self, "identity_token_audience")
799
+
800
+ @property
801
+ @pulumi.getter(name="identityTokenKey")
802
+ def identity_token_key(self) -> pulumi.Output[Optional[str]]:
803
+ """
804
+ The key to use for signing identity tokens. Requires Vault 1.17+.
805
+ *Available only for Vault Enterprise*
806
+ """
807
+ return pulumi.get(self, "identity_token_key")
808
+
809
+ @property
810
+ @pulumi.getter(name="identityTokenTtl")
811
+ def identity_token_ttl(self) -> pulumi.Output[int]:
812
+ """
813
+ The TTL of generated identity tokens in seconds. Requires Vault 1.17+.
814
+ *Available only for Vault Enterprise*
815
+ """
816
+ return pulumi.get(self, "identity_token_ttl")
817
+
618
818
  @property
619
819
  @pulumi.getter
620
820
  def namespace(self) -> pulumi.Output[Optional[str]]:
@@ -656,5 +856,8 @@ class Backend(pulumi.CustomResource):
656
856
  """
657
857
  Use the Microsoft Graph API. Should be set to true on vault-1.10+
658
858
  """
859
+ warnings.warn("""This field is not supported in Vault-1.12+ and is the default behavior. This field will be removed in future version of the provider.""", DeprecationWarning)
860
+ pulumi.log.warn("""use_microsoft_graph_api is deprecated: This field is not supported in Vault-1.12+ and is the default behavior. This field will be removed in future version of the provider.""")
861
+
659
862
  return pulumi.get(self, "use_microsoft_graph_api")
660
863