@pulumi/kong 4.1.0 → 4.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/README.md +1 -1
- package/certificate.d.ts +8 -8
- package/certificate.js +12 -13
- package/certificate.js.map +1 -1
- package/config/index.js +11 -4
- package/config/index.js.map +1 -1
- package/config/vars.d.ts +8 -8
- package/config/vars.js +51 -33
- package/config/vars.js.map +1 -1
- package/consumer.d.ts +6 -6
- package/consumer.js +10 -11
- package/consumer.js.map +1 -1
- package/consumerAcl.d.ts +6 -6
- package/consumerAcl.js +10 -11
- package/consumerAcl.js.map +1 -1
- package/consumerBasicAuth.d.ts +8 -8
- package/consumerBasicAuth.js +12 -13
- package/consumerBasicAuth.js.map +1 -1
- package/consumerJwtAuth.d.ts +12 -12
- package/consumerJwtAuth.js +16 -17
- package/consumerJwtAuth.js.map +1 -1
- package/consumerKeyAuth.d.ts +98 -0
- package/consumerKeyAuth.js +82 -0
- package/consumerKeyAuth.js.map +1 -0
- package/index.d.ts +1 -0
- package/index.js +27 -14
- package/index.js.map +1 -1
- package/package.json +4 -3
- package/package.json.bak +5 -3
- package/package.json.dev +6 -4
- package/plugin.d.ts +70 -32
- package/plugin.js +22 -33
- package/plugin.js.map +1 -1
- package/provider.d.ts +32 -8
- package/provider.js +12 -13
- package/provider.js.map +1 -1
- package/route.d.ts +36 -36
- package/route.js +40 -41
- package/route.js.map +1 -1
- package/service.d.ts +154 -44
- package/service.js +32 -49
- package/service.js.map +1 -1
- package/target.d.ts +8 -8
- package/target.js +12 -13
- package/target.js.map +1 -1
- package/types/index.js +1 -0
- package/types/index.js.map +1 -1
- package/upstream.d.ts +24 -24
- package/upstream.js +28 -29
- package/upstream.js.map +1 -1
- package/utilities.js +6 -0
- package/utilities.js.map +1 -1
package/consumerJwtAuth.d.ts
CHANGED
|
@@ -85,27 +85,27 @@ export interface ConsumerJwtAuthState {
|
|
|
85
85
|
/**
|
|
86
86
|
* The algorithm used to verify the token’s signature. Can be HS256, HS384, HS512, RS256, or ES256, Default is `HS256`
|
|
87
87
|
*/
|
|
88
|
-
|
|
88
|
+
algorithm?: pulumi.Input<string>;
|
|
89
89
|
/**
|
|
90
90
|
* the id of the consumer to be configured with jwt auth
|
|
91
91
|
*/
|
|
92
|
-
|
|
92
|
+
consumerId?: pulumi.Input<string>;
|
|
93
93
|
/**
|
|
94
94
|
* A unique string identifying the credential. If left out, it will be auto-generated.
|
|
95
95
|
*/
|
|
96
|
-
|
|
96
|
+
key?: pulumi.Input<string>;
|
|
97
97
|
/**
|
|
98
98
|
* If algorithm is `RS256` or `ES256`, the public key (in PEM format) to use to verify the token’s signature
|
|
99
99
|
*/
|
|
100
|
-
|
|
100
|
+
rsaPublicKey?: pulumi.Input<string>;
|
|
101
101
|
/**
|
|
102
102
|
* If algorithm is `HS256` or `ES256`, the secret used to sign JWTs for this credential. If left out, will be auto-generated
|
|
103
103
|
*/
|
|
104
|
-
|
|
104
|
+
secret?: pulumi.Input<string>;
|
|
105
105
|
/**
|
|
106
106
|
* A list of strings associated with the consumer JWT auth for grouping and filtering
|
|
107
107
|
*/
|
|
108
|
-
|
|
108
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
109
109
|
}
|
|
110
110
|
/**
|
|
111
111
|
* The set of arguments for constructing a ConsumerJwtAuth resource.
|
|
@@ -114,25 +114,25 @@ export interface ConsumerJwtAuthArgs {
|
|
|
114
114
|
/**
|
|
115
115
|
* The algorithm used to verify the token’s signature. Can be HS256, HS384, HS512, RS256, or ES256, Default is `HS256`
|
|
116
116
|
*/
|
|
117
|
-
|
|
117
|
+
algorithm?: pulumi.Input<string>;
|
|
118
118
|
/**
|
|
119
119
|
* the id of the consumer to be configured with jwt auth
|
|
120
120
|
*/
|
|
121
|
-
|
|
121
|
+
consumerId: pulumi.Input<string>;
|
|
122
122
|
/**
|
|
123
123
|
* A unique string identifying the credential. If left out, it will be auto-generated.
|
|
124
124
|
*/
|
|
125
|
-
|
|
125
|
+
key?: pulumi.Input<string>;
|
|
126
126
|
/**
|
|
127
127
|
* If algorithm is `RS256` or `ES256`, the public key (in PEM format) to use to verify the token’s signature
|
|
128
128
|
*/
|
|
129
|
-
|
|
129
|
+
rsaPublicKey: pulumi.Input<string>;
|
|
130
130
|
/**
|
|
131
131
|
* If algorithm is `HS256` or `ES256`, the secret used to sign JWTs for this credential. If left out, will be auto-generated
|
|
132
132
|
*/
|
|
133
|
-
|
|
133
|
+
secret?: pulumi.Input<string>;
|
|
134
134
|
/**
|
|
135
135
|
* A list of strings associated with the consumer JWT auth for grouping and filtering
|
|
136
136
|
*/
|
|
137
|
-
|
|
137
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
138
138
|
}
|
package/consumerJwtAuth.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
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
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.ConsumerJwtAuth = void 0;
|
|
5
6
|
const pulumi = require("@pulumi/pulumi");
|
|
6
7
|
const utilities = require("./utilities");
|
|
7
8
|
/**
|
|
@@ -36,16 +37,16 @@ const utilities = require("./utilities");
|
|
|
36
37
|
*/
|
|
37
38
|
class ConsumerJwtAuth extends pulumi.CustomResource {
|
|
38
39
|
constructor(name, argsOrState, opts) {
|
|
39
|
-
let
|
|
40
|
+
let resourceInputs = {};
|
|
40
41
|
opts = opts || {};
|
|
41
42
|
if (opts.id) {
|
|
42
43
|
const state = argsOrState;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
resourceInputs["algorithm"] = state ? state.algorithm : undefined;
|
|
45
|
+
resourceInputs["consumerId"] = state ? state.consumerId : undefined;
|
|
46
|
+
resourceInputs["key"] = state ? state.key : undefined;
|
|
47
|
+
resourceInputs["rsaPublicKey"] = state ? state.rsaPublicKey : undefined;
|
|
48
|
+
resourceInputs["secret"] = state ? state.secret : undefined;
|
|
49
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
49
50
|
}
|
|
50
51
|
else {
|
|
51
52
|
const args = argsOrState;
|
|
@@ -55,17 +56,15 @@ class ConsumerJwtAuth extends pulumi.CustomResource {
|
|
|
55
56
|
if ((!args || args.rsaPublicKey === undefined) && !opts.urn) {
|
|
56
57
|
throw new Error("Missing required property 'rsaPublicKey'");
|
|
57
58
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
resourceInputs["algorithm"] = args ? args.algorithm : undefined;
|
|
60
|
+
resourceInputs["consumerId"] = args ? args.consumerId : undefined;
|
|
61
|
+
resourceInputs["key"] = args ? args.key : undefined;
|
|
62
|
+
resourceInputs["rsaPublicKey"] = args ? args.rsaPublicKey : undefined;
|
|
63
|
+
resourceInputs["secret"] = args ? args.secret : undefined;
|
|
64
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
64
65
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
super(ConsumerJwtAuth.__pulumiType, name, inputs, opts);
|
|
66
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
67
|
+
super(ConsumerJwtAuth.__pulumiType, name, resourceInputs, opts);
|
|
69
68
|
}
|
|
70
69
|
/**
|
|
71
70
|
* Get an existing ConsumerJwtAuth resource's state with the given name, ID, and optional extra
|
package/consumerJwtAuth.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consumerJwtAuth.js","sourceRoot":"","sources":["../consumerJwtAuth.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"consumerJwtAuth.js","sourceRoot":"","sources":["../consumerJwtAuth.ts"],"names":[],"mapp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AAM,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,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;;AA1BL,0CA0FC;AA5EG,gBAAgB;AACO,4BAAY,GAAG,4CAA4C,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## # kong.ConsumerKeyAuth
|
|
4
|
+
*
|
|
5
|
+
* Resource that allows you to configure the [Key Authentication](https://docs.konghq.com/hub/kong-inc/key-auth/) plugin for a consumer.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as kong from "@pulumi/kong";
|
|
12
|
+
*
|
|
13
|
+
* const myConsumer = new kong.Consumer("myConsumer", {
|
|
14
|
+
* username: "User1",
|
|
15
|
+
* customId: "123",
|
|
16
|
+
* });
|
|
17
|
+
* const keyAuthPlugin = new kong.Plugin("keyAuthPlugin", {});
|
|
18
|
+
* const consumerKeyAuth = new kong.ConsumerKeyAuth("consumerKeyAuth", {
|
|
19
|
+
* consumerId: myConsumer.id,
|
|
20
|
+
* key: "secret",
|
|
21
|
+
* tags: [
|
|
22
|
+
* "myTag",
|
|
23
|
+
* "anotherTag",
|
|
24
|
+
* ],
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare class ConsumerKeyAuth extends pulumi.CustomResource {
|
|
29
|
+
/**
|
|
30
|
+
* Get an existing ConsumerKeyAuth resource's state with the given name, ID, and optional extra
|
|
31
|
+
* properties used to qualify the lookup.
|
|
32
|
+
*
|
|
33
|
+
* @param name The _unique_ name of the resulting resource.
|
|
34
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
35
|
+
* @param state Any extra arguments used during the lookup.
|
|
36
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
37
|
+
*/
|
|
38
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ConsumerKeyAuthState, opts?: pulumi.CustomResourceOptions): ConsumerKeyAuth;
|
|
39
|
+
/**
|
|
40
|
+
* Returns true if the given object is an instance of ConsumerKeyAuth. 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: any): obj is ConsumerKeyAuth;
|
|
44
|
+
/**
|
|
45
|
+
* the id of the consumer to associate the credentials to
|
|
46
|
+
*/
|
|
47
|
+
readonly consumerId: pulumi.Output<string>;
|
|
48
|
+
/**
|
|
49
|
+
* Unique key to authenticate the client; if omitted the plugin will generate one
|
|
50
|
+
*/
|
|
51
|
+
readonly key: pulumi.Output<string>;
|
|
52
|
+
/**
|
|
53
|
+
* A list of strings associated with the consumer key auth for grouping and filtering
|
|
54
|
+
*/
|
|
55
|
+
readonly tags: pulumi.Output<string[] | undefined>;
|
|
56
|
+
/**
|
|
57
|
+
* Create a ConsumerKeyAuth 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: ConsumerKeyAuthArgs, opts?: pulumi.CustomResourceOptions);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Input properties used for looking up and filtering ConsumerKeyAuth resources.
|
|
67
|
+
*/
|
|
68
|
+
export interface ConsumerKeyAuthState {
|
|
69
|
+
/**
|
|
70
|
+
* the id of the consumer to associate the credentials to
|
|
71
|
+
*/
|
|
72
|
+
consumerId?: pulumi.Input<string>;
|
|
73
|
+
/**
|
|
74
|
+
* Unique key to authenticate the client; if omitted the plugin will generate one
|
|
75
|
+
*/
|
|
76
|
+
key?: pulumi.Input<string>;
|
|
77
|
+
/**
|
|
78
|
+
* A list of strings associated with the consumer key auth for grouping and filtering
|
|
79
|
+
*/
|
|
80
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The set of arguments for constructing a ConsumerKeyAuth resource.
|
|
84
|
+
*/
|
|
85
|
+
export interface ConsumerKeyAuthArgs {
|
|
86
|
+
/**
|
|
87
|
+
* the id of the consumer to associate the credentials to
|
|
88
|
+
*/
|
|
89
|
+
consumerId: pulumi.Input<string>;
|
|
90
|
+
/**
|
|
91
|
+
* Unique key to authenticate the client; if omitted the plugin will generate one
|
|
92
|
+
*/
|
|
93
|
+
key?: pulumi.Input<string>;
|
|
94
|
+
/**
|
|
95
|
+
* A list of strings associated with the consumer key auth for grouping and filtering
|
|
96
|
+
*/
|
|
97
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
98
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
exports.ConsumerKeyAuth = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## # kong.ConsumerKeyAuth
|
|
10
|
+
*
|
|
11
|
+
* Resource that allows you to configure the [Key Authentication](https://docs.konghq.com/hub/kong-inc/key-auth/) plugin for a consumer.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as kong from "@pulumi/kong";
|
|
18
|
+
*
|
|
19
|
+
* const myConsumer = new kong.Consumer("myConsumer", {
|
|
20
|
+
* username: "User1",
|
|
21
|
+
* customId: "123",
|
|
22
|
+
* });
|
|
23
|
+
* const keyAuthPlugin = new kong.Plugin("keyAuthPlugin", {});
|
|
24
|
+
* const consumerKeyAuth = new kong.ConsumerKeyAuth("consumerKeyAuth", {
|
|
25
|
+
* consumerId: myConsumer.id,
|
|
26
|
+
* key: "secret",
|
|
27
|
+
* tags: [
|
|
28
|
+
* "myTag",
|
|
29
|
+
* "anotherTag",
|
|
30
|
+
* ],
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
class ConsumerKeyAuth extends pulumi.CustomResource {
|
|
35
|
+
constructor(name, argsOrState, opts) {
|
|
36
|
+
let resourceInputs = {};
|
|
37
|
+
opts = opts || {};
|
|
38
|
+
if (opts.id) {
|
|
39
|
+
const state = argsOrState;
|
|
40
|
+
resourceInputs["consumerId"] = state ? state.consumerId : undefined;
|
|
41
|
+
resourceInputs["key"] = state ? state.key : undefined;
|
|
42
|
+
resourceInputs["tags"] = state ? state.tags : undefined;
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
const args = argsOrState;
|
|
46
|
+
if ((!args || args.consumerId === undefined) && !opts.urn) {
|
|
47
|
+
throw new Error("Missing required property 'consumerId'");
|
|
48
|
+
}
|
|
49
|
+
resourceInputs["consumerId"] = args ? args.consumerId : undefined;
|
|
50
|
+
resourceInputs["key"] = args ? args.key : undefined;
|
|
51
|
+
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
52
|
+
}
|
|
53
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
54
|
+
super(ConsumerKeyAuth.__pulumiType, name, resourceInputs, opts);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Get an existing ConsumerKeyAuth resource's state with the given name, ID, and optional extra
|
|
58
|
+
* properties used to qualify the lookup.
|
|
59
|
+
*
|
|
60
|
+
* @param name The _unique_ name of the resulting resource.
|
|
61
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
62
|
+
* @param state Any extra arguments used during the lookup.
|
|
63
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
64
|
+
*/
|
|
65
|
+
static get(name, id, state, opts) {
|
|
66
|
+
return new ConsumerKeyAuth(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Returns true if the given object is an instance of ConsumerKeyAuth. This is designed to work even
|
|
70
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
71
|
+
*/
|
|
72
|
+
static isInstance(obj) {
|
|
73
|
+
if (obj === undefined || obj === null) {
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
return obj['__pulumiType'] === ConsumerKeyAuth.__pulumiType;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.ConsumerKeyAuth = ConsumerKeyAuth;
|
|
80
|
+
/** @internal */
|
|
81
|
+
ConsumerKeyAuth.__pulumiType = 'kong:index/consumerKeyAuth:ConsumerKeyAuth';
|
|
82
|
+
//# sourceMappingURL=consumerKeyAuth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consumerKeyAuth.js","sourceRoot":"","sources":["../consumerKeyAuth.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IAiDtD,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA+C,CAAC;YAC9D,c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E,IAAG,CAAC;IACtE,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,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;;AA1BL,0CAqEC;AAvDG,gBAAgB;AACO,4BAAY,GAAG,4CAA4C,CAAC"}
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1,24 +1,33 @@
|
|
|
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
|
-
function
|
|
5
|
-
|
|
6
|
-
}
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
7
|
+
}) : (function(o, m, k, k2) {
|
|
8
|
+
if (k2 === undefined) k2 = k;
|
|
9
|
+
o[k2] = m[k];
|
|
10
|
+
}));
|
|
11
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
12
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
13
|
+
};
|
|
7
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.types = exports.config = void 0;
|
|
8
16
|
const pulumi = require("@pulumi/pulumi");
|
|
9
17
|
const utilities = require("./utilities");
|
|
10
18
|
// Export members:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
__exportStar(require("./certificate"), exports);
|
|
20
|
+
__exportStar(require("./consumer"), exports);
|
|
21
|
+
__exportStar(require("./consumerAcl"), exports);
|
|
22
|
+
__exportStar(require("./consumerBasicAuth"), exports);
|
|
23
|
+
__exportStar(require("./consumerJwtAuth"), exports);
|
|
24
|
+
__exportStar(require("./consumerKeyAuth"), exports);
|
|
25
|
+
__exportStar(require("./plugin"), exports);
|
|
26
|
+
__exportStar(require("./provider"), exports);
|
|
27
|
+
__exportStar(require("./route"), exports);
|
|
28
|
+
__exportStar(require("./service"), exports);
|
|
29
|
+
__exportStar(require("./target"), exports);
|
|
30
|
+
__exportStar(require("./upstream"), exports);
|
|
22
31
|
// Export sub-modules:
|
|
23
32
|
const config = require("./config");
|
|
24
33
|
exports.config = config;
|
|
@@ -30,6 +39,7 @@ const consumer_1 = require("./consumer");
|
|
|
30
39
|
const consumerAcl_1 = require("./consumerAcl");
|
|
31
40
|
const consumerBasicAuth_1 = require("./consumerBasicAuth");
|
|
32
41
|
const consumerJwtAuth_1 = require("./consumerJwtAuth");
|
|
42
|
+
const consumerKeyAuth_1 = require("./consumerKeyAuth");
|
|
33
43
|
const plugin_1 = require("./plugin");
|
|
34
44
|
const route_1 = require("./route");
|
|
35
45
|
const service_1 = require("./service");
|
|
@@ -49,6 +59,8 @@ const _module = {
|
|
|
49
59
|
return new consumerBasicAuth_1.ConsumerBasicAuth(name, undefined, { urn });
|
|
50
60
|
case "kong:index/consumerJwtAuth:ConsumerJwtAuth":
|
|
51
61
|
return new consumerJwtAuth_1.ConsumerJwtAuth(name, undefined, { urn });
|
|
62
|
+
case "kong:index/consumerKeyAuth:ConsumerKeyAuth":
|
|
63
|
+
return new consumerKeyAuth_1.ConsumerKeyAuth(name, undefined, { urn });
|
|
52
64
|
case "kong:index/plugin:Plugin":
|
|
53
65
|
return new plugin_1.Plugin(name, undefined, { urn });
|
|
54
66
|
case "kong:index/route:Route":
|
|
@@ -69,6 +81,7 @@ pulumi.runtime.registerResourceModule("kong", "index/consumer", _module);
|
|
|
69
81
|
pulumi.runtime.registerResourceModule("kong", "index/consumerAcl", _module);
|
|
70
82
|
pulumi.runtime.registerResourceModule("kong", "index/consumerBasicAuth", _module);
|
|
71
83
|
pulumi.runtime.registerResourceModule("kong", "index/consumerJwtAuth", _module);
|
|
84
|
+
pulumi.runtime.registerResourceModule("kong", "index/consumerKeyAuth", _module);
|
|
72
85
|
pulumi.runtime.registerResourceModule("kong", "index/plugin", _module);
|
|
73
86
|
pulumi.runtime.registerResourceModule("kong", "index/route", _module);
|
|
74
87
|
pulumi.runtime.registerResourceModule("kong", "index/service", _module);
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,kBAAkB;AAClB,gDAA8B;AAC9B,6CAA2B;AAC3B,gDAA8B;AAC9B,sDAAoC;AACpC,oDAAkC;AAClC,oDAAkC;AAClC,2CAAyB;AACzB,6CAA2B;AAC3B,0CAAwB;AACxB,4CAA0B;AAC1B,2CAAyB;AACzB,6CAA2B;AAE3B,sBAAsB;AACtB,mCAAmC;AAI/B,wBAAM;AAHV,iCAAiC;AAI7B,sBAAK;AAGT,gCAAgC;AAChC,+CAA4C;AAC5C,yCAAsC;AACtC,+CAA4C;AAC5C,2DAAwD;AACxD,uDAAoD;AACpD,uDAAoD;AACpD,qCAAkC;AAClC,mCAAgC;AAChC,uCAAoC;AACpC,qCAAkC;AAClC,yCAAsC;AAEtC,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;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,EAAE;QACpF,IAAI,IAAI,KAAK,uBAAuB,EAAE;YAClC,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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/kong",
|
|
3
|
-
"version": "v4.1
|
|
3
|
+
"version": "v4.4.1",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Kong resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,14 +11,15 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource kong v4.1
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource kong v4.4.1"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/mime": "^2.0.0",
|
|
21
|
-
"@types/node": "^10.0.0"
|
|
21
|
+
"@types/node": "^10.0.0",
|
|
22
|
+
"typescript": "^4.3.5"
|
|
22
23
|
},
|
|
23
24
|
"pulumi": {
|
|
24
25
|
"resource": true
|
package/package.json.bak
CHANGED
|
@@ -10,16 +10,18 @@
|
|
|
10
10
|
"repository": "https://github.com/pulumi/pulumi-kong",
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "tsc"
|
|
13
|
+
"build": "tsc",
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource kong ${VERSION}"
|
|
14
15
|
},
|
|
15
16
|
"dependencies": {
|
|
16
17
|
"@pulumi/pulumi": "^3.0.0"
|
|
17
18
|
},
|
|
18
19
|
"devDependencies": {
|
|
19
20
|
"@types/mime": "^2.0.0",
|
|
20
|
-
"@types/node": "^10.0.0"
|
|
21
|
+
"@types/node": "^10.0.0",
|
|
22
|
+
"typescript": "^4.3.5"
|
|
21
23
|
},
|
|
22
24
|
"pulumi": {
|
|
23
25
|
"resource": true
|
|
24
26
|
}
|
|
25
|
-
}
|
|
27
|
+
}
|
package/package.json.dev
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/kong",
|
|
3
|
-
"version": "v4.1
|
|
3
|
+
"version": "v4.4.1",
|
|
4
4
|
"description": "A Pulumi package for creating and managing Kong resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -10,16 +10,18 @@
|
|
|
10
10
|
"repository": "https://github.com/pulumi/pulumi-kong",
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "tsc"
|
|
13
|
+
"build": "tsc",
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource kong v4.4.1"
|
|
14
15
|
},
|
|
15
16
|
"dependencies": {
|
|
16
17
|
"@pulumi/pulumi": "^3.0.0"
|
|
17
18
|
},
|
|
18
19
|
"devDependencies": {
|
|
19
20
|
"@types/mime": "^2.0.0",
|
|
20
|
-
"@types/node": "^10.0.0"
|
|
21
|
+
"@types/node": "^10.0.0",
|
|
22
|
+
"typescript": "^4.3.5"
|
|
21
23
|
},
|
|
22
24
|
"pulumi": {
|
|
23
25
|
"resource": true
|
|
24
26
|
}
|
|
25
|
-
}
|
|
27
|
+
}
|
package/plugin.d.ts
CHANGED
|
@@ -79,16 +79,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
79
79
|
* serviceId: service.id,
|
|
80
80
|
* });
|
|
81
81
|
* ```
|
|
82
|
-
* ## Argument reference
|
|
83
|
-
*
|
|
84
|
-
* * `pluginName` - (Required) the name of the plugin you want to configure
|
|
85
|
-
* * `consumerId` - (Optional) the consumer id you want to configure the plugin for
|
|
86
|
-
* * `serviceId` - (Optional) the service id that you want to configure the plugin for
|
|
87
|
-
* * `routeId` - (Optional) the route id that you want to configure the plugin for
|
|
88
|
-
* * `enabled` - (Optional) whether the plugin is enabled or not, use if you want to keep the plugin installed but disable it
|
|
89
|
-
* * `configJson` - (Optional) this is the configuration json for how you want to configure the plugin. The json is passed straight through to kong as is. You can get the json config from the Kong documentation
|
|
90
|
-
* page of the plugin you are configuring
|
|
91
|
-
* * `tags` - (Optional) A list of strings associated with the Plugin for grouping and filtering
|
|
92
82
|
*
|
|
93
83
|
* ## Import
|
|
94
84
|
*
|
|
@@ -116,15 +106,31 @@ export declare class Plugin extends pulumi.CustomResource {
|
|
|
116
106
|
static isInstance(obj: any): obj is Plugin;
|
|
117
107
|
readonly computedConfig: pulumi.Output<string>;
|
|
118
108
|
/**
|
|
119
|
-
*
|
|
109
|
+
* this is the configuration json for how you want to configure the plugin. The json is passed straight through to kong as is. You can get the json config from the Kong documentation
|
|
110
|
+
* page of the plugin you are configuring
|
|
120
111
|
*/
|
|
121
112
|
readonly configJson: pulumi.Output<string | undefined>;
|
|
113
|
+
/**
|
|
114
|
+
* the consumer id you want to configure the plugin for
|
|
115
|
+
*/
|
|
122
116
|
readonly consumerId: pulumi.Output<string | undefined>;
|
|
117
|
+
/**
|
|
118
|
+
* whether the plugin is enabled or not, use if you want to keep the plugin installed but disable it
|
|
119
|
+
*/
|
|
123
120
|
readonly enabled: pulumi.Output<boolean | undefined>;
|
|
124
121
|
readonly name: pulumi.Output<string>;
|
|
122
|
+
/**
|
|
123
|
+
* the route id that you want to configure the plugin for
|
|
124
|
+
*/
|
|
125
125
|
readonly routeId: pulumi.Output<string | undefined>;
|
|
126
|
+
/**
|
|
127
|
+
* the service id that you want to configure the plugin for
|
|
128
|
+
*/
|
|
126
129
|
readonly serviceId: pulumi.Output<string | undefined>;
|
|
127
130
|
readonly strictMatch: pulumi.Output<boolean | undefined>;
|
|
131
|
+
/**
|
|
132
|
+
* A list of strings associated with the Plugin for grouping and filtering
|
|
133
|
+
*/
|
|
128
134
|
readonly tags: pulumi.Output<string[] | undefined>;
|
|
129
135
|
/**
|
|
130
136
|
* Create a Plugin resource with the given unique name, arguments, and options.
|
|
@@ -139,32 +145,64 @@ export declare class Plugin extends pulumi.CustomResource {
|
|
|
139
145
|
* Input properties used for looking up and filtering Plugin resources.
|
|
140
146
|
*/
|
|
141
147
|
export interface PluginState {
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
*
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
148
|
+
computedConfig?: pulumi.Input<string>;
|
|
149
|
+
/**
|
|
150
|
+
* this is the configuration json for how you want to configure the plugin. The json is passed straight through to kong as is. You can get the json config from the Kong documentation
|
|
151
|
+
* page of the plugin you are configuring
|
|
152
|
+
*/
|
|
153
|
+
configJson?: pulumi.Input<string>;
|
|
154
|
+
/**
|
|
155
|
+
* the consumer id you want to configure the plugin for
|
|
156
|
+
*/
|
|
157
|
+
consumerId?: pulumi.Input<string>;
|
|
158
|
+
/**
|
|
159
|
+
* whether the plugin is enabled or not, use if you want to keep the plugin installed but disable it
|
|
160
|
+
*/
|
|
161
|
+
enabled?: pulumi.Input<boolean>;
|
|
162
|
+
name?: pulumi.Input<string>;
|
|
163
|
+
/**
|
|
164
|
+
* the route id that you want to configure the plugin for
|
|
165
|
+
*/
|
|
166
|
+
routeId?: pulumi.Input<string>;
|
|
167
|
+
/**
|
|
168
|
+
* the service id that you want to configure the plugin for
|
|
169
|
+
*/
|
|
170
|
+
serviceId?: pulumi.Input<string>;
|
|
171
|
+
strictMatch?: pulumi.Input<boolean>;
|
|
172
|
+
/**
|
|
173
|
+
* A list of strings associated with the Plugin for grouping and filtering
|
|
174
|
+
*/
|
|
175
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
154
176
|
}
|
|
155
177
|
/**
|
|
156
178
|
* The set of arguments for constructing a Plugin resource.
|
|
157
179
|
*/
|
|
158
180
|
export interface PluginArgs {
|
|
159
181
|
/**
|
|
160
|
-
*
|
|
182
|
+
* this is the configuration json for how you want to configure the plugin. The json is passed straight through to kong as is. You can get the json config from the Kong documentation
|
|
183
|
+
* page of the plugin you are configuring
|
|
184
|
+
*/
|
|
185
|
+
configJson?: pulumi.Input<string>;
|
|
186
|
+
/**
|
|
187
|
+
* the consumer id you want to configure the plugin for
|
|
188
|
+
*/
|
|
189
|
+
consumerId?: pulumi.Input<string>;
|
|
190
|
+
/**
|
|
191
|
+
* whether the plugin is enabled or not, use if you want to keep the plugin installed but disable it
|
|
192
|
+
*/
|
|
193
|
+
enabled?: pulumi.Input<boolean>;
|
|
194
|
+
name?: pulumi.Input<string>;
|
|
195
|
+
/**
|
|
196
|
+
* the route id that you want to configure the plugin for
|
|
197
|
+
*/
|
|
198
|
+
routeId?: pulumi.Input<string>;
|
|
199
|
+
/**
|
|
200
|
+
* the service id that you want to configure the plugin for
|
|
201
|
+
*/
|
|
202
|
+
serviceId?: pulumi.Input<string>;
|
|
203
|
+
strictMatch?: pulumi.Input<boolean>;
|
|
204
|
+
/**
|
|
205
|
+
* A list of strings associated with the Plugin for grouping and filtering
|
|
161
206
|
*/
|
|
162
|
-
|
|
163
|
-
readonly consumerId?: pulumi.Input<string>;
|
|
164
|
-
readonly enabled?: pulumi.Input<boolean>;
|
|
165
|
-
readonly name?: pulumi.Input<string>;
|
|
166
|
-
readonly routeId?: pulumi.Input<string>;
|
|
167
|
-
readonly serviceId?: pulumi.Input<string>;
|
|
168
|
-
readonly strictMatch?: pulumi.Input<boolean>;
|
|
169
|
-
readonly tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
207
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
170
208
|
}
|