@pulumi/tls 5.0.0 → 5.0.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/certRequest.d.ts +1 -1
- package/certRequest.js +1 -1
- package/getPublicKey.d.ts +2 -2
- package/getPublicKey.js +2 -2
- package/package.json +1 -1
- package/types/input.d.ts +12 -0
- package/types/output.d.ts +12 -0
- package/utilities.d.ts +4 -0
- package/utilities.js +33 -1
- package/utilities.js.map +1 -1
package/certRequest.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import * as outputs from "./types/output";
|
|
|
10
10
|
* import * as tls from "@pulumi/tls";
|
|
11
11
|
*
|
|
12
12
|
* const example = new tls.CertRequest("example", {
|
|
13
|
-
* privateKeyPem: fs.readFileSync("private_key.pem"),
|
|
13
|
+
* privateKeyPem: fs.readFileSync("private_key.pem", "utf8"),
|
|
14
14
|
* subject: {
|
|
15
15
|
* commonName: "example.com",
|
|
16
16
|
* organization: "ACME Examples, Inc",
|
package/certRequest.js
CHANGED
|
@@ -14,7 +14,7 @@ const utilities = require("./utilities");
|
|
|
14
14
|
* import * as tls from "@pulumi/tls";
|
|
15
15
|
*
|
|
16
16
|
* const example = new tls.CertRequest("example", {
|
|
17
|
-
* privateKeyPem: fs.readFileSync("private_key.pem"),
|
|
17
|
+
* privateKeyPem: fs.readFileSync("private_key.pem", "utf8"),
|
|
18
18
|
* subject: {
|
|
19
19
|
* commonName: "example.com",
|
|
20
20
|
* organization: "ACME Examples, Inc",
|
package/getPublicKey.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
16
16
|
* privateKeyPem: ed25519_example.privateKeyPem,
|
|
17
17
|
* });
|
|
18
18
|
* const privateKeyOpenssh-example = tls.getPublicKey({
|
|
19
|
-
* privateKeyOpenssh: fs.readFileSync("~/.ssh/id_rsa_rfc4716"),
|
|
19
|
+
* privateKeyOpenssh: fs.readFileSync("~/.ssh/id_rsa_rfc4716", "utf8"),
|
|
20
20
|
* });
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
@@ -88,7 +88,7 @@ export interface GetPublicKeyResult {
|
|
|
88
88
|
* privateKeyPem: ed25519_example.privateKeyPem,
|
|
89
89
|
* });
|
|
90
90
|
* const privateKeyOpenssh-example = tls.getPublicKey({
|
|
91
|
-
* privateKeyOpenssh: fs.readFileSync("~/.ssh/id_rsa_rfc4716"),
|
|
91
|
+
* privateKeyOpenssh: fs.readFileSync("~/.ssh/id_rsa_rfc4716", "utf8"),
|
|
92
92
|
* });
|
|
93
93
|
* ```
|
|
94
94
|
*/
|
package/getPublicKey.js
CHANGED
|
@@ -22,7 +22,7 @@ const utilities = require("./utilities");
|
|
|
22
22
|
* privateKeyPem: ed25519_example.privateKeyPem,
|
|
23
23
|
* });
|
|
24
24
|
* const privateKeyOpenssh-example = tls.getPublicKey({
|
|
25
|
-
* privateKeyOpenssh: fs.readFileSync("~/.ssh/id_rsa_rfc4716"),
|
|
25
|
+
* privateKeyOpenssh: fs.readFileSync("~/.ssh/id_rsa_rfc4716", "utf8"),
|
|
26
26
|
* });
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
@@ -52,7 +52,7 @@ exports.getPublicKey = getPublicKey;
|
|
|
52
52
|
* privateKeyPem: ed25519_example.privateKeyPem,
|
|
53
53
|
* });
|
|
54
54
|
* const privateKeyOpenssh-example = tls.getPublicKey({
|
|
55
|
-
* privateKeyOpenssh: fs.readFileSync("~/.ssh/id_rsa_rfc4716"),
|
|
55
|
+
* privateKeyOpenssh: fs.readFileSync("~/.ssh/id_rsa_rfc4716", "utf8"),
|
|
56
56
|
* });
|
|
57
57
|
* ```
|
|
58
58
|
*/
|
package/package.json
CHANGED
package/types/input.d.ts
CHANGED
|
@@ -38,9 +38,21 @@ export interface CertRequestSubject {
|
|
|
38
38
|
streetAddresses?: pulumi.Input<pulumi.Input<string>[]>;
|
|
39
39
|
}
|
|
40
40
|
export interface ProviderProxy {
|
|
41
|
+
/**
|
|
42
|
+
* When `true` the provider will discover the proxy configuration from environment variables. This is based upon [`http.ProxyFromEnvironment`](https://pkg.go.dev/net/http#ProxyFromEnvironment) and it supports the same environment variables (default: `true`).
|
|
43
|
+
*/
|
|
41
44
|
fromEnv?: pulumi.Input<boolean>;
|
|
45
|
+
/**
|
|
46
|
+
* Password used for Basic authentication against the Proxy.
|
|
47
|
+
*/
|
|
42
48
|
password?: pulumi.Input<string>;
|
|
49
|
+
/**
|
|
50
|
+
* URL used to connect to the Proxy. Accepted schemes are: `http`, `https`, `socks5`.
|
|
51
|
+
*/
|
|
43
52
|
url?: pulumi.Input<string>;
|
|
53
|
+
/**
|
|
54
|
+
* Username (or Token) used for Basic authentication against the Proxy.
|
|
55
|
+
*/
|
|
44
56
|
username?: pulumi.Input<string>;
|
|
45
57
|
}
|
|
46
58
|
export interface SelfSignedCertSubject {
|
package/types/output.d.ts
CHANGED
|
@@ -123,9 +123,21 @@ export interface SelfSignedCertSubject {
|
|
|
123
123
|
}
|
|
124
124
|
export declare namespace config {
|
|
125
125
|
interface Proxy {
|
|
126
|
+
/**
|
|
127
|
+
* When `true` the provider will discover the proxy configuration from environment variables. This is based upon [`http.ProxyFromEnvironment`](https://pkg.go.dev/net/http#ProxyFromEnvironment) and it supports the same environment variables (default: `true`).
|
|
128
|
+
*/
|
|
126
129
|
fromEnv?: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Password used for Basic authentication against the Proxy.
|
|
132
|
+
*/
|
|
127
133
|
password?: string;
|
|
134
|
+
/**
|
|
135
|
+
* URL used to connect to the Proxy. Accepted schemes are: `http`, `https`, `socks5`.
|
|
136
|
+
*/
|
|
128
137
|
url?: string;
|
|
138
|
+
/**
|
|
139
|
+
* Username (or Token) used for Basic authentication against the Proxy.
|
|
140
|
+
*/
|
|
129
141
|
username?: string;
|
|
130
142
|
}
|
|
131
143
|
}
|
package/utilities.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
1
2
|
export declare function getEnv(...vars: string[]): string | undefined;
|
|
2
3
|
export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
|
|
3
4
|
export declare function getEnvNumber(...vars: string[]): number | undefined;
|
|
4
5
|
export declare function getVersion(): string;
|
|
6
|
+
export declare function callAsync<T>(tok: string, props: pulumi.Inputs, res?: pulumi.Resource, opts?: {
|
|
7
|
+
property?: string;
|
|
8
|
+
}): Promise<T>;
|
package/utilities.js
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
4
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
14
|
+
exports.callAsync = exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
15
|
+
const runtime = require("@pulumi/pulumi/runtime");
|
|
6
16
|
function getEnv(...vars) {
|
|
7
17
|
for (const v of vars) {
|
|
8
18
|
const value = process.env[v];
|
|
@@ -66,4 +76,26 @@ function lazyLoad(exports, props, loadModule) {
|
|
|
66
76
|
}
|
|
67
77
|
}
|
|
68
78
|
exports.lazyLoad = lazyLoad;
|
|
79
|
+
function callAsync(tok, props, res, opts) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
const o = runtime.call(tok, props, res);
|
|
82
|
+
const value = yield o.promise(true /*withUnknowns*/);
|
|
83
|
+
const isKnown = yield o.isKnown;
|
|
84
|
+
const isSecret = yield o.isSecret;
|
|
85
|
+
const problem = !isKnown ? "an unknown value"
|
|
86
|
+
: isSecret ? "a secret value"
|
|
87
|
+
: undefined;
|
|
88
|
+
// Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
|
|
89
|
+
if (problem) {
|
|
90
|
+
throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
|
|
91
|
+
"This is an error in the provider, please report this to the provider developer.");
|
|
92
|
+
}
|
|
93
|
+
// Extract a single property if requested.
|
|
94
|
+
if (opts && opts.property) {
|
|
95
|
+
return value[opts.property];
|
|
96
|
+
}
|
|
97
|
+
return value;
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
exports.callAsync = callAsync;
|
|
69
101
|
//# sourceMappingURL=utilities.js.map
|
package/utilities.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;AAGjF,kDAAkD;AAGlD,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;QAClB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,KAAK,EAAE;YACP,OAAO,KAAK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