@pulumi/venafi 1.4.0 → 1.4.1
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.
- package/certificate.d.ts +15 -8
- package/certificate.js +2 -8
- package/certificate.js.map +1 -1
- package/config/vars.d.ts +4 -4
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/provider.d.ts +7 -7
package/certificate.d.ts
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* Provides access to TLS key and certificate data enrolled using Venafi. This can be used to define a
|
|
4
|
-
* certificate.
|
|
5
|
-
*
|
|
6
|
-
* The `venafi.Certificate` resource handles certificate renewals as long as a
|
|
7
|
-
* `pulumi up` is run within the `expirationWindow` period. Keep in mind that the
|
|
8
|
-
* `expirationWindow` in the provider configuration needs to align with the renewal
|
|
9
|
-
* window of the issuing CA to achieve the desired result.
|
|
10
|
-
*
|
|
11
3
|
* ## Example Usage
|
|
12
4
|
*
|
|
13
5
|
* ```typescript
|
|
@@ -124,6 +116,11 @@ export declare class Certificate extends pulumi.CustomResource {
|
|
|
124
116
|
* subjects of the certificate.
|
|
125
117
|
*/
|
|
126
118
|
readonly sanIps: pulumi.Output<string[] | undefined>;
|
|
119
|
+
/**
|
|
120
|
+
* List of Uniform Resource Identifiers (URIs) to use as alternative
|
|
121
|
+
* subjects of the certificate.
|
|
122
|
+
*/
|
|
123
|
+
readonly sanUris: pulumi.Output<string[] | undefined>;
|
|
127
124
|
/**
|
|
128
125
|
* Desired number of days for which the new
|
|
129
126
|
* certificate will be valid.
|
|
@@ -220,6 +217,11 @@ export interface CertificateState {
|
|
|
220
217
|
* subjects of the certificate.
|
|
221
218
|
*/
|
|
222
219
|
sanIps?: pulumi.Input<pulumi.Input<string>[]>;
|
|
220
|
+
/**
|
|
221
|
+
* List of Uniform Resource Identifiers (URIs) to use as alternative
|
|
222
|
+
* subjects of the certificate.
|
|
223
|
+
*/
|
|
224
|
+
sanUris?: pulumi.Input<pulumi.Input<string>[]>;
|
|
223
225
|
/**
|
|
224
226
|
* Desired number of days for which the new
|
|
225
227
|
* certificate will be valid.
|
|
@@ -299,6 +301,11 @@ export interface CertificateArgs {
|
|
|
299
301
|
* subjects of the certificate.
|
|
300
302
|
*/
|
|
301
303
|
sanIps?: pulumi.Input<pulumi.Input<string>[]>;
|
|
304
|
+
/**
|
|
305
|
+
* List of Uniform Resource Identifiers (URIs) to use as alternative
|
|
306
|
+
* subjects of the certificate.
|
|
307
|
+
*/
|
|
308
|
+
sanUris?: pulumi.Input<pulumi.Input<string>[]>;
|
|
302
309
|
/**
|
|
303
310
|
* Desired number of days for which the new
|
|
304
311
|
* certificate will be valid.
|
package/certificate.js
CHANGED
|
@@ -6,14 +6,6 @@ exports.Certificate = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* Provides access to TLS key and certificate data enrolled using Venafi. This can be used to define a
|
|
10
|
-
* certificate.
|
|
11
|
-
*
|
|
12
|
-
* The `venafi.Certificate` resource handles certificate renewals as long as a
|
|
13
|
-
* `pulumi up` is run within the `expirationWindow` period. Keep in mind that the
|
|
14
|
-
* `expirationWindow` in the provider configuration needs to align with the renewal
|
|
15
|
-
* window of the issuing CA to achieve the desired result.
|
|
16
|
-
*
|
|
17
9
|
* ## Example Usage
|
|
18
10
|
*
|
|
19
11
|
* ```typescript
|
|
@@ -60,6 +52,7 @@ class Certificate extends pulumi.CustomResource {
|
|
|
60
52
|
resourceInputs["sanDns"] = state ? state.sanDns : undefined;
|
|
61
53
|
resourceInputs["sanEmails"] = state ? state.sanEmails : undefined;
|
|
62
54
|
resourceInputs["sanIps"] = state ? state.sanIps : undefined;
|
|
55
|
+
resourceInputs["sanUris"] = state ? state.sanUris : undefined;
|
|
63
56
|
resourceInputs["validDays"] = state ? state.validDays : undefined;
|
|
64
57
|
}
|
|
65
58
|
else {
|
|
@@ -83,6 +76,7 @@ class Certificate extends pulumi.CustomResource {
|
|
|
83
76
|
resourceInputs["sanDns"] = args ? args.sanDns : undefined;
|
|
84
77
|
resourceInputs["sanEmails"] = args ? args.sanEmails : undefined;
|
|
85
78
|
resourceInputs["sanIps"] = args ? args.sanIps : undefined;
|
|
79
|
+
resourceInputs["sanUris"] = args ? args.sanUris : undefined;
|
|
86
80
|
resourceInputs["validDays"] = args ? args.validDays : undefined;
|
|
87
81
|
resourceInputs["certificate"] = undefined /*out*/;
|
|
88
82
|
resourceInputs["chain"] = undefined /*out*/;
|
package/certificate.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"certificate.js","sourceRoot":"","sources":["../certificate.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"certificate.js","sourceRoot":"","sources":["../certificate.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IA2HlD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,eAAe,CAAC,GAAG,KAA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ars.d.ts
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const accessToken: string | undefined;
|
|
5
5
|
/**
|
|
6
|
-
* API key for Venafi
|
|
6
|
+
* API key for Venafi as a Service. Example: 142231b7-cvb0-412e-886b-6aeght0bc93d
|
|
7
7
|
*/
|
|
8
8
|
export declare const apiKey: string | undefined;
|
|
9
9
|
/**
|
|
10
10
|
* When set to true, the resulting certificate will be issued by an ephemeral, no trust CA rather than enrolling using
|
|
11
|
-
* Venafi
|
|
11
|
+
* Venafi as a Service or Trust Protection Platform. Useful for development and testing.
|
|
12
12
|
*/
|
|
13
13
|
export declare const devMode: boolean | undefined;
|
|
14
14
|
/**
|
|
@@ -29,7 +29,7 @@ export declare const trustBundle: string | undefined;
|
|
|
29
29
|
*/
|
|
30
30
|
export declare const url: string | undefined;
|
|
31
31
|
/**
|
|
32
|
-
* DN of the Venafi Platform policy folder or name of the Venafi
|
|
33
|
-
* Example for Venafi
|
|
32
|
+
* DN of the Venafi Platform policy folder or name of the Venafi as a Service application. Example for Platform:
|
|
33
|
+
* testpolicy\\vault Example for Venafi as a Service: Default
|
|
34
34
|
*/
|
|
35
35
|
export declare const zone: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/venafi",
|
|
3
|
-
"version": "v1.4.
|
|
3
|
+
"version": "v1.4.1",
|
|
4
4
|
"description": "A Pulumi package for creating and managing venafi cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource venafi v1.4.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource venafi v1.4.1"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/package.json.dev
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/venafi",
|
|
3
|
-
"version": "v1.4.
|
|
3
|
+
"version": "v1.4.1",
|
|
4
4
|
"description": "A Pulumi package for creating and managing venafi cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource venafi v1.4.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource venafi v1.4.1"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/provider.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
16
16
|
*/
|
|
17
17
|
readonly accessToken: pulumi.Output<string | undefined>;
|
|
18
18
|
/**
|
|
19
|
-
* API key for Venafi
|
|
19
|
+
* API key for Venafi as a Service. Example: 142231b7-cvb0-412e-886b-6aeght0bc93d
|
|
20
20
|
*/
|
|
21
21
|
readonly apiKey: pulumi.Output<string | undefined>;
|
|
22
22
|
/**
|
|
@@ -41,8 +41,8 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
41
41
|
*/
|
|
42
42
|
readonly url: pulumi.Output<string | undefined>;
|
|
43
43
|
/**
|
|
44
|
-
* DN of the Venafi Platform policy folder or name of the Venafi
|
|
45
|
-
* Example for Venafi
|
|
44
|
+
* DN of the Venafi Platform policy folder or name of the Venafi as a Service application. Example for Platform:
|
|
45
|
+
* testpolicy\\vault Example for Venafi as a Service: Default
|
|
46
46
|
*/
|
|
47
47
|
readonly zone: pulumi.Output<string | undefined>;
|
|
48
48
|
/**
|
|
@@ -63,12 +63,12 @@ export interface ProviderArgs {
|
|
|
63
63
|
*/
|
|
64
64
|
accessToken?: pulumi.Input<string>;
|
|
65
65
|
/**
|
|
66
|
-
* API key for Venafi
|
|
66
|
+
* API key for Venafi as a Service. Example: 142231b7-cvb0-412e-886b-6aeght0bc93d
|
|
67
67
|
*/
|
|
68
68
|
apiKey?: pulumi.Input<string>;
|
|
69
69
|
/**
|
|
70
70
|
* When set to true, the resulting certificate will be issued by an ephemeral, no trust CA rather than enrolling using
|
|
71
|
-
* Venafi
|
|
71
|
+
* Venafi as a Service or Trust Protection Platform. Useful for development and testing.
|
|
72
72
|
*/
|
|
73
73
|
devMode?: pulumi.Input<boolean>;
|
|
74
74
|
/**
|
|
@@ -93,8 +93,8 @@ export interface ProviderArgs {
|
|
|
93
93
|
*/
|
|
94
94
|
url?: pulumi.Input<string>;
|
|
95
95
|
/**
|
|
96
|
-
* DN of the Venafi Platform policy folder or name of the Venafi
|
|
97
|
-
* Example for Venafi
|
|
96
|
+
* DN of the Venafi Platform policy folder or name of the Venafi as a Service application. Example for Platform:
|
|
97
|
+
* testpolicy\\vault Example for Venafi as a Service: Default
|
|
98
98
|
*/
|
|
99
99
|
zone?: pulumi.Input<string>;
|
|
100
100
|
}
|