@heroku-cli/plugin-mtls 0.8.0 → 0.8.2

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 CHANGED
@@ -20,7 +20,7 @@ $ npm install -g @heroku-cli/plugin-mtls
20
20
  $ heroku COMMAND
21
21
  running command...
22
22
  $ heroku (-v|--version|version)
23
- @heroku-cli/plugin-mtls/0.8.0 darwin-x64 node-v12.18.3
23
+ @heroku-cli/plugin-mtls/0.8.2 darwin-arm64 node-v16.18.0
24
24
  $ heroku --help [COMMAND]
25
25
  USAGE
26
26
  $ heroku COMMAND
@@ -57,7 +57,7 @@ EXAMPLE
57
57
  $ heroku data:mtls postgresql-sushi-12345
58
58
  ```
59
59
 
60
- _See code: [src/commands/data/mtls/index.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.8.0/src/commands/data/mtls/index.ts)_
60
+ _See code: [src/commands/data/mtls/index.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.8.2/src/commands/data/mtls/index.ts)_
61
61
 
62
62
  ## `heroku data:mtls:certificates [ADDON]`
63
63
 
@@ -74,7 +74,7 @@ EXAMPLE
74
74
  $ heroku data:mtls:ip-rules postgresql-sushi-12345
75
75
  ```
76
76
 
77
- _See code: [src/commands/data/mtls/certificates/index.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.8.0/src/commands/data/mtls/certificates/index.ts)_
77
+ _See code: [src/commands/data/mtls/certificates/index.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.8.2/src/commands/data/mtls/certificates/index.ts)_
78
78
 
79
79
  ## `heroku data:mtls:certificates:create [ADDON]`
80
80
 
@@ -91,7 +91,7 @@ EXAMPLE
91
91
  $ heroku data:mtls:certificates:create postgresql-sushi-12345
92
92
  ```
93
93
 
94
- _See code: [src/commands/data/mtls/certificates/create.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.8.0/src/commands/data/mtls/certificates/create.ts)_
94
+ _See code: [src/commands/data/mtls/certificates/create.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.8.2/src/commands/data/mtls/certificates/create.ts)_
95
95
 
96
96
  ## `heroku data:mtls:certificates:delete [ADDON]`
97
97
 
@@ -109,7 +109,7 @@ EXAMPLE
109
109
  $ heroku data:mtls:certificates:delete postgresql-sushi-12345 --id "1862ec85-fdc1-47b3-924e-a91d26ca3a7c"
110
110
  ```
111
111
 
112
- _See code: [src/commands/data/mtls/certificates/delete.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.8.0/src/commands/data/mtls/certificates/delete.ts)_
112
+ _See code: [src/commands/data/mtls/certificates/delete.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.8.2/src/commands/data/mtls/certificates/delete.ts)_
113
113
 
114
114
  ## `heroku data:mtls:certificates:download [ADDON]`
115
115
 
@@ -133,7 +133,7 @@ EXAMPLES
133
133
  "prefix_"
134
134
  ```
135
135
 
136
- _See code: [src/commands/data/mtls/certificates/download.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.8.0/src/commands/data/mtls/certificates/download.ts)_
136
+ _See code: [src/commands/data/mtls/certificates/download.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.8.2/src/commands/data/mtls/certificates/download.ts)_
137
137
 
138
138
  ## `heroku data:mtls:certificates:get [ADDON]`
139
139
 
@@ -151,7 +151,7 @@ EXAMPLE
151
151
  $ heroku data:mtls:certificates:create postgresql-sushi-12345 --id "1862ec85-fdc1-47b3-924e-a91d26ca3a7c"
152
152
  ```
153
153
 
154
- _See code: [src/commands/data/mtls/certificates/get.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.8.0/src/commands/data/mtls/certificates/get.ts)_
154
+ _See code: [src/commands/data/mtls/certificates/get.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.8.2/src/commands/data/mtls/certificates/get.ts)_
155
155
 
156
156
  ## `heroku data:mtls:create [ADDON]`
157
157
 
@@ -168,7 +168,7 @@ EXAMPLE
168
168
  $ heroku data:mtls:create postgresql-sushi-12345
