@pulumi/venafi 1.2.0-alpha.1632761760
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/LICENSE +202 -0
- package/README.md +68 -0
- package/certificate.d.ts +295 -0
- package/certificate.js +118 -0
- package/certificate.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +10 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +35 -0
- package/config/vars.js +42 -0
- package/config/vars.js.map +1 -0
- package/index.d.ts +6 -0
- package/index.js +50 -0
- package/index.js.map +1 -0
- package/package.json +26 -0
- package/package.json.bak +25 -0
- package/package.json.dev +25 -0
- package/policy.d.ts +94 -0
- package/policy.js +80 -0
- package/policy.js.map +1 -0
- package/provider.d.ts +66 -0
- package/provider.js +53 -0
- package/provider.js.map +1 -0
- package/scripts/install-pulumi-plugin.js +21 -0
- package/sshCertificate.d.ts +300 -0
- package/sshCertificate.js +120 -0
- package/sshCertificate.js.map +1 -0
- package/utilities.d.ts +4 -0
- package/utilities.js +51 -0
- package/utilities.js.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"certificate.js","sourceRoot":"","sources":["../certificate.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAkHlD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,MAAM,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;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CAAC,SAAS,CAAC;YAClD,MAAM,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,MAAM,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC1C,MAAM,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACvC;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;IApKD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;;AA1BL,kCAsKC;AAxJG,gBAAgB;AACO,wBAAY,GAAG,sCAAsC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./vars";
|
package/config/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
function __export(m) {
|
|
5
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
// Export members:
|
|
9
|
+
__export(require("./vars"));
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;AAEjF,kBAAkB;AAClB,4BAAuB"}
|
package/config/vars.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Access token for TPP, user should use this for authentication
|
|
3
|
+
*/
|
|
4
|
+
export declare let accessToken: string | undefined;
|
|
5
|
+
/**
|
|
6
|
+
* API key for Venafi Cloud. Example: 142231b7-cvb0-412e-886b-6aeght0bc93d
|
|
7
|
+
*/
|
|
8
|
+
export declare let apiKey: string | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* When set to true, the resulting certificate will be issued by an ephemeral, no trust CA rather than enrolling using
|
|
11
|
+
* Venafi Cloud or Platform. Useful for development and testing.
|
|
12
|
+
*/
|
|
13
|
+
export declare let devMode: boolean | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Password for WebSDK user. Example: password
|
|
16
|
+
*/
|
|
17
|
+
export declare let tppPassword: string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* WebSDK user for Venafi Platform. Example: admin
|
|
20
|
+
*/
|
|
21
|
+
export declare let tppUsername: string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Use to specify a PEM-formatted file that contains certificates to be trust anchors for all communications with the
|
|
24
|
+
* Venafi Web Service. Example: trust_bundle = "${file("chain.pem")}"
|
|
25
|
+
*/
|
|
26
|
+
export declare let trustBundle: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* The Venafi Web Service URL.. Example: https://tpp.venafi.example/vedsdk
|
|
29
|
+
*/
|
|
30
|
+
export declare let url: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* DN of the Venafi Platform policy folder or name of the Venafi Cloud zone. Example for Platform: testpolicy\\vault
|
|
33
|
+
* Example for Venafi Cloud: Default
|
|
34
|
+
*/
|
|
35
|
+
export declare let zone: string | undefined;
|
package/config/vars.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
const pulumi = require("@pulumi/pulumi");
|
|
6
|
+
let __config = new pulumi.Config("venafi");
|
|
7
|
+
/**
|
|
8
|
+
* Access token for TPP, user should use this for authentication
|
|
9
|
+
*/
|
|
10
|
+
exports.accessToken = __config.get("accessToken");
|
|
11
|
+
/**
|
|
12
|
+
* API key for Venafi Cloud. Example: 142231b7-cvb0-412e-886b-6aeght0bc93d
|
|
13
|
+
*/
|
|
14
|
+
exports.apiKey = __config.get("apiKey");
|
|
15
|
+
/**
|
|
16
|
+
* When set to true, the resulting certificate will be issued by an ephemeral, no trust CA rather than enrolling using
|
|
17
|
+
* Venafi Cloud or Platform. Useful for development and testing.
|
|
18
|
+
*/
|
|
19
|
+
exports.devMode = __config.getObject("devMode");
|
|
20
|
+
/**
|
|
21
|
+
* Password for WebSDK user. Example: password
|
|
22
|
+
*/
|
|
23
|
+
exports.tppPassword = __config.get("tppPassword");
|
|
24
|
+
/**
|
|
25
|
+
* WebSDK user for Venafi Platform. Example: admin
|
|
26
|
+
*/
|
|
27
|
+
exports.tppUsername = __config.get("tppUsername");
|
|
28
|
+
/**
|
|
29
|
+
* Use to specify a PEM-formatted file that contains certificates to be trust anchors for all communications with the
|
|
30
|
+
* Venafi Web Service. Example: trust_bundle = "${file("chain.pem")}"
|
|
31
|
+
*/
|
|
32
|
+
exports.trustBundle = __config.get("trustBundle");
|
|
33
|
+
/**
|
|
34
|
+
* The Venafi Web Service URL.. Example: https://tpp.venafi.example/vedsdk
|
|
35
|
+
*/
|
|
36
|
+
exports.url = __config.get("url");
|
|
37
|
+
/**
|
|
38
|
+
* DN of the Venafi Platform policy folder or name of the Venafi Cloud zone. Example for Platform: testpolicy\\vault
|
|
39
|
+
* Example for Venafi Cloud: Default
|
|
40
|
+
*/
|
|
41
|
+
exports.zone = __config.get("zone");
|
|
42
|
+
//# sourceMappingURL=vars.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AAGzC,IAAI,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAE3C;;GAEG;AACQ,QAAA,WAAW,GAAuB,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AACzE;;GAEG;AACQ,QAAA,MAAM,GAAuB,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC/D;;;GAGG;AACQ,QAAA,OAAO,GAAwB,QAAQ,CAAC,SAAS,CAAU,SAAS,CAAC,CAAC;AACjF;;GAEG;AACQ,QAAA,WAAW,GAAuB,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AACzE;;GAEG;AACQ,QAAA,WAAW,GAAuB,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AACzE;;;GAGG;AACQ,QAAA,WAAW,GAAuB,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;AACzE;;GAEG;AACQ,QAAA,GAAG,GAAuB,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACzD;;;GAGG;AACQ,QAAA,IAAI,GAAuB,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC"}
|
package/index.d.ts
ADDED
package/index.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
function __export(m) {
|
|
5
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
const pulumi = require("@pulumi/pulumi");
|
|
9
|
+
const utilities = require("./utilities");
|
|
10
|
+
// Export members:
|
|
11
|
+
__export(require("./certificate"));
|
|
12
|
+
__export(require("./policy"));
|
|
13
|
+
__export(require("./provider"));
|
|
14
|
+
__export(require("./sshCertificate"));
|
|
15
|
+
// Export sub-modules:
|
|
16
|
+
const config = require("./config");
|
|
17
|
+
exports.config = config;
|
|
18
|
+
// Import resources to register:
|
|
19
|
+
const certificate_1 = require("./certificate");
|
|
20
|
+
const policy_1 = require("./policy");
|
|
21
|
+
const sshCertificate_1 = require("./sshCertificate");
|
|
22
|
+
const _module = {
|
|
23
|
+
version: utilities.getVersion(),
|
|
24
|
+
construct: (name, type, urn) => {
|
|
25
|
+
switch (type) {
|
|
26
|
+
case "venafi:index/certificate:Certificate":
|
|
27
|
+
return new certificate_1.Certificate(name, undefined, { urn });
|
|
28
|
+
case "venafi:index/policy:Policy":
|
|
29
|
+
return new policy_1.Policy(name, undefined, { urn });
|
|
30
|
+
case "venafi:index/sshCertificate:SshCertificate":
|
|
31
|
+
return new sshCertificate_1.SshCertificate(name, undefined, { urn });
|
|
32
|
+
default:
|
|
33
|
+
throw new Error(`unknown resource type ${type}`);
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
pulumi.runtime.registerResourceModule("venafi", "index/certificate", _module);
|
|
38
|
+
pulumi.runtime.registerResourceModule("venafi", "index/policy", _module);
|
|
39
|
+
pulumi.runtime.registerResourceModule("venafi", "index/sshCertificate", _module);
|
|
40
|
+
const provider_1 = require("./provider");
|
|
41
|
+
pulumi.runtime.registerResourcePackage("venafi", {
|
|
42
|
+
version: utilities.getVersion(),
|
|
43
|
+
constructProvider: (name, type, urn) => {
|
|
44
|
+
if (type !== "pulumi:providers:venafi") {
|
|
45
|
+
throw new Error(`unknown provider type ${type}`);
|
|
46
|
+
}
|
|
47
|
+
return new provider_1.Provider(name, undefined, { urn });
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
//# sourceMappingURL=index.js.map
|
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,kBAAkB;AAClB,mCAA8B;AAC9B,8BAAyB;AACzB,gCAA2B;AAC3B,sCAAiC;AAEjC,sBAAsB;AACtB,mCAAmC;AAG/B,wBAAM;AAGV,gCAAgC;AAChC,+CAA4C;AAC5C,qCAAkC;AAClC,qDAAkD;AAElD,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,sCAAsC;gBACvC,OAAO,IAAI,yBAAW,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACzD,KAAK,4BAA4B;gBAC7B,OAAO,IAAI,eAAM,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACpD,KAAK,4CAA4C;gBAC7C,OAAO,IAAI,+BAAc,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC5D;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,QAAQ,EAAE,mBAAmB,EAAE,OAAO,CAAC,CAAA;AAC7E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,QAAQ,EAAE,cAAc,EAAE,OAAO,CAAC,CAAA;AACxE,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,QAAQ,EAAE,sBAAsB,EAAE,OAAO,CAAC,CAAA;AAEhF,yCAAsC;AAEtC,MAAM,CAAC,OAAO,CAAC,uBAAuB,CAAC,QAAQ,EAAE;IAC7C,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,iBAAiB,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAA2B,EAAE;QACpF,IAAI,IAAI,KAAK,yBAAyB,EAAE;YACpC,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,mBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pulumi/venafi",
|
|
3
|
+
"version": "v1.2.0-alpha.1632761760+f81455ad",
|
|
4
|
+
"description": "A Pulumi package for creating and managing venafi cloud resources.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"pulumi",
|
|
7
|
+
"venafi"
|
|
8
|
+
],
|
|
9
|
+
"homepage": "https://pulumi.io",
|
|
10
|
+
"repository": "https://github.com/pulumi/pulumi-venafi",
|
|
11
|
+
"license": "Apache-2.0",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc",
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource venafi v1.2.0-alpha.1632761760+f81455ad"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@pulumi/pulumi": "^3.0.0"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@types/mime": "^2.0.0",
|
|
21
|
+
"@types/node": "^10.0.0"
|
|
22
|
+
},
|
|
23
|
+
"pulumi": {
|
|
24
|
+
"resource": true
|
|
25
|
+
}
|
|
26
|
+
}
|
package/package.json.bak
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pulumi/venafi",
|
|
3
|
+
"version": "${VERSION}",
|
|
4
|
+
"description": "A Pulumi package for creating and managing venafi cloud resources.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"pulumi",
|
|
7
|
+
"venafi"
|
|
8
|
+
],
|
|
9
|
+
"homepage": "https://pulumi.io",
|
|
10
|
+
"repository": "https://github.com/pulumi/pulumi-venafi",
|
|
11
|
+
"license": "Apache-2.0",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@pulumi/pulumi": "^3.0.0"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@types/mime": "^2.0.0",
|
|
20
|
+
"@types/node": "^10.0.0"
|
|
21
|
+
},
|
|
22
|
+
"pulumi": {
|
|
23
|
+
"resource": true
|
|
24
|
+
}
|
|
25
|
+
}
|
package/package.json.dev
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pulumi/venafi",
|
|
3
|
+
"version": "v1.2.0-alpha.1632761760+f81455ad",
|
|
4
|
+
"description": "A Pulumi package for creating and managing venafi cloud resources.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"pulumi",
|
|
7
|
+
"venafi"
|
|
8
|
+
],
|
|
9
|
+
"homepage": "https://pulumi.io",
|
|
10
|
+
"repository": "https://github.com/pulumi/pulumi-venafi",
|
|
11
|
+
"license": "Apache-2.0",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@pulumi/pulumi": "^3.0.0"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@types/mime": "^2.0.0",
|
|
20
|
+
"@types/node": "^10.0.0"
|
|
21
|
+
},
|
|
22
|
+
"pulumi": {
|
|
23
|
+
"resource": true
|
|
24
|
+
}
|
|
25
|
+
}
|
package/policy.d.ts
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides access to read and write certificate policy in Venafi. This can be used
|
|
4
|
+
* to define a new policy (folder in *Trust Protection Platform*; application
|
|
5
|
+
* and/or issuing template in *Venafi as a Service*).
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as venafi from "@pulumi/venafi";
|
|
12
|
+
* import * from "fs";
|
|
13
|
+
*
|
|
14
|
+
* const internalPolicy = new venafi.Policy("internalPolicy", {
|
|
15
|
+
* zone: "My Business App\\Enterprise Trusted Certs",
|
|
16
|
+
* policySpecification: fs.readFileSync("/path-to/internal-policy.json"),
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* ## Import
|
|
21
|
+
*
|
|
22
|
+
* The `venafi_policy` resource supports the Terraform [import](https://www.terraform.io/docs/cli/import/index.html) method.
|
|
23
|
+
*
|
|
24
|
+
* When used, the `zone` and `policy_specification` resource arguments are not required since the zone is a required parameter of the import method and the policy specification is populated from the existing infrastructure. Policy that is successfully imported is also output to a file named after the zone that was specified. hcl resource "venafi_policy" "existing_policy" {}
|
|
25
|
+
*
|
|
26
|
+
* ```sh
|
|
27
|
+
* $ pulumi import venafi:index/policy:Policy existing_policy" "My Business App\\Enterprise Trusted Certs"
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare class Policy extends pulumi.CustomResource {
|
|
31
|
+
/**
|
|
32
|
+
* Get an existing Policy resource's state with the given name, ID, and optional extra
|
|
33
|
+
* properties used to qualify the lookup.
|
|
34
|
+
*
|
|
35
|
+
* @param name The _unique_ name of the resulting resource.
|
|
36
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
37
|
+
* @param state Any extra arguments used during the lookup.
|
|
38
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
39
|
+
*/
|
|
40
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PolicyState, opts?: pulumi.CustomResourceOptions): Policy;
|
|
41
|
+
/**
|
|
42
|
+
* Returns true if the given object is an instance of Policy. This is designed to work even
|
|
43
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
44
|
+
*/
|
|
45
|
+
static isInstance(obj: any): obj is Policy;
|
|
46
|
+
/**
|
|
47
|
+
* The JSON-formatted certificate policy
|
|
48
|
+
* specification. Typically read from a file using the `file` function.
|
|
49
|
+
*/
|
|
50
|
+
readonly policySpecification: pulumi.Output<string | undefined>;
|
|
51
|
+
/**
|
|
52
|
+
* The *Trust Protection Plaform* policy folder or
|
|
53
|
+
* *Venafi as a Service* application and issuing template.
|
|
54
|
+
*/
|
|
55
|
+
readonly zone: pulumi.Output<string | undefined>;
|
|
56
|
+
/**
|
|
57
|
+
* Create a Policy resource with the given unique name, arguments, and options.
|
|
58
|
+
*
|
|
59
|
+
* @param name The _unique_ name of the resource.
|
|
60
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
61
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
62
|
+
*/
|
|
63
|
+
constructor(name: string, args?: PolicyArgs, opts?: pulumi.CustomResourceOptions);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Input properties used for looking up and filtering Policy resources.
|
|
67
|
+
*/
|
|
68
|
+
export interface PolicyState {
|
|
69
|
+
/**
|
|
70
|
+
* The JSON-formatted certificate policy
|
|
71
|
+
* specification. Typically read from a file using the `file` function.
|
|
72
|
+
*/
|
|
73
|
+
readonly policySpecification?: pulumi.Input<string>;
|
|
74
|
+
/**
|
|
75
|
+
* The *Trust Protection Plaform* policy folder or
|
|
76
|
+
* *Venafi as a Service* application and issuing template.
|
|
77
|
+
*/
|
|
78
|
+
readonly zone?: pulumi.Input<string>;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* The set of arguments for constructing a Policy resource.
|
|
82
|
+
*/
|
|
83
|
+
export interface PolicyArgs {
|
|
84
|
+
/**
|
|
85
|
+
* The JSON-formatted certificate policy
|
|
86
|
+
* specification. Typically read from a file using the `file` function.
|
|
87
|
+
*/
|
|
88
|
+
readonly policySpecification?: pulumi.Input<string>;
|
|
89
|
+
/**
|
|
90
|
+
* The *Trust Protection Plaform* policy folder or
|
|
91
|
+
* *Venafi as a Service* application and issuing template.
|
|
92
|
+
*/
|
|
93
|
+
readonly zone?: pulumi.Input<string>;
|
|
94
|
+
}
|
package/policy.js
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
const pulumi = require("@pulumi/pulumi");
|
|
6
|
+
const utilities = require("./utilities");
|
|
7
|
+
/**
|
|
8
|
+
* Provides access to read and write certificate policy in Venafi. This can be used
|
|
9
|
+
* to define a new policy (folder in *Trust Protection Platform*; application
|
|
10
|
+
* and/or issuing template in *Venafi as a Service*).
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as venafi from "@pulumi/venafi";
|
|
17
|
+
* import * from "fs";
|
|
18
|
+
*
|
|
19
|
+
* const internalPolicy = new venafi.Policy("internalPolicy", {
|
|
20
|
+
* zone: "My Business App\\Enterprise Trusted Certs",
|
|
21
|
+
* policySpecification: fs.readFileSync("/path-to/internal-policy.json"),
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* ## Import
|
|
26
|
+
*
|
|
27
|
+
* The `venafi_policy` resource supports the Terraform [import](https://www.terraform.io/docs/cli/import/index.html) method.
|
|
28
|
+
*
|
|
29
|
+
* When used, the `zone` and `policy_specification` resource arguments are not required since the zone is a required parameter of the import method and the policy specification is populated from the existing infrastructure. Policy that is successfully imported is also output to a file named after the zone that was specified. hcl resource "venafi_policy" "existing_policy" {}
|
|
30
|
+
*
|
|
31
|
+
* ```sh
|
|
32
|
+
* $ pulumi import venafi:index/policy:Policy existing_policy" "My Business App\\Enterprise Trusted Certs"
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
class Policy extends pulumi.CustomResource {
|
|
36
|
+
constructor(name, argsOrState, opts) {
|
|
37
|
+
let inputs = {};
|
|
38
|
+
opts = opts || {};
|
|
39
|
+
if (opts.id) {
|
|
40
|
+
const state = argsOrState;
|
|
41
|
+
inputs["policySpecification"] = state ? state.policySpecification : undefined;
|
|
42
|
+
inputs["zone"] = state ? state.zone : undefined;
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
const args = argsOrState;
|
|
46
|
+
inputs["policySpecification"] = args ? args.policySpecification : undefined;
|
|
47
|
+
inputs["zone"] = args ? args.zone : undefined;
|
|
48
|
+
}
|
|
49
|
+
if (!opts.version) {
|
|
50
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
51
|
+
}
|
|
52
|
+
super(Policy.__pulumiType, name, inputs, opts);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Get an existing Policy resource's state with the given name, ID, and optional extra
|
|
56
|
+
* properties used to qualify the lookup.
|
|
57
|
+
*
|
|
58
|
+
* @param name The _unique_ name of the resulting resource.
|
|
59
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
60
|
+
* @param state Any extra arguments used during the lookup.
|
|
61
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
62
|
+
*/
|
|
63
|
+
static get(name, id, state, opts) {
|
|
64
|
+
return new Policy(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Returns true if the given object is an instance of Policy. This is designed to work even
|
|
68
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
69
|
+
*/
|
|
70
|
+
static isInstance(obj) {
|
|
71
|
+
if (obj === undefined || obj === null) {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
return obj['__pulumiType'] === Policy.__pulumiType;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.Policy = Policy;
|
|
78
|
+
/** @internal */
|
|
79
|
+
Policy.__pulumiType = 'venafi:index/policy:Policy';
|
|
80
|
+
//# sourceMappingURL=policy.js.map
|
package/policy.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policy.js","sourceRoot":"","sources":["../policy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IA+C7C,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAsC,CAAC;YACrD,MAAM,CAAC,qBAAqB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,MAAM,C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provider type for the venafi package. By default, resources use package-wide configuration
|
|
4
|
+
* settings, however an explicit `Provider` instance may be created and passed during resource
|
|
5
|
+
* construction to achieve fine-grained programmatic control over provider settings. See the
|
|
6
|
+
* [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Provider extends pulumi.ProviderResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
11
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
12
|
+
*/
|
|
13
|
+
static isInstance(obj: any): obj is Provider;
|
|
14
|
+
/**
|
|
15
|
+
* Create a Provider resource with the given unique name, arguments, and options.
|
|
16
|
+
*
|
|
17
|
+
* @param name The _unique_ name of the resource.
|
|
18
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
19
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
20
|
+
*/
|
|
21
|
+
constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The set of arguments for constructing a Provider resource.
|
|
25
|
+
*/
|
|
26
|
+
export interface ProviderArgs {
|
|
27
|
+
/**
|
|
28
|
+
* Access token for TPP, user should use this for authentication
|
|
29
|
+
*/
|
|
30
|
+
readonly accessToken?: pulumi.Input<string>;
|
|
31
|
+
/**
|
|
32
|
+
* API key for Venafi Cloud. Example: 142231b7-cvb0-412e-886b-6aeght0bc93d
|
|
33
|
+
*/
|
|
34
|
+
readonly apiKey?: pulumi.Input<string>;
|
|
35
|
+
/**
|
|
36
|
+
* When set to true, the resulting certificate will be issued by an ephemeral, no trust CA rather than enrolling using
|
|
37
|
+
* Venafi Cloud or Platform. Useful for development and testing.
|
|
38
|
+
*/
|
|
39
|
+
readonly devMode?: pulumi.Input<boolean>;
|
|
40
|
+
/**
|
|
41
|
+
* Password for WebSDK user. Example: password
|
|
42
|
+
*
|
|
43
|
+
* @deprecated , please use access_token instead
|
|
44
|
+
*/
|
|
45
|
+
readonly tppPassword?: pulumi.Input<string>;
|
|
46
|
+
/**
|
|
47
|
+
* WebSDK user for Venafi Platform. Example: admin
|
|
48
|
+
*
|
|
49
|
+
* @deprecated , please use access_token instead
|
|
50
|
+
*/
|
|
51
|
+
readonly tppUsername?: pulumi.Input<string>;
|
|
52
|
+
/**
|
|
53
|
+
* Use to specify a PEM-formatted file that contains certificates to be trust anchors for all communications with the
|
|
54
|
+
* Venafi Web Service. Example: trust_bundle = "${file("chain.pem")}"
|
|
55
|
+
*/
|
|
56
|
+
readonly trustBundle?: pulumi.Input<string>;
|
|
57
|
+
/**
|
|
58
|
+
* The Venafi Web Service URL.. Example: https://tpp.venafi.example/vedsdk
|
|
59
|
+
*/
|
|
60
|
+
readonly url?: pulumi.Input<string>;
|
|
61
|
+
/**
|
|
62
|
+
* DN of the Venafi Platform policy folder or name of the Venafi Cloud zone. Example for Platform: testpolicy\\vault
|
|
63
|
+
* Example for Venafi Cloud: Default
|
|
64
|
+
*/
|
|
65
|
+
readonly zone?: pulumi.Input<string>;
|
|
66
|
+
}
|
package/provider.js
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
const pulumi = require("@pulumi/pulumi");
|
|
6
|
+
const utilities = require("./utilities");
|
|
7
|
+
/**
|
|
8
|
+
* The provider type for the venafi package. By default, resources use package-wide configuration
|
|
9
|
+
* settings, however an explicit `Provider` instance may be created and passed during resource
|
|
10
|
+
* construction to achieve fine-grained programmatic control over provider settings. See the
|
|
11
|
+
* [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
|
|
12
|
+
*/
|
|
13
|
+
class Provider extends pulumi.ProviderResource {
|
|
14
|
+
/**
|
|
15
|
+
* Create a Provider resource with the given unique name, arguments, and options.
|
|
16
|
+
*
|
|
17
|
+
* @param name The _unique_ name of the resource.
|
|
18
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
19
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
20
|
+
*/
|
|
21
|
+
constructor(name, args, opts) {
|
|
22
|
+
let inputs = {};
|
|
23
|
+
opts = opts || {};
|
|
24
|
+
{
|
|
25
|
+
inputs["accessToken"] = args ? args.accessToken : undefined;
|
|
26
|
+
inputs["apiKey"] = args ? args.apiKey : undefined;
|
|
27
|
+
inputs["devMode"] = pulumi.output(args ? args.devMode : undefined).apply(JSON.stringify);
|
|
28
|
+
inputs["tppPassword"] = args ? args.tppPassword : undefined;
|
|
29
|
+
inputs["tppUsername"] = args ? args.tppUsername : undefined;
|
|
30
|
+
inputs["trustBundle"] = args ? args.trustBundle : undefined;
|
|
31
|
+
inputs["url"] = args ? args.url : undefined;
|
|
32
|
+
inputs["zone"] = args ? args.zone : undefined;
|
|
33
|
+
}
|
|
34
|
+
if (!opts.version) {
|
|
35
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
36
|
+
}
|
|
37
|
+
super(Provider.__pulumiType, name, inputs, opts);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
41
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
42
|
+
*/
|
|
43
|
+
static isInstance(obj) {
|
|
44
|
+
if (obj === undefined || obj === null) {
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
return obj['__pulumiType'] === Provider.__pulumiType;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.Provider = Provider;
|
|
51
|
+
/** @internal */
|
|
52
|
+
Provider.__pulumiType = 'venafi';
|
|
53
|
+
//# sourceMappingURL=provider.js.map
|
package/provider.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"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AI,CAAC,CAAC,CAAC,SAAS,CAAC;SACjD;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACrD,CAAC;IApCD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;;AAbL,4BAyCC;AAxCG,gBAAgB;AACO,qBAAY,GAAG,QAAQ,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var childProcess = require("child_process");
|
|
3
|
+
|
|
4
|
+
var args = process.argv.slice(2);
|
|
5
|
+
var res = childProcess.spawnSync("pulumi", ["plugin", "install"].concat(args), {
|
|
6
|
+
stdio: ["ignore", "inherit", "inherit"]
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
if (res.error && res.error.code === "ENOENT") {
|
|
10
|
+
console.error("\nThere was an error installing the resource provider plugin. " +
|
|
11
|
+
"It looks like `pulumi` is not installed on your system. " +
|
|
12
|
+
"Please visit https://pulumi.com/ to install the Pulumi CLI.\n" +
|
|
13
|
+
"You may try manually installing the plugin by running " +
|
|
14
|
+
"`pulumi plugin install " + args.join(" ") + "`");
|
|
15
|
+
} else if (res.error || res.status !== 0) {
|
|
16
|
+
console.error("\nThere was an error installing the resource provider plugin. " +
|
|
17
|
+
"You may try to manually installing the plugin by running " +
|
|
18
|
+
"`pulumi plugin install " + args.join(" ") + "`");
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
process.exit(0);
|