@pulumi/tailscale 0.21.1 → 0.23.0
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/acl.d.ts +6 -4
- package/acl.js +14 -12
- package/acl.js.map +1 -1
- package/awsExternalId.js +3 -3
- package/awsExternalId.js.map +1 -1
- package/config/vars.d.ts +10 -13
- package/config/vars.js +6 -0
- package/config/vars.js.map +1 -1
- package/contacts.d.ts +2 -0
- package/contacts.js +12 -10
- package/contacts.js.map +1 -1
- package/deviceAuthorization.d.ts +2 -0
- package/deviceAuthorization.js +9 -7
- package/deviceAuthorization.js.map +1 -1
- package/deviceKey.d.ts +2 -0
- package/deviceKey.js +8 -6
- package/deviceKey.js.map +1 -1
- package/deviceSubnetRoutes.d.ts +2 -0
- package/deviceSubnetRoutes.js +9 -7
- package/deviceSubnetRoutes.js.map +1 -1
- package/deviceTags.d.ts +2 -0
- package/deviceTags.js +9 -7
- package/deviceTags.js.map +1 -1
- package/dnsConfiguration.d.ts +153 -0
- package/dnsConfiguration.js +112 -0
- package/dnsConfiguration.js.map +1 -0
- package/dnsNameservers.d.ts +2 -0
- package/dnsNameservers.js +6 -4
- package/dnsNameservers.js.map +1 -1
- package/dnsPreferences.d.ts +2 -0
- package/dnsPreferences.js +6 -4
- package/dnsPreferences.js.map +1 -1
- package/dnsSearchPaths.d.ts +2 -0
- package/dnsSearchPaths.js +6 -4
- package/dnsSearchPaths.js.map +1 -1
- package/dnsSplitNameservers.d.ts +2 -0
- package/dnsSplitNameservers.js +9 -7
- package/dnsSplitNameservers.js.map +1 -1
- package/index.d.ts +3 -0
- package/index.js +6 -1
- package/index.js.map +1 -1
- package/logstreamConfiguration.d.ts +2 -0
- package/logstreamConfiguration.js +35 -33
- package/logstreamConfiguration.js.map +1 -1
- package/oauthClient.d.ts +2 -0
- package/oauthClient.js +13 -11
- package/oauthClient.js.map +1 -1
- package/package.json +2 -2
- package/postureIntegration.d.ts +2 -0
- package/postureIntegration.js +15 -13
- package/postureIntegration.js.map +1 -1
- package/provider.d.ts +19 -23
- package/provider.js +9 -8
- package/provider.js.map +1 -1
- package/tailnetKey.js +21 -21
- package/tailnetKey.js.map +1 -1
- package/tailnetSettings.d.ts +18 -3
- package/tailnetSettings.js +26 -21
- package/tailnetSettings.js.map +1 -1
- package/types/input.d.ts +31 -0
- package/types/output.d.ts +31 -0
- package/utilities.js +18 -29
- package/utilities.js.map +1 -1
- package/webhook.d.ts +2 -0
- package/webhook.js +12 -10
- package/webhook.js.map +1 -1
|
@@ -46,6 +46,8 @@ const utilities = require("./utilities");
|
|
|
46
46
|
*
|
|
47
47
|
* ## Import
|
|
48
48
|
*
|
|
49
|
+
* The `pulumi import` command can be used, for example:
|
|
50
|
+
*
|
|
49
51
|
* Logstream configuration can be imported using the logstream configuration id, e.g.,
|
|
50
52
|
*
|
|
51
53
|
* ```sh
|
|
@@ -63,7 +65,7 @@ class LogstreamConfiguration extends pulumi.CustomResource {
|
|
|
63
65
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
64
66
|
*/
|
|
65
67
|
static get(name, id, state, opts) {
|
|
66
|
-
return new LogstreamConfiguration(name, state,
|
|
68
|
+
return new LogstreamConfiguration(name, state, { ...opts, id: id });
|
|
67
69
|
}
|
|
68
70
|
/**
|
|
69
71
|
* Returns true if the given object is an instance of LogstreamConfiguration. This is designed to work even
|
|
@@ -80,45 +82,45 @@ class LogstreamConfiguration extends pulumi.CustomResource {
|
|
|
80
82
|
opts = opts || {};
|
|
81
83
|
if (opts.id) {
|
|
82
84
|
const state = argsOrState;
|
|
83
|
-
resourceInputs["compressionFormat"] = state
|
|
84
|
-
resourceInputs["destinationType"] = state
|
|
85
|
-
resourceInputs["logType"] = state
|
|
86
|
-
resourceInputs["s3AccessKeyId"] = state
|
|
87
|
-
resourceInputs["s3AuthenticationType"] = state
|
|
88
|
-
resourceInputs["s3Bucket"] = state
|
|
89
|
-
resourceInputs["s3ExternalId"] = state
|
|
90
|
-
resourceInputs["s3KeyPrefix"] = state
|
|
91
|
-
resourceInputs["s3Region"] = state
|
|
92
|
-
resourceInputs["s3RoleArn"] = state
|
|
93
|
-
resourceInputs["s3SecretAccessKey"] = state
|
|
94
|
-
resourceInputs["token"] = state
|
|
95
|
-
resourceInputs["uploadPeriodMinutes"] = state
|
|
96
|
-
resourceInputs["url"] = state
|
|
97
|
-
resourceInputs["user"] = state
|
|
85
|
+
resourceInputs["compressionFormat"] = state?.compressionFormat;
|
|
86
|
+
resourceInputs["destinationType"] = state?.destinationType;
|
|
87
|
+
resourceInputs["logType"] = state?.logType;
|
|
88
|
+
resourceInputs["s3AccessKeyId"] = state?.s3AccessKeyId;
|
|
89
|
+
resourceInputs["s3AuthenticationType"] = state?.s3AuthenticationType;
|
|
90
|
+
resourceInputs["s3Bucket"] = state?.s3Bucket;
|
|
91
|
+
resourceInputs["s3ExternalId"] = state?.s3ExternalId;
|
|
92
|
+
resourceInputs["s3KeyPrefix"] = state?.s3KeyPrefix;
|
|
93
|
+
resourceInputs["s3Region"] = state?.s3Region;
|
|
94
|
+
resourceInputs["s3RoleArn"] = state?.s3RoleArn;
|
|
95
|
+
resourceInputs["s3SecretAccessKey"] = state?.s3SecretAccessKey;
|
|
96
|
+
resourceInputs["token"] = state?.token;
|
|
97
|
+
resourceInputs["uploadPeriodMinutes"] = state?.uploadPeriodMinutes;
|
|
98
|
+
resourceInputs["url"] = state?.url;
|
|
99
|
+
resourceInputs["user"] = state?.user;
|
|
98
100
|
}
|
|
99
101
|
else {
|
|
100
102
|
const args = argsOrState;
|
|
101
|
-
if (
|
|
103
|
+
if (args?.destinationType === undefined && !opts.urn) {
|
|
102
104
|
throw new Error("Missing required property 'destinationType'");
|
|
103
105
|
}
|
|
104
|
-
if (
|
|
106
|
+
if (args?.logType === undefined && !opts.urn) {
|
|
105
107
|
throw new Error("Missing required property 'logType'");
|
|
106
108
|
}
|
|
107
|
-
resourceInputs["compressionFormat"] = args
|
|
108
|
-
resourceInputs["destinationType"] = args
|
|
109
|
-
resourceInputs["logType"] = args
|
|
110
|
-
resourceInputs["s3AccessKeyId"] = args
|
|
111
|
-
resourceInputs["s3AuthenticationType"] = args
|
|
112
|
-
resourceInputs["s3Bucket"] = args
|
|
113
|
-
resourceInputs["s3ExternalId"] = args
|
|
114
|
-
resourceInputs["s3KeyPrefix"] = args
|
|
115
|
-
resourceInputs["s3Region"] = args
|
|
116
|
-
resourceInputs["s3RoleArn"] = args
|
|
117
|
-
resourceInputs["s3SecretAccessKey"] =
|
|
118
|
-
resourceInputs["token"] =
|
|
119
|
-
resourceInputs["uploadPeriodMinutes"] = args
|
|
120
|
-
resourceInputs["url"] = args
|
|
121
|
-
resourceInputs["user"] = args
|
|
109
|
+
resourceInputs["compressionFormat"] = args?.compressionFormat;
|
|
110
|
+
resourceInputs["destinationType"] = args?.destinationType;
|
|
111
|
+
resourceInputs["logType"] = args?.logType;
|
|
112
|
+
resourceInputs["s3AccessKeyId"] = args?.s3AccessKeyId;
|
|
113
|
+
resourceInputs["s3AuthenticationType"] = args?.s3AuthenticationType;
|
|
114
|
+
resourceInputs["s3Bucket"] = args?.s3Bucket;
|
|
115
|
+
resourceInputs["s3ExternalId"] = args?.s3ExternalId;
|
|
116
|
+
resourceInputs["s3KeyPrefix"] = args?.s3KeyPrefix;
|
|
117
|
+
resourceInputs["s3Region"] = args?.s3Region;
|
|
118
|
+
resourceInputs["s3RoleArn"] = args?.s3RoleArn;
|
|
119
|
+
resourceInputs["s3SecretAccessKey"] = args?.s3SecretAccessKey ? pulumi.secret(args.s3SecretAccessKey) : undefined;
|
|
120
|
+
resourceInputs["token"] = args?.token ? pulumi.secret(args.token) : undefined;
|
|
121
|
+
resourceInputs["uploadPeriodMinutes"] = args?.uploadPeriodMinutes;
|
|
122
|
+
resourceInputs["url"] = args?.url;
|
|
123
|
+
resourceInputs["user"] = args?.user;
|
|
122
124
|
}
|
|
123
125
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
124
126
|
const secretOpts = { additionalSecretOutputs: ["s3SecretAccessKey", "token"] };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logstreamConfiguration.js","sourceRoot":"","sources":["../logstreamConfiguration.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"logstreamConfiguration.js","sourceRoot":"","sources":["../logstreamConfiguration.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,MAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAC7D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmC,EAAE,IAAmC;QACjI,OAAO,IAAI,sBAAsB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7E,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,sBAAsB,CAAC,YAAY,CAAC;IACvE,CAAC;IAuED,YAAY,IAAY,EAAE,WAAsE,EAAE,IAAmC;QACjI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAsD,CAAC;YACrE,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,EAAE,iBAAiB,CAAC;YAC/D,cAAc,CAAC,iBAAiB,CAAC,GAAG,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AI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,sBAAsB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3E,CAAC;;AAjJL,wDAkJC;AApIG,gBAAgB;AACO,mCAAY,GAAG,+DAA+D,CAAC"}
|
package/oauthClient.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
17
17
|
*
|
|
18
18
|
* ## Import
|
|
19
19
|
*
|
|
20
|
+
* The `pulumi import` command can be used, for example:
|
|
21
|
+
*
|
|
20
22
|
* Note: Sensitive fields such as the secret key are not returned by the API and will be unset in the Terraform state after import.
|
|
21
23
|
*
|
|
22
24
|
* ```sh
|
package/oauthClient.js
CHANGED
|
@@ -23,6 +23,8 @@ const utilities = require("./utilities");
|
|
|
23
23
|
*
|
|
24
24
|
* ## Import
|
|
25
25
|
*
|
|
26
|
+
* The `pulumi import` command can be used, for example:
|
|
27
|
+
*
|
|
26
28
|
* Note: Sensitive fields such as the secret key are not returned by the API and will be unset in the Terraform state after import.
|
|
27
29
|
*
|
|
28
30
|
* ```sh
|
|
@@ -40,7 +42,7 @@ class OauthClient extends pulumi.CustomResource {
|
|
|
40
42
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
41
43
|
*/
|
|
42
44
|
static get(name, id, state, opts) {
|
|
43
|
-
return new OauthClient(name, state,
|
|
45
|
+
return new OauthClient(name, state, { ...opts, id: id });
|
|
44
46
|
}
|
|
45
47
|
/**
|
|
46
48
|
* Returns true if the given object is an instance of OauthClient. This is designed to work even
|
|
@@ -57,21 +59,21 @@ class OauthClient extends pulumi.CustomResource {
|
|
|
57
59
|
opts = opts || {};
|
|
58
60
|
if (opts.id) {
|
|
59
61
|
const state = argsOrState;
|
|
60
|
-
resourceInputs["createdAt"] = state
|
|
61
|
-
resourceInputs["description"] = state
|
|
62
|
-
resourceInputs["key"] = state
|
|
63
|
-
resourceInputs["scopes"] = state
|
|
64
|
-
resourceInputs["tags"] = state
|
|
65
|
-
resourceInputs["userId"] = state
|
|
62
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
63
|
+
resourceInputs["description"] = state?.description;
|
|
64
|
+
resourceInputs["key"] = state?.key;
|
|
65
|
+
resourceInputs["scopes"] = state?.scopes;
|
|
66
|
+
resourceInputs["tags"] = state?.tags;
|
|
67
|
+
resourceInputs["userId"] = state?.userId;
|
|
66
68
|
}
|
|
67
69
|
else {
|
|
68
70
|
const args = argsOrState;
|
|
69
|
-
if (
|
|
71
|
+
if (args?.scopes === undefined && !opts.urn) {
|
|
70
72
|
throw new Error("Missing required property 'scopes'");
|
|
71
73
|
}
|
|
72
|
-
resourceInputs["description"] = args
|
|
73
|
-
resourceInputs["scopes"] = args
|
|
74
|
-
resourceInputs["tags"] = args
|
|
74
|
+
resourceInputs["description"] = args?.description;
|
|
75
|
+
resourceInputs["scopes"] = args?.scopes;
|
|
76
|
+
resourceInputs["tags"] = args?.tags;
|
|
75
77
|
resourceInputs["createdAt"] = undefined /*out*/;
|
|
76
78
|
resourceInputs["key"] = undefined /*out*/;
|
|
77
79
|
resourceInputs["userId"] = undefined /*out*/;
|
package/oauthClient.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauthClient.js","sourceRoot":"","sources":["../oauthClient.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"oauthClient.js","sourceRoot":"","sources":["../oauthClient.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY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,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC1C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;QACxD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AAxFL,kCAyFC;AA3EG,gBAAgB;AACO,wBAAY,GAAG,yCAAyC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/tailscale",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Tailscale cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"pulumi": {
|
|
24
24
|
"resource": true,
|
|
25
25
|
"name": "tailscale",
|
|
26
|
-
"version": "0.
|
|
26
|
+
"version": "0.23.0"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/postureIntegration.d.ts
CHANGED
package/postureIntegration.js
CHANGED
|
@@ -24,6 +24,8 @@ const utilities = require("./utilities");
|
|
|
24
24
|
*
|
|
25
25
|
* ## Import
|
|
26
26
|
*
|
|
27
|
+
* The `pulumi import` command can be used, for example:
|
|
28
|
+
*
|
|
27
29
|
* Posture integration can be imported using the posture integration id, e.g.,
|
|
28
30
|
*
|
|
29
31
|
* ```sh
|
|
@@ -41,7 +43,7 @@ class PostureIntegration extends pulumi.CustomResource {
|
|
|
41
43
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
42
44
|
*/
|
|
43
45
|
static get(name, id, state, opts) {
|
|
44
|
-
return new PostureIntegration(name, state,
|
|
46
|
+
return new PostureIntegration(name, state, { ...opts, id: id });
|
|
45
47
|
}
|
|
46
48
|
/**
|
|
47
49
|
* Returns true if the given object is an instance of PostureIntegration. This is designed to work even
|
|
@@ -58,25 +60,25 @@ class PostureIntegration extends pulumi.CustomResource {
|
|
|
58
60
|
opts = opts || {};
|
|
59
61
|
if (opts.id) {
|
|
60
62
|
const state = argsOrState;
|
|
61
|
-
resourceInputs["clientId"] = state
|
|
62
|
-
resourceInputs["clientSecret"] = state
|
|
63
|
-
resourceInputs["cloudId"] = state
|
|
64
|
-
resourceInputs["postureProvider"] = state
|
|
65
|
-
resourceInputs["tenantId"] = state
|
|
63
|
+
resourceInputs["clientId"] = state?.clientId;
|
|
64
|
+
resourceInputs["clientSecret"] = state?.clientSecret;
|
|
65
|
+
resourceInputs["cloudId"] = state?.cloudId;
|
|
66
|
+
resourceInputs["postureProvider"] = state?.postureProvider;
|
|
67
|
+
resourceInputs["tenantId"] = state?.tenantId;
|
|
66
68
|
}
|
|
67
69
|
else {
|
|
68
70
|
const args = argsOrState;
|
|
69
|
-
if (
|
|
71
|
+
if (args?.clientSecret === undefined && !opts.urn) {
|
|
70
72
|
throw new Error("Missing required property 'clientSecret'");
|
|
71
73
|
}
|
|
72
|
-
if (
|
|
74
|
+
if (args?.postureProvider === undefined && !opts.urn) {
|
|
73
75
|
throw new Error("Missing required property 'postureProvider'");
|
|
74
76
|
}
|
|
75
|
-
resourceInputs["clientId"] = args
|
|
76
|
-
resourceInputs["clientSecret"] = args
|
|
77
|
-
resourceInputs["cloudId"] = args
|
|
78
|
-
resourceInputs["postureProvider"] = args
|
|
79
|
-
resourceInputs["tenantId"] = args
|
|
77
|
+
resourceInputs["clientId"] = args?.clientId;
|
|
78
|
+
resourceInputs["clientSecret"] = args?.clientSecret;
|
|
79
|
+
resourceInputs["cloudId"] = args?.cloudId;
|
|
80
|
+
resourceInputs["postureProvider"] = args?.postureProvider;
|
|
81
|
+
resourceInputs["tenantId"] = args?.tenantId;
|
|
80
82
|
}
|
|
81
83
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
82
84
|
super(PostureIntegration.__pulumiType, name, resourceInputs, opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postureIntegration.js","sourceRoot":"","sources":["../postureIntegration.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"postureIntegration.js","sourceRoot":"","sources":["../postureIntegration.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACzE,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,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;IA+BD,YAAY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AK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AAnFL,gDAoFC;AAtEG,gBAAgB;AACO,+BAAY,GAAG,uDAAuD,CAAC"}
|
package/provider.d.ts
CHANGED
|
@@ -12,28 +12,27 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
12
12
|
*/
|
|
13
13
|
static isInstance(obj: any): obj is Provider;
|
|
14
14
|
/**
|
|
15
|
-
* The API key to use for authenticating requests to the API. Can be set via the TAILSCALE_API_KEY environment variable.
|
|
16
|
-
* Conflicts with 'oauth_client_id' and 'oauth_client_secret'.
|
|
15
|
+
* The API key to use for authenticating requests to the API. Can be set via the TAILSCALE_API_KEY environment variable. Conflicts with 'oauth_client_id' and 'oauth_client_secret'.
|
|
17
16
|
*/
|
|
18
17
|
readonly apiKey: pulumi.Output<string | undefined>;
|
|
19
18
|
/**
|
|
20
|
-
* The base URL of the Tailscale API. Defaults to https://api.tailscale.com. Can be set via the TAILSCALE_BASE_URL
|
|
21
|
-
* environment variable.
|
|
19
|
+
* The base URL of the Tailscale API. Defaults to https://api.tailscale.com. Can be set via the TAILSCALE_BASE_URL environment variable.
|
|
22
20
|
*/
|
|
23
21
|
readonly baseUrl: pulumi.Output<string | undefined>;
|
|
24
22
|
/**
|
|
25
|
-
* The
|
|
26
|
-
|
|
23
|
+
* The jwt identity token to exchange for a Tailscale API token when using a federated identity client. Can be set via the TAILSCALE_IDENTITY_TOKEN environment variable. Conflicts with 'api_key' and 'oauth_client_secret'.
|
|
24
|
+
*/
|
|
25
|
+
readonly identityToken: pulumi.Output<string | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* The OAuth application's ID when using OAuth client credentials. Can be set via the TAILSCALE_OAUTH_CLIENT_ID environment variable. Either 'oauth_client_secret' or 'identity_token' must be set alongside 'oauth_client_id'. Conflicts with 'api_key'.
|
|
27
28
|
*/
|
|
28
29
|
readonly oauthClientId: pulumi.Output<string | undefined>;
|
|
29
30
|
/**
|
|
30
|
-
* The OAuth application's secret when using OAuth client credentials. Can be set via the TAILSCALE_OAUTH_CLIENT_SECRET
|
|
31
|
-
* environment variable. Both 'oauth_client_id' and 'oauth_client_secret' must be set. Conflicts with 'api_key'.
|
|
31
|
+
* The OAuth application's secret when using OAuth client credentials. Can be set via the TAILSCALE_OAUTH_CLIENT_SECRET environment variable. Conflicts with 'api_key' and 'identity_token'.
|
|
32
32
|
*/
|
|
33
33
|
readonly oauthClientSecret: pulumi.Output<string | undefined>;
|
|
34
34
|
/**
|
|
35
|
-
* The
|
|
36
|
-
* variable. Default is the tailnet that owns API credentials passed to the provider.
|
|
35
|
+
* The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. Can be set via the TAILSCALE_TAILNET environment variable. Default is the tailnet that owns API credentials passed to the provider.
|
|
37
36
|
*/
|
|
38
37
|
readonly tailnet: pulumi.Output<string | undefined>;
|
|
39
38
|
/**
|
|
@@ -58,34 +57,31 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
58
57
|
*/
|
|
59
58
|
export interface ProviderArgs {
|
|
60
59
|
/**
|
|
61
|
-
* The API key to use for authenticating requests to the API. Can be set via the TAILSCALE_API_KEY environment variable.
|
|
62
|
-
* Conflicts with 'oauth_client_id' and 'oauth_client_secret'.
|
|
60
|
+
* The API key to use for authenticating requests to the API. Can be set via the TAILSCALE_API_KEY environment variable. Conflicts with 'oauth_client_id' and 'oauth_client_secret'.
|
|
63
61
|
*/
|
|
64
62
|
apiKey?: pulumi.Input<string>;
|
|
65
63
|
/**
|
|
66
|
-
* The base URL of the Tailscale API. Defaults to https://api.tailscale.com. Can be set via the TAILSCALE_BASE_URL
|
|
67
|
-
* environment variable.
|
|
64
|
+
* The base URL of the Tailscale API. Defaults to https://api.tailscale.com. Can be set via the TAILSCALE_BASE_URL environment variable.
|
|
68
65
|
*/
|
|
69
66
|
baseUrl?: pulumi.Input<string>;
|
|
70
67
|
/**
|
|
71
|
-
* The
|
|
72
|
-
|
|
68
|
+
* The jwt identity token to exchange for a Tailscale API token when using a federated identity client. Can be set via the TAILSCALE_IDENTITY_TOKEN environment variable. Conflicts with 'api_key' and 'oauth_client_secret'.
|
|
69
|
+
*/
|
|
70
|
+
identityToken?: pulumi.Input<string>;
|
|
71
|
+
/**
|
|
72
|
+
* The OAuth application's ID when using OAuth client credentials. Can be set via the TAILSCALE_OAUTH_CLIENT_ID environment variable. Either 'oauth_client_secret' or 'identity_token' must be set alongside 'oauth_client_id'. Conflicts with 'api_key'.
|
|
73
73
|
*/
|
|
74
74
|
oauthClientId?: pulumi.Input<string>;
|
|
75
75
|
/**
|
|
76
|
-
* The OAuth application's secret when using OAuth client credentials. Can be set via the TAILSCALE_OAUTH_CLIENT_SECRET
|
|
77
|
-
* environment variable. Both 'oauth_client_id' and 'oauth_client_secret' must be set. Conflicts with 'api_key'.
|
|
76
|
+
* The OAuth application's secret when using OAuth client credentials. Can be set via the TAILSCALE_OAUTH_CLIENT_SECRET environment variable. Conflicts with 'api_key' and 'identity_token'.
|
|
78
77
|
*/
|
|
79
78
|
oauthClientSecret?: pulumi.Input<string>;
|
|
80
79
|
/**
|
|
81
|
-
* The OAuth 2.0 scopes to request when
|
|
82
|
-
* https://tailscale.com/kb/1215/oauth-clients/#scopes for available scopes. Only valid when both 'oauth_client_id' and
|
|
83
|
-
* 'oauth_client_secret' are set.
|
|
80
|
+
* The OAuth 2.0 scopes to request when generating the access token using the supplied OAuth client credentials. See https://tailscale.com/kb/1215/oauth-clients/#scopes for available scopes. Only valid when both 'oauth_client_id' and 'oauth_client_secret' are set.
|
|
84
81
|
*/
|
|
85
82
|
scopes?: pulumi.Input<pulumi.Input<string>[]>;
|
|
86
83
|
/**
|
|
87
|
-
* The
|
|
88
|
-
* variable. Default is the tailnet that owns API credentials passed to the provider.
|
|
84
|
+
* The tailnet ID. Tailnets created before Oct 2025 can still use the legacy ID, but the Tailnet ID is the preferred identifier. Can be set via the TAILSCALE_TAILNET environment variable. Default is the tailnet that owns API credentials passed to the provider.
|
|
89
85
|
*/
|
|
90
86
|
tailnet?: pulumi.Input<string>;
|
|
91
87
|
/**
|
package/provider.js
CHANGED
|
@@ -33,16 +33,17 @@ class Provider extends pulumi.ProviderResource {
|
|
|
33
33
|
let resourceInputs = {};
|
|
34
34
|
opts = opts || {};
|
|
35
35
|
{
|
|
36
|
-
resourceInputs["apiKey"] =
|
|
37
|
-
resourceInputs["baseUrl"] = args
|
|
38
|
-
resourceInputs["
|
|
39
|
-
resourceInputs["
|
|
40
|
-
resourceInputs["
|
|
41
|
-
resourceInputs["
|
|
42
|
-
resourceInputs["
|
|
36
|
+
resourceInputs["apiKey"] = args?.apiKey ? pulumi.secret(args.apiKey) : undefined;
|
|
37
|
+
resourceInputs["baseUrl"] = args?.baseUrl;
|
|
38
|
+
resourceInputs["identityToken"] = args?.identityToken ? pulumi.secret(args.identityToken) : undefined;
|
|
39
|
+
resourceInputs["oauthClientId"] = args?.oauthClientId;
|
|
40
|
+
resourceInputs["oauthClientSecret"] = args?.oauthClientSecret ? pulumi.secret(args.oauthClientSecret) : undefined;
|
|
41
|
+
resourceInputs["scopes"] = pulumi.output(args?.scopes).apply(JSON.stringify);
|
|
42
|
+
resourceInputs["tailnet"] = args?.tailnet;
|
|
43
|
+
resourceInputs["userAgent"] = args?.userAgent;
|
|
43
44
|
}
|
|
44
45
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
45
|
-
const secretOpts = { additionalSecretOutputs: ["apiKey", "oauthClientSecret"] };
|
|
46
|
+
const secretOpts = { additionalSecretOutputs: ["apiKey", "identityToken", "oauthClientSecret"] };
|
|
46
47
|
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
47
48
|
super(Provider.__pulumiType, name, resourceInputs, opts);
|
|
48
49
|
}
|
package/provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts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param opts Optional settings to control the behavior of the CustomResource.
|
|
47
47
|
*/
|
|
48
48
|
static get(name, id, state, opts) {
|
|
49
|
-
return new TailnetKey(name, state,
|
|
49
|
+
return new TailnetKey(name, state, { ...opts, id: id });
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* Returns true if the given object is an instance of TailnetKey. This is designed to work even
|
|
@@ -63,29 +63,29 @@ class TailnetKey extends pulumi.CustomResource {
|
|
|
63
63
|
opts = opts || {};
|
|
64
64
|
if (opts.id) {
|
|
65
65
|
const state = argsOrState;
|
|
66
|
-
resourceInputs["createdAt"] = state
|
|
67
|
-
resourceInputs["description"] = state
|
|
68
|
-
resourceInputs["ephemeral"] = state
|
|
69
|
-
resourceInputs["expiresAt"] = state
|
|
70
|
-
resourceInputs["expiry"] = state
|
|
71
|
-
resourceInputs["invalid"] = state
|
|
72
|
-
resourceInputs["key"] = state
|
|
73
|
-
resourceInputs["preauthorized"] = state
|
|
74
|
-
resourceInputs["recreateIfInvalid"] = state
|
|
75
|
-
resourceInputs["reusable"] = state
|
|
76
|
-
resourceInputs["tags"] = state
|
|
77
|
-
resourceInputs["userId"] = state
|
|
66
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
67
|
+
resourceInputs["description"] = state?.description;
|
|
68
|
+
resourceInputs["ephemeral"] = state?.ephemeral;
|
|
69
|
+
resourceInputs["expiresAt"] = state?.expiresAt;
|
|
70
|
+
resourceInputs["expiry"] = state?.expiry;
|
|
71
|
+
resourceInputs["invalid"] = state?.invalid;
|
|
72
|
+
resourceInputs["key"] = state?.key;
|
|
73
|
+
resourceInputs["preauthorized"] = state?.preauthorized;
|
|
74
|
+
resourceInputs["recreateIfInvalid"] = state?.recreateIfInvalid;
|
|
75
|
+
resourceInputs["reusable"] = state?.reusable;
|
|
76
|
+
resourceInputs["tags"] = state?.tags;
|
|
77
|
+
resourceInputs["userId"] = state?.userId;
|
|
78
78
|
}
|
|
79
79
|
else {
|
|
80
80
|
const args = argsOrState;
|
|
81
|
-
resourceInputs["description"] = args
|
|
82
|
-
resourceInputs["ephemeral"] = args
|
|
83
|
-
resourceInputs["expiry"] = args
|
|
84
|
-
resourceInputs["preauthorized"] = args
|
|
85
|
-
resourceInputs["recreateIfInvalid"] = args
|
|
86
|
-
resourceInputs["reusable"] = args
|
|
87
|
-
resourceInputs["tags"] = args
|
|
88
|
-
resourceInputs["userId"] = args
|
|
81
|
+
resourceInputs["description"] = args?.description;
|
|
82
|
+
resourceInputs["ephemeral"] = args?.ephemeral;
|
|
83
|
+
resourceInputs["expiry"] = args?.expiry;
|
|
84
|
+
resourceInputs["preauthorized"] = args?.preauthorized;
|
|
85
|
+
resourceInputs["recreateIfInvalid"] = args?.recreateIfInvalid;
|
|
86
|
+
resourceInputs["reusable"] = args?.reusable;
|
|
87
|
+
resourceInputs["tags"] = args?.tags;
|
|
88
|
+
resourceInputs["userId"] = args?.userId;
|
|
89
89
|
resourceInputs["createdAt"] = undefined /*out*/;
|
|
90
90
|
resourceInputs["expiresAt"] = undefined /*out*/;
|
|
91
91
|
resourceInputs["invalid"] = undefined /*out*/;
|
package/tailnetKey.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tailnetKey.js","sourceRoot":"","sources":["../tailnetKey.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"tailnetKey.js","sourceRoot":"","sources":["../tailnetKey.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yC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Y,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AAzHL,gCA0HC;AA5GG,gBAAgB;AACO,uBAAY,GAAG,uCAAuC,CAAC"}
|
package/tailnetSettings.d.ts
CHANGED
|
@@ -17,11 +17,14 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
17
17
|
* usersApprovalOn: true,
|
|
18
18
|
* usersRoleAllowedToJoinExternalTailnet: "member",
|
|
19
19
|
* postureIdentityCollectionOn: true,
|
|
20
|
+
* httpsEnabled: true,
|
|
20
21
|
* });
|
|
21
22
|
* ```
|
|
22
23
|
*
|
|
23
24
|
* ## Import
|
|
24
25
|
*
|
|
26
|
+
* The `pulumi import` command can be used, for example:
|
|
27
|
+
*
|
|
25
28
|
* ID doesn't matter.
|
|
26
29
|
*
|
|
27
30
|
* ```sh
|
|
@@ -62,7 +65,11 @@ export declare class TailnetSettings extends pulumi.CustomResource {
|
|
|
62
65
|
*/
|
|
63
66
|
readonly devicesKeyDurationDays: pulumi.Output<number>;
|
|
64
67
|
/**
|
|
65
|
-
* Whether
|
|
68
|
+
* Whether provisioning of HTTPS certificates is enabled for the tailnet
|
|
69
|
+
*/
|
|
70
|
+
readonly httpsEnabled: pulumi.Output<boolean>;
|
|
71
|
+
/**
|
|
72
|
+
* Whether network flow logs are enabled for the tailnet
|
|
66
73
|
*/
|
|
67
74
|
readonly networkFlowLoggingOn: pulumi.Output<boolean>;
|
|
68
75
|
/**
|
|
@@ -112,7 +119,11 @@ export interface TailnetSettingsState {
|
|
|
112
119
|
*/
|
|
113
120
|
devicesKeyDurationDays?: pulumi.Input<number>;
|
|
114
121
|
/**
|
|
115
|
-
* Whether
|
|
122
|
+
* Whether provisioning of HTTPS certificates is enabled for the tailnet
|
|
123
|
+
*/
|
|
124
|
+
httpsEnabled?: pulumi.Input<boolean>;
|
|
125
|
+
/**
|
|
126
|
+
* Whether network flow logs are enabled for the tailnet
|
|
116
127
|
*/
|
|
117
128
|
networkFlowLoggingOn?: pulumi.Input<boolean>;
|
|
118
129
|
/**
|
|
@@ -154,7 +165,11 @@ export interface TailnetSettingsArgs {
|
|
|
154
165
|
*/
|
|
155
166
|
devicesKeyDurationDays?: pulumi.Input<number>;
|
|
156
167
|
/**
|
|
157
|
-
* Whether
|
|
168
|
+
* Whether provisioning of HTTPS certificates is enabled for the tailnet
|
|
169
|
+
*/
|
|
170
|
+
httpsEnabled?: pulumi.Input<boolean>;
|
|
171
|
+
/**
|
|
172
|
+
* Whether network flow logs are enabled for the tailnet
|
|
158
173
|
*/
|
|
159
174
|
networkFlowLoggingOn?: pulumi.Input<boolean>;
|
|
160
175
|
/**
|