169
169
  ```
170
170
 
171
- _See code: [src/commands/data/mtls/create.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.8.0/src/commands/data/mtls/create.ts)_
171
+ _See code: [src/commands/data/mtls/create.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.8.2/src/commands/data/mtls/create.ts)_
172
172
 
173
173
  ## `heroku data:mtls:destroy [ADDON]`
174
174
 
@@ -188,7 +188,7 @@ EXAMPLE
188
188
  $ heroku data:mtls:destroy postgresql-sushi-12345
189
189
  ```
190
190
 
191
- _See code: [src/commands/data/mtls/destroy.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.8.0/src/commands/data/mtls/destroy.ts)_
191
+ _See code: [src/commands/data/mtls/destroy.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.8.2/src/commands/data/mtls/destroy.ts)_
192
192
 
193
193
  ## `heroku data:mtls:ip-rules [ADDON]`
194
194
 
@@ -205,11 +205,11 @@ EXAMPLE
205
205
  $ heroku data:mtls:ip-rules postgresql-sushi-12345
206
206
  ```
207
207
 
208
- _See code: [src/commands/data/mtls/ip-rules/index.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.8.0/src/commands/data/mtls/ip-rules/index.ts)_
208
+ _See code: [src/commands/data/mtls/ip-rules/index.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.8.2/src/commands/data/mtls/ip-rules/index.ts)_
209
209
 
210
210
  ## `heroku data:mtls:ip-rules:create [ADDON]`
211
211
 
212
- get the IP Rules for your MTLS enabled addon
212
+ create an IP Rule for your MTLS enabled addon
213
213
 
214
214
  ```
215
215
  USAGE
@@ -224,7 +224,7 @@ EXAMPLE
224
224
  $ heroku data:mtls:ip-rules:create postgresql-sushi-12345 --cidr "1.2.3.4/32" --description "home IP address"
225
225
  ```
226
226
 
227
- _See code: [src/commands/data/mtls/ip-rules/create.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.8.0/src/commands/data/mtls/ip-rules/create.ts)_
227
+ _See code: [src/commands/data/mtls/ip-rules/create.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.8.2/src/commands/data/mtls/ip-rules/create.ts)_
228
228
 
229
229
  ## `heroku data:mtls:ip-rules:delete [ADDON]`
230
230
 
@@ -243,11 +243,11 @@ EXAMPLE
243
243
  $ heroku data:mtls:ip-rules:delete postgresql-sushi-12345 --id "1862ec85-fdc1-47b3-924e-a91d26ca3a7c"
244
244
  ```
245
245
 
246
- _See code: [src/commands/data/mtls/ip-rules/delete.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.8.0/src/commands/data/mtls/ip-rules/delete.ts)_
246
+ _See code: [src/commands/data/mtls/ip-rules/delete.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.8.2/src/commands/data/mtls/ip-rules/delete.ts)_
247
247
 
248
248
  ## `heroku data:mtls:ip-rules:get [ADDON]`
249
249
 
250
- get the a specific IP Rule for your MTLS enabled addon
250
+ get a specific IP Rule for your MTLS enabled addon
251
251
 
252
252
  ```
253
253
  USAGE
@@ -261,5 +261,5 @@ EXAMPLE
261
261
  $ heroku data:mtls:ip-rules:get postgresql-sushi-12345 --id "1862ec85-fdc1-47b3-924e-a91d26ca3a7c"
262
262
  ```
263
263
 
264
- _See code: [src/commands/data/mtls/ip-rules/get.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.8.0/src/commands/data/mtls/ip-rules/get.ts)_
264
+ _See code: [src/commands/data/mtls/ip-rules/get.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.8.2/src/commands/data/mtls/ip-rules/get.ts)_
265
265
  <!-- commandsstop -->
@@ -18,7 +18,7 @@ class MTLSIPCreate extends base_1.default {
18
18
  cli_ux_1.cli.styledObject(res);
19
19
  }
20
20
  }
21
- MTLSIPCreate.description = 'get the IP Rules for your MTLS enabled addon';
21
+ MTLSIPCreate.description = 'create an IP Rule for your MTLS enabled addon';
22
22
  MTLSIPCreate.args = [
23
23
  { name: 'addon' }
24
24
  ];
@@ -12,7 +12,7 @@ class MTLSIPGet extends base_1.default {
12
12
  cli_ux_1.cli.styledObject(res);
13
13
  }
14
14
  }
15
- MTLSIPGet.description = 'get the a specific IP Rule for your MTLS enabled addon';
15
+ MTLSIPGet.description = 'get a specific IP Rule for your MTLS enabled addon';
16
16
  MTLSIPGet.args = [
17
17
  { name: 'addon' }
18
18
  ];
@@ -2,23 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const cli_ux_1 = require("cli-ux");
4
4
  async function default_1(heroku, addon_attachment, app) {
5
- const db = addon_attachment || 'DATABASE_URL';
6
- const { body: res } = await heroku.post('/actions/addons/resolve', {
7
- body: {
8
- app,
9
- addon: db
10
- }
11
- });
12
- if (res.id === 'not_found') {
13
- cli_ux_1.cli.error(res.message);
14
- }
15
- const filteredAddon = res.find((addon) => {
16
- if (addon.addon_service) {
17
- return addon.addon_service.name &&
18
- (addon.addon_service.name.startsWith('heroku-postgresql') ||
19
- addon.addon_service.name.startsWith('heroku-kafka'));
20
- }
21
- });
5
+ const filteredAddon = addon_attachment ?
6
+ await findAddonGivenAttachment(heroku, addon_attachment, app) :
7
+ await findAllAddons(heroku, app);
22
8
  if (filteredAddon) {
23
9
  if (filteredAddon.addon_service.name.startsWith('heroku-postgresql')) {
24
10
  return {
@@ -36,8 +22,49 @@ async function default_1(heroku, addon_attachment, app) {
36
22
  };
37
23
  }
38
24
  }
25
+ }
26
+ exports.default = default_1;
27
+ async function findAllAddons(heroku, app) {
28
+ const { body: addon_list } = await heroku.get(`/apps/${app}/addons`);
29
+ let filtered_list = addon_list.filter((addon) => {
30
+ if (addon.addon_service) {
31
+ return addon.addon_service.name &&
32
+ (addon.addon_service.name.startsWith('heroku-postgresql') ||
33
+ addon.addon_service.name.startsWith('heroku-kafka'));
34
+ }
35
+ });
36
+ if (filtered_list.length === 0) {
37
+ cli_ux_1.cli.error('No addons found');
38
+ }
39
+ else if (filtered_list.length === 1) {
40
+ return filtered_list[0];
41
+ }
39
42
  else {
43
+ cli_ux_1.cli.error("No addon specified. Here's the list of addons:" + filtered_list.map((addon) => addon.name));
44
+ }
45
+ }
46
+ async function findAddonGivenAttachment(heroku, addon_attachment, app) {
47
+ const db = addon_attachment;
48
+ const { body: res } = await heroku.post('/actions/addons/resolve', {
49
+ body: {
50
+ app,
51
+ addon: db
52
+ }
53
+ });
54
+ if (res.id === 'not_found') {
55
+ cli_ux_1.cli.error(res.message);
56
+ }
57
+ let addon = res.find((addon) => {
58
+ if (addon.addon_service) {
59
+ return addon.addon_service.name &&
60
+ (addon.addon_service.name.startsWith('heroku-postgresql') ||
61
+ addon.addon_service.name.startsWith('heroku-kafka'));
62
+ }
63
+ });
64
+ if (!addon) {
40
65
  cli_ux_1.cli.error('No addons found');
41
66
  }
67
+ else {
68
+ return addon;
69
+ }
42
70
  }
43
- exports.default = default_1;
@@ -1 +1 @@
1
- {"version":"0.8.0","commands":{"data:mtls:create":{"id":"data:mtls:create","description":"enable MTLS for your addon","pluginName":"@heroku-cli/plugin-mtls","pluginType":"core","aliases":[],"examples":["$ heroku data:mtls:create postgresql-sushi-12345"],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true}},"args":[{"name":"addon"}]},"data:mtls:destroy":{"id":"data:mtls:destroy","description":"destroy MTLS configuration on your addon","pluginName":"@heroku-cli/plugin-mtls","pluginType":"core","aliases":["data:mtls:delete"],"examples":["$ heroku data:mtls:destroy postgresql-sushi-12345"],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true}},"args":[{"name":"addon"}]},"data:mtls":{"id":"data:mtls","description":"get the status of MTLS for your addon","pluginName":"@heroku-cli/plugin-mtls","pluginType":"core","aliases":[],"examples":["$ heroku data:mtls postgresql-sushi-12345"],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true}},"args":[{"name":"addon"}]},"data:mtls:certificates:create":{"id":"data:mtls:certificates:create","description":"create a new certificate for your MTLS enabled addon","pluginName":"@heroku-cli/plugin-mtls","pluginType":"core","aliases":[],"examples":["$ heroku data:mtls:certificates:create postgresql-sushi-12345"],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true}},"args":[{"name":"addon"}]},"data:mtls:certificates:delete":{"id":"data:mtls:certificates:delete","description":"delete a specific certificate for your MTLS enabled addon","pluginName":"@heroku-cli/plugin-mtls","pluginType":"core","aliases":[],"examples":["$ heroku data:mtls:certificates:delete postgresql-sushi-12345 --id \"1862ec85-fdc1-47b3-924e-a91d26ca3a7c\""],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true},"id":{"name":"id","type":"option","description":"id of certificate","required":true}},"args":[{"name":"addon"}]},"data:mtls:certificates:download":{"id":"data:mtls:certificates:download","description":"download your certificate bundle for your mTLS addon","pluginName":"@heroku-cli/plugin-mtls","pluginType":"core","aliases":[],"examples":["$ heroku data:mtls:certificates:download postgresql-sushi-12345 --id \"3559a4df-2c82-4473-86cf-181310a6ef4f\"","$ heroku data:mtls:certificates:download postgresql-sushi-12345 --id \"3559a4df-2c82-4473-86cf-181310a6ef4f\" --dir \"./folder\"","$ heroku data:mtls:certificates:download postgresql-sushi-12345 --id \"3559a4df-2c82-4473-86cf-181310a6ef4f --prefix \"prefix_\""],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true},"dir":{"name":"dir","type":"option","description":"directory to download files to. defaults to HOME:/.postgresql","required":false},"id":{"name":"id","type":"option","description":"ID of certificate to download","required":false},"prefix":{"name":"prefix","type":"option","description":"prefix to put in front of downloaded file names","required":true,"default":""}},"args":[{"name":"addon"}]},"data:mtls:certificates:get":{"id":"data:mtls:certificates:get","description":"get a specific certificate for your MTLS enabled addon","pluginName":"@heroku-cli/plugin-mtls","pluginType":"core","aliases":[],"examples":["$ heroku data:mtls:certificates:create postgresql-sushi-12345 --id \"1862ec85-fdc1-47b3-924e-a91d26ca3a7c\""],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true},"id":{"name":"id","type":"option","description":"id of IP Rule","required":true}},"args":[{"name":"addon"}]},"data:mtls:certificates":{"id":"data:mtls:certificates","description":"get the certificates for your MTLS enabled addon","pluginName":"@heroku-cli/plugin-mtls","pluginType":"core","aliases":[],"examples":["$ heroku data:mtls:ip-rules postgresql-sushi-12345"],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true}},"args":[{"name":"addon"}]},"data:mtls:ip-rules:create":{"id":"data:mtls:ip-rules:create","description":"get the IP Rules for your MTLS enabled addon","pluginName":"@heroku-cli/plugin-mtls","pluginType":"core","aliases":[],"examples":["$ heroku data:mtls:ip-rules:create postgresql-sushi-12345 --cidr \"1.2.3.4/32\" --description \"home IP address\""],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true},"cidr":{"name":"cidr","type":"option","required":true},"description":{"name":"description","type":"option","required":false}},"args":[{"name":"addon"}]},"data:mtls:ip-rules:delete":{"id":"data:mtls:ip-rules:delete","description":"delete a specific IP Rule for your MTLS enabled addon","pluginName":"@heroku-cli/plugin-mtls","pluginType":"core","aliases":[],"examples":["$ heroku data:mtls:ip-rules:delete postgresql-sushi-12345 --id \"1862ec85-fdc1-47b3-924e-a91d26ca3a7c\""],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true},"cidr":{"name":"cidr","type":"option","description":"cidr of IP Rule"},"id":{"name":"id","type":"option","description":"id of IP Rule"}},"args":[{"name":"addon"}]},"data:mtls:ip-rules:get":{"id":"data:mtls:ip-rules:get","description":"get the a specific IP Rule for your MTLS enabled addon","pluginName":"@heroku-cli/plugin-mtls","pluginType":"core","aliases":[],"examples":["$ heroku data:mtls:ip-rules:get postgresql-sushi-12345 --id \"1862ec85-fdc1-47b3-924e-a91d26ca3a7c\""],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true},"id":{"name":"id","type":"option","description":"id of IP Rule","required":true}},"args":[{"name":"addon"}]},"data:mtls:ip-rules":{"id":"data:mtls:ip-rules","description":"get the IP Rules for your MTLS enabled addon","pluginName":"@heroku-cli/plugin-mtls","pluginType":"core","aliases":[],"examples":["$ heroku data:mtls:ip-rules postgresql-sushi-12345"],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true}},"args":[{"name":"addon"}]}}}
1
+ {"version":"0.8.2","commands":{"data:mtls:create":{"id":"data:mtls:create","description":"enable MTLS for your addon","pluginName":"@heroku-cli/plugin-mtls","pluginType":"core","aliases":[],"examples":["$ heroku data:mtls:create postgresql-sushi-12345"],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true}},"args":[{"name":"addon"}]},"data:mtls:destroy":{"id":"data:mtls:destroy","description":"destroy MTLS configuration on your addon","pluginName":"@heroku-cli/plugin-mtls","pluginType":"core","aliases":["data:mtls:delete"],"examples":["$ heroku data:mtls:destroy postgresql-sushi-12345"],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true}},"args":[{"name":"addon"}]},"data:mtls":{"id":"data:mtls","description":"get the status of MTLS for your addon","pluginName":"@heroku-cli/plugin-mtls","pluginType":"core","aliases":[],"examples":["$ heroku data:mtls postgresql-sushi-12345"],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true}},"args":[{"name":"addon"}]},"data:mtls:certificates:create":{"id":"data:mtls:certificates:create","description":"create a new certificate for your MTLS enabled addon","pluginName":"@heroku-cli/plugin-mtls","pluginType":"core","aliases":[],"examples":["$ heroku data:mtls:certificates:create postgresql-sushi-12345"],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true}},"args":[{"name":"addon"}]},"data:mtls:certificates:delete":{"id":"data:mtls:certificates:delete","description":"delete a specific certificate for your MTLS enabled addon","pluginName":"@heroku-cli/plugin-mtls","pluginType":"core","aliases":[],"examples":["$ heroku data:mtls:certificates:delete postgresql-sushi-12345 --id \"1862ec85-fdc1-47b3-924e-a91d26ca3a7c\""],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true},"id":{"name":"id","type":"option","description":"id of certificate","required":true}},"args":[{"name":"addon"}]},"data:mtls:certificates:download":{"id":"data:mtls:certificates:download","description":"download your certificate bundle for your mTLS addon","pluginName":"@heroku-cli/plugin-mtls","pluginType":"core","aliases":[],"examples":["$ heroku data:mtls:certificates:download postgresql-sushi-12345 --id \"3559a4df-2c82-4473-86cf-181310a6ef4f\"","$ heroku data:mtls:certificates:download postgresql-sushi-12345 --id \"3559a4df-2c82-4473-86cf-181310a6ef4f\" --dir \"./folder\"","$ heroku data:mtls:certificates:download postgresql-sushi-12345 --id \"3559a4df-2c82-4473-86cf-181310a6ef4f --prefix \"prefix_\""],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true},"dir":{"name":"dir","type":"option","description":"directory to download files to. defaults to HOME:/.postgresql","required":false},"id":{"name":"id","type":"option","description":"ID of certificate to download","required":false},"prefix":{"name":"prefix","type":"option","description":"prefix to put in front of downloaded file names","required":true,"default":""}},"args":[{"name":"addon"}]},"data:mtls:certificates:get":{"id":"data:mtls:certificates:get","description":"get a specific certificate for your MTLS enabled addon","pluginName":"@heroku-cli/plugin-mtls","pluginType":"core","aliases":[],"examples":["$ heroku data:mtls:certificates:create postgresql-sushi-12345 --id \"1862ec85-fdc1-47b3-924e-a91d26ca3a7c\""],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true},"id":{"name":"id","type":"option","description":"id of IP Rule","required":true}},"args":[{"name":"addon"}]},"data:mtls:certificates":{"id":"data:mtls:certificates","description":"get the certificates for your MTLS enabled addon","pluginName":"@heroku-cli/plugin-mtls","pluginType":"core","aliases":[],"examples":["$ heroku data:mtls:ip-rules postgresql-sushi-12345"],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true}},"args":[{"name":"addon"}]},"data:mtls:ip-rules:create":{"id":"data:mtls:ip-rules:create","description":"create an IP Rule for your MTLS enabled addon","pluginName":"@heroku-cli/plugin-mtls","pluginType":"core","aliases":[],"examples":["$ heroku data:mtls:ip-rules:create postgresql-sushi-12345 --cidr \"1.2.3.4/32\" --description \"home IP address\""],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true},"cidr":{"name":"cidr","type":"option","required":true},"description":{"name":"description","type":"option","required":false}},"args":[{"name":"addon"}]},"data:mtls:ip-rules:delete":{"id":"data:mtls:ip-rules:delete","description":"delete a specific IP Rule for your MTLS enabled addon","pluginName":"@heroku-cli/plugin-mtls","pluginType":"core","aliases":[],"examples":["$ heroku data:mtls:ip-rules:delete postgresql-sushi-12345 --id \"1862ec85-fdc1-47b3-924e-a91d26ca3a7c\""],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true},"cidr":{"name":"cidr","type":"option","description":"cidr of IP Rule"},"id":{"name":"id","type":"option","description":"id of IP Rule"}},"args":[{"name":"addon"}]},"data:mtls:ip-rules:get":{"id":"data:mtls:ip-rules:get","description":"get a specific IP Rule for your MTLS enabled addon","pluginName":"@heroku-cli/plugin-mtls","pluginType":"core","aliases":[],"examples":["$ heroku data:mtls:ip-rules:get postgresql-sushi-12345 --id \"1862ec85-fdc1-47b3-924e-a91d26ca3a7c\""],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true},"id":{"name":"id","type":"option","description":"id of IP Rule","required":true}},"args":[{"name":"addon"}]},"data:mtls:ip-rules":{"id":"data:mtls:ip-rules","description":"get the IP Rules for your MTLS enabled addon","pluginName":"@heroku-cli/plugin-mtls","pluginType":"core","aliases":[],"examples":["$ heroku data:mtls:ip-rules postgresql-sushi-12345"],"flags":{"app":{"name":"app","type":"option","char":"a","description":"app to run command against","required":true}},"args":[{"name":"addon"}]}}}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@heroku-cli/plugin-mtls",
3
3
  "description": "heroku mtls cli",
4
- "version": "0.8.0",
4
+ "version": "0.8.2",
5
5
  "author": "rmanrique@heroku.com",
6
6
  "bugs": "https://github.com/heroku/heroku-cli-plugin-mtls/issues",
7
7
  "dependencies": {
package/yarn.lock CHANGED
@@ -778,7 +778,7 @@ commander@2.15.1:
778
778
  resolved "https://registry.yarnpkg.com/commander/-/commander-2.15.1.tgz#df46e867d0fc2aec66a34662b406a9ccafff5b0f"
779
779
  integrity sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==
780
780
 
781
- commander@^2.12.1, commander@~2.20.0:
781
+ commander@^2.12.1:
782
782
  version "2.20.0"
783
783
  resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.0.tgz#d58bb2b5c1ee8f87b0d340027e9e94e222c5a422"
784
784
  integrity sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==
@@ -868,9 +868,9 @@ decamelize@^1.2.0:
868
868
  integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=
869
869
 
870
870
  decode-uri-component@^0.2.0:
871
- version "0.2.0"
872
- resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545"
873
- integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=
871
+ version "0.2.2"
872
+ resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.2.tgz#e69dbe25d37941171dd540e024c444cd5188e1e9"
873
+ integrity sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==
874
874
 
875
875
  deep-eql@^3.0.1:
876
876
  version "3.0.1"
@@ -1357,13 +1357,14 @@ growl@1.10.5:
1357
1357
  integrity sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==
1358
1358
 
1359
1359
  handlebars@^4.1.2:
1360
- version "4.1.2"
1361
- resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.1.2.tgz#b6b37c1ced0306b221e094fc7aca3ec23b131b67"
1362
- integrity sha512-nvfrjqvt9xQ8Z/w0ijewdD/vvWDTOweBUm96NTr66Wfvo1mJenBLwcYmPs3TIBP5ruzYGD7Hx/DaM9RmhroGPw==
1360
+ version "4.7.7"
1361
+ resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.7.tgz#9ce33416aad02dbd6c8fafa8240d5d98004945a1"
1362
+ integrity sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==
1363
1363
  dependencies:
1364
+ minimist "^1.2.5"
1364
1365
  neo-async "^2.6.0"
1365
- optimist "^0.6.1"
1366
1366
  source-map "^0.6.1"
1367
+ wordwrap "^1.0.0"
1367
1368
  optionalDependencies:
1368
1369
  uglify-js "^3.1.4"
1369
1370
 
@@ -1429,9 +1430,9 @@ heroku-client@^3.0.7:
1429
1430
  tunnel-agent "^0.6.0"
1430
1431
 
1431
1432
  hosted-git-info@^2.1.4:
1432
- version "2.7.1"
1433
- resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.7.1.tgz#97f236977bd6e125408930ff6de3eec6281ec047"
1434
- integrity sha512-7T/BxH19zbcCTa8XkMlbK5lTo1WtgkFi3GvdWEyNuc4Vex7/9Dqbnpsf4JMydcfj9HCg4zUWFTL3Za6lapg5/w==
1433
+ version "2.8.9"
1434
+ resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9"
1435
+ integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==
1435
1436
 
1436
1437
  http-call@^5.1.2, http-call@^5.2.4:
1437
1438
  version "5.2.4"
@@ -1893,9 +1894,9 @@ lodash.templatesettings@^4.0.0:
1893
1894
  lodash._reinterpolate "^3.0.0"
1894
1895
 
1895
1896
  lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.13, lodash@^4.17.5:
1896
- version "4.17.15"
1897
- resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548"
1898
- integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==
1897
+ version "4.17.21"
1898
+ resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
1899
+ integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
1899
1900
 
1900
1901
  lolex@^4.0.1, lolex@^4.1.0:
1901
1902
  version "4.1.0"
@@ -2026,10 +2027,10 @@ minimist@0.0.8:
2026
2027
  resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d"
2027
2028
  integrity sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=
2028
2029
 
2029
- minimist@~0.0.1:
2030
- version "0.0.10"
2031
- resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf"
2032
- integrity sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=
2030
+ minimist@^1.2.5:
2031
+ version "1.2.7"
2032
+ resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.7.tgz#daa1c4d91f507390437c6a8bc01078e7000c4d18"
2033
+ integrity sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==
2033
2034
 
2034
2035
  mixin-deep@^1.2.0:
2035
2036
  version "1.3.2"
@@ -2106,9 +2107,9 @@ natural-orderby@^2.0.1:
2106
2107
  integrity sha512-p7KTHxU0CUrcOXe62Zfrb5Z13nLvPhSWR/so3kFulUQU0sgUll2Z0LwpsLN351eOOD+hRGu/F1g+6xDfPeD++Q==
2107
2108
 
2108
2109
  neo-async@^2.6.0:
2109
- version "2.6.1"
2110
- resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.1.tgz#ac27ada66167fa8849a6addd837f6b189ad2081c"
2111
- integrity sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw==
2110
+ version "2.6.2"
2111
+ resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f"
2112
+ integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==
2112
2113
 
2113
2114
  netrc-parser@^3.1.6:
2114
2115
  version "3.1.6"
@@ -2245,14 +2246,6 @@ open@^6.2.0:
2245
2246
  dependencies:
2246
2247
  is-wsl "^1.1.0"
2247
2248
 
2248
- optimist@^0.6.1:
2249
- version "0.6.1"
2250
- resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686"
2251
- integrity sha1-2j6nRob6IaGaERwybpDrFaAZZoY=
2252
- dependencies:
2253
- minimist "~0.0.1"
2254
- wordwrap "~0.0.2"
2255
-
2256
2249
  os-homedir@^1.0.1:
2257
2250
  version "1.0.2"
2258
2251
  resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3"
@@ -2380,9 +2373,9 @@ path-key@^2.0.0, path-key@^2.0.1:
2380
2373
  integrity sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=
2381
2374
 
2382
2375
  path-parse@^1.0.6:
2383
- version "1.0.6"
2384
- resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c"
2385
- integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==
2376
+ version "1.0.7"
2377
+ resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735"
2378
+ integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==
2386
2379
 
2387
2380
  path-to-regexp@^1.7.0:
2388
2381
  version "1.7.0"
@@ -2404,9 +2397,9 @@ path-type@^4.0.0:
2404
2397
  integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==
2405
2398
 
2406
2399
  pathval@^1.1.0:
2407
- version "1.1.0"
2408
- resolved "https://registry.yarnpkg.com/pathval/-/pathval-1.1.0.tgz#b942e6d4bde653005ef6b71361def8727d0645e0"
2409
- integrity sha1-uULm1L3mUwBe9rcTYd74cn0GReA=
2400
+ version "1.1.1"
2401
+ resolved "https://registry.yarnpkg.com/pathval/-/pathval-1.1.1.tgz#8534e77a77ce7ac5a2512ea21e0fdb8fcf6c3d8d"
2402
+ integrity sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==
2410
2403
 
2411
2404
  picomatch@^2.0.5:
2412
2405
  version "2.0.7"
@@ -2776,7 +2769,7 @@ source-map@^0.5.0, source-map@^0.5.6:
2776
2769
  resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc"
2777
2770
  integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=
2778
2771
 
2779
- source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1:
2772
+ source-map@^0.6.0, source-map@^0.6.1:
2780
2773
  version "0.6.1"
2781
2774
  resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
2782
2775
  integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==
@@ -3167,12 +3160,9 @@ typescript@^3.3:
3167
3160
  integrity sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g==
3168
3161
 
3169
3162
  uglify-js@^3.1.4:
3170
- version "3.6.0"
3171
- resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.6.0.tgz#704681345c53a8b2079fb6cec294b05ead242ff5"
3172
- integrity sha512-W+jrUHJr3DXKhrsS7NUVxn3zqMOFn0hL/Ei6v0anCIMoKC93TjcflTagwIHLW7SfMFfiQuktQyFVCFHGUE0+yg==
3173
- dependencies:
3174
- commander "~2.20.0"
3175
- source-map "~0.6.1"
3163
+ version "3.17.4"
3164
+ resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.17.4.tgz#61678cf5fa3f5b7eb789bb345df29afb8257c22c"
3165
+ integrity sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==
3176
3166
 
3177
3167
  union-value@^1.0.0:
3178
3168
  version "1.0.1"
@@ -3244,10 +3234,10 @@ widest-line@^2.0.1:
3244
3234
  dependencies:
3245
3235
  string-width "^2.1.1"
3246
3236
 
3247
- wordwrap@~0.0.2:
3248
- version "0.0.3"
3249
- resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107"
3250
- integrity sha1-o9XabNXAvAAI03I0u68b7WMFkQc=
3237
+ wordwrap@^1.0.0:
3238
+ version "1.0.0"
3239
+ resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb"
3240
+ integrity sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==
3251
3241
 
3252
3242
  wrap-ansi@^2.0.0:
3253
3243
  version "2.1.0"