@heroku-cli/plugin-mtls 0.9.1 → 0.9.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/LICENSE +21 -0
- package/README.md +12 -12
- package/lib/README.md +250 -0
- package/{oclif.manifest.json → lib/oclif.manifest.json} +1 -1
- package/lib/package.json +34 -0
- package/package.json +40 -5
- /package/{base.d.ts → lib/base.d.ts} +0 -0
- /package/{base.js → lib/base.js} +0 -0
- /package/{commands → lib/commands}/data/mtls/certificates/create.d.ts +0 -0
- /package/{commands → lib/commands}/data/mtls/certificates/create.js +0 -0
- /package/{commands → lib/commands}/data/mtls/certificates/delete.d.ts +0 -0
- /package/{commands → lib/commands}/data/mtls/certificates/delete.js +0 -0
- /package/{commands → lib/commands}/data/mtls/certificates/download.d.ts +0 -0
- /package/{commands → lib/commands}/data/mtls/certificates/download.js +0 -0
- /package/{commands → lib/commands}/data/mtls/certificates/get.d.ts +0 -0
- /package/{commands → lib/commands}/data/mtls/certificates/get.js +0 -0
- /package/{commands → lib/commands}/data/mtls/certificates/index.d.ts +0 -0
- /package/{commands → lib/commands}/data/mtls/certificates/index.js +0 -0
- /package/{commands → lib/commands}/data/mtls/create.d.ts +0 -0
- /package/{commands → lib/commands}/data/mtls/create.js +0 -0
- /package/{commands → lib/commands}/data/mtls/destroy.d.ts +0 -0
- /package/{commands → lib/commands}/data/mtls/destroy.js +0 -0
- /package/{commands → lib/commands}/data/mtls/index.d.ts +0 -0
- /package/{commands → lib/commands}/data/mtls/index.js +0 -0
- /package/{commands → lib/commands}/data/mtls/ip-rules/create.d.ts +0 -0
- /package/{commands → lib/commands}/data/mtls/ip-rules/create.js +0 -0
- /package/{commands → lib/commands}/data/mtls/ip-rules/delete.d.ts +0 -0
- /package/{commands → lib/commands}/data/mtls/ip-rules/delete.js +0 -0
- /package/{commands → lib/commands}/data/mtls/ip-rules/get.d.ts +0 -0
- /package/{commands → lib/commands}/data/mtls/ip-rules/get.js +0 -0
- /package/{commands → lib/commands}/data/mtls/ip-rules/index.d.ts +0 -0
- /package/{commands → lib/commands}/data/mtls/ip-rules/index.js +0 -0
- /package/{index.d.ts → lib/index.d.ts} +0 -0
- /package/{index.js → lib/index.js} +0 -0
- /package/lib/{fetcher.d.ts → lib/fetcher.d.ts} +0 -0
- /package/lib/{fetcher.js → lib/fetcher.js} +0 -0
- /package/{utils → lib/utils}/is-error-http.d.ts +0 -0
- /package/{utils → lib/utils}/is-error-http.js +0 -0
- /package/{utils → lib/utils}/is-error-message.d.ts +0 -0
- /package/{utils → lib/utils}/is-error-message.js +0 -0
- /package/{utils → lib/utils}/table.d.ts +0 -0
- /package/{utils → lib/utils}/table.js +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 rmanrique@heroku.com
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@ EXAMPLE
|
|
|
42
42
|
$ heroku data:mtls postgresql-sushi-12345
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
_See code: [src/commands/data/mtls/index.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.
|
|
45
|
+
_See code: [src/commands/data/mtls/index.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.2/src/commands/data/mtls/index.ts)_
|
|
46
46
|
|
|
47
47
|
## `heroku data:mtls:certificates [ADDON]`
|
|
48
48
|
|
|
@@ -59,7 +59,7 @@ EXAMPLE
|
|
|
59
59
|
$ heroku data:mtls:ip-rules postgresql-sushi-12345
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
_See code: [src/commands/data/mtls/certificates/index.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.
|
|
62
|
+
_See code: [src/commands/data/mtls/certificates/index.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.2/src/commands/data/mtls/certificates/index.ts)_
|
|
63
63
|
|
|
64
64
|
## `heroku data:mtls:certificates:create [ADDON]`
|
|
65
65
|
|
|
@@ -76,7 +76,7 @@ EXAMPLE
|
|
|
76
76
|
$ heroku data:mtls:certificates:create postgresql-sushi-12345
|
|
77
77
|
```
|
|
78
78
|
|
|
79
|
-
_See code: [src/commands/data/mtls/certificates/create.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.
|
|
79
|
+
_See code: [src/commands/data/mtls/certificates/create.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.2/src/commands/data/mtls/certificates/create.ts)_
|
|
80
80
|
|
|
81
81
|
## `heroku data:mtls:certificates:delete [ADDON]`
|
|
82
82
|
|
|
@@ -94,7 +94,7 @@ EXAMPLE
|
|
|
94
94
|
$ heroku data:mtls:certificates:delete postgresql-sushi-12345 --id "1862ec85-fdc1-47b3-924e-a91d26ca3a7c"
|
|
95
95
|
```
|
|
96
96
|
|
|
97
|
-
_See code: [src/commands/data/mtls/certificates/delete.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.
|
|
97
|
+
_See code: [src/commands/data/mtls/certificates/delete.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.2/src/commands/data/mtls/certificates/delete.ts)_
|
|
98
98
|
|
|
99
99
|
## `heroku data:mtls:certificates:download [ADDON]`
|
|
100
100
|
|
|
@@ -118,7 +118,7 @@ EXAMPLES
|
|
|
118
118
|
"prefix_"
|
|
119
119
|
```
|
|
120
120
|
|
|
121
|
-
_See code: [src/commands/data/mtls/certificates/download.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.
|
|
121
|
+
_See code: [src/commands/data/mtls/certificates/download.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.2/src/commands/data/mtls/certificates/download.ts)_
|
|
122
122
|
|
|
123
123
|
## `heroku data:mtls:certificates:get [ADDON]`
|
|
124
124
|
|
|
@@ -136,7 +136,7 @@ EXAMPLE
|
|
|
136
136
|
$ heroku data:mtls:certificates:create postgresql-sushi-12345 --id "1862ec85-fdc1-47b3-924e-a91d26ca3a7c"
|
|
137
137
|
```
|
|
138
138
|
|
|
139
|
-
_See code: [src/commands/data/mtls/certificates/get.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.
|
|
139
|
+
_See code: [src/commands/data/mtls/certificates/get.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.2/src/commands/data/mtls/certificates/get.ts)_
|
|
140
140
|
|
|
141
141
|
## `heroku data:mtls:create [ADDON]`
|
|
142
142
|
|
|
@@ -153,7 +153,7 @@ EXAMPLE
|
|
|
153
153
|
$ heroku data:mtls:create postgresql-sushi-12345
|
|
154
154
|
```
|
|
155
155
|
|
|
156
|
-
_See code: [src/commands/data/mtls/create.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.
|
|
156
|
+
_See code: [src/commands/data/mtls/create.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.2/src/commands/data/mtls/create.ts)_
|
|
157
157
|
|
|
158
158
|
## `heroku data:mtls:destroy [ADDON]`
|
|
159
159
|
|
|
@@ -173,7 +173,7 @@ EXAMPLE
|
|
|
173
173
|
$ heroku data:mtls:destroy postgresql-sushi-12345
|
|
174
174
|
```
|
|
175
175
|
|
|
176
|
-
_See code: [src/commands/data/mtls/destroy.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.
|
|
176
|
+
_See code: [src/commands/data/mtls/destroy.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.2/src/commands/data/mtls/destroy.ts)_
|
|
177
177
|
|
|
178
178
|
## `heroku data:mtls:ip-rules [ADDON]`
|
|
179
179
|
|
|
@@ -190,7 +190,7 @@ EXAMPLE
|
|
|
190
190
|
$ heroku data:mtls:ip-rules postgresql-sushi-12345
|
|
191
191
|
```
|
|
192
192
|
|
|
193
|
-
_See code: [src/commands/data/mtls/ip-rules/index.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.
|
|
193
|
+
_See code: [src/commands/data/mtls/ip-rules/index.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.2/src/commands/data/mtls/ip-rules/index.ts)_
|
|
194
194
|
|
|
195
195
|
## `heroku data:mtls:ip-rules:create [ADDON]`
|
|
196
196
|
|
|
@@ -209,7 +209,7 @@ EXAMPLE
|
|
|
209
209
|
$ heroku data:mtls:ip-rules:create postgresql-sushi-12345 --cidr "1.2.3.4/32" --description "home IP address"
|
|
210
210
|
```
|
|
211
211
|
|
|
212
|
-
_See code: [src/commands/data/mtls/ip-rules/create.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.
|
|
212
|
+
_See code: [src/commands/data/mtls/ip-rules/create.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.2/src/commands/data/mtls/ip-rules/create.ts)_
|
|
213
213
|
|
|
214
214
|
## `heroku data:mtls:ip-rules:delete [ADDON]`
|
|
215
215
|
|
|
@@ -228,7 +228,7 @@ EXAMPLE
|
|
|
228
228
|
$ heroku data:mtls:ip-rules:delete postgresql-sushi-12345 --id "1862ec85-fdc1-47b3-924e-a91d26ca3a7c"
|
|
229
229
|
```
|
|
230
230
|
|
|
231
|
-
_See code: [src/commands/data/mtls/ip-rules/delete.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.
|
|
231
|
+
_See code: [src/commands/data/mtls/ip-rules/delete.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.2/src/commands/data/mtls/ip-rules/delete.ts)_
|
|
232
232
|
|
|
233
233
|
## `heroku data:mtls:ip-rules:get [ADDON]`
|
|
234
234
|
|
|
@@ -246,5 +246,5 @@ EXAMPLE
|
|
|
246
246
|
$ heroku data:mtls:ip-rules:get postgresql-sushi-12345 --id "1862ec85-fdc1-47b3-924e-a91d26ca3a7c"
|
|
247
247
|
```
|
|
248
248
|
|
|
249
|
-
_See code: [src/commands/data/mtls/ip-rules/get.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.
|
|
249
|
+
_See code: [src/commands/data/mtls/ip-rules/get.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.2/src/commands/data/mtls/ip-rules/get.ts)_
|
|
250
250
|
<!-- commandsstop -->
|
package/lib/README.md
ADDED
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
# Heroku CLI MTLS Plugin
|
|
2
|
+
|
|
3
|
+
[](https://oclif.io)
|
|
4
|
+

|
|
5
|
+
|
|
6
|
+
<!-- toc -->
|
|
7
|
+
* [Heroku CLI MTLS Plugin](#heroku-cli-mtls-plugin)
|
|
8
|
+
* [Installation](#installation)
|
|
9
|
+
* [Commands](#commands)
|
|
10
|
+
<!-- tocstop -->
|
|
11
|
+
# Installation
|
|
12
|
+
```sh-session
|
|
13
|
+
$ heroku plugins:install @heroku-cli/plugin-mtls
|
|
14
|
+
```
|
|
15
|
+
# Commands
|
|
16
|
+
<!-- commands -->
|
|
17
|
+
* [`heroku data:mtls [ADDON]`](#heroku-datamtls-addon)
|
|
18
|
+
* [`heroku data:mtls:certificates [ADDON]`](#heroku-datamtlscertificates-addon)
|
|
19
|
+
* [`heroku data:mtls:certificates:create [ADDON]`](#heroku-datamtlscertificatescreate-addon)
|
|
20
|
+
* [`heroku data:mtls:certificates:delete [ADDON]`](#heroku-datamtlscertificatesdelete-addon)
|
|
21
|
+
* [`heroku data:mtls:certificates:download [ADDON]`](#heroku-datamtlscertificatesdownload-addon)
|
|
22
|
+
* [`heroku data:mtls:certificates:get [ADDON]`](#heroku-datamtlscertificatesget-addon)
|
|
23
|
+
* [`heroku data:mtls:create [ADDON]`](#heroku-datamtlscreate-addon)
|
|
24
|
+
* [`heroku data:mtls:destroy [ADDON]`](#heroku-datamtlsdestroy-addon)
|
|
25
|
+
* [`heroku data:mtls:ip-rules [ADDON]`](#heroku-datamtlsip-rules-addon)
|
|
26
|
+
* [`heroku data:mtls:ip-rules:create [ADDON]`](#heroku-datamtlsip-rulescreate-addon)
|
|
27
|
+
* [`heroku data:mtls:ip-rules:delete [ADDON]`](#heroku-datamtlsip-rulesdelete-addon)
|
|
28
|
+
* [`heroku data:mtls:ip-rules:get [ADDON]`](#heroku-datamtlsip-rulesget-addon)
|
|
29
|
+
|
|
30
|
+
## `heroku data:mtls [ADDON]`
|
|
31
|
+
|
|
32
|
+
get the status of MTLS for your addon
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
USAGE
|
|
36
|
+
$ heroku data:mtls [ADDON]
|
|
37
|
+
|
|
38
|
+
OPTIONS
|
|
39
|
+
-a, --app=app (required) app to run command against
|
|
40
|
+
|
|
41
|
+
EXAMPLE
|
|
42
|
+
$ heroku data:mtls postgresql-sushi-12345
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
_See code: [src/commands/data/mtls/index.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.2/src/commands/data/mtls/index.ts)_
|
|
46
|
+
|
|
47
|
+
## `heroku data:mtls:certificates [ADDON]`
|
|
48
|
+
|
|
49
|
+
get the certificates for your MTLS enabled addon
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
USAGE
|
|
53
|
+
$ heroku data:mtls:certificates [ADDON]
|
|
54
|
+
|
|
55
|
+
OPTIONS
|
|
56
|
+
-a, --app=app (required) app to run command against
|
|
57
|
+
|
|
58
|
+
EXAMPLE
|
|
59
|
+
$ heroku data:mtls:ip-rules postgresql-sushi-12345
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
_See code: [src/commands/data/mtls/certificates/index.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.2/src/commands/data/mtls/certificates/index.ts)_
|
|
63
|
+
|
|
64
|
+
## `heroku data:mtls:certificates:create [ADDON]`
|
|
65
|
+
|
|
66
|
+
create a new certificate for your MTLS enabled addon
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
USAGE
|
|
70
|
+
$ heroku data:mtls:certificates:create [ADDON]
|
|
71
|
+
|
|
72
|
+
OPTIONS
|
|
73
|
+
-a, --app=app (required) app to run command against
|
|
74
|
+
|
|
75
|
+
EXAMPLE
|
|
76
|
+
$ heroku data:mtls:certificates:create postgresql-sushi-12345
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
_See code: [src/commands/data/mtls/certificates/create.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.2/src/commands/data/mtls/certificates/create.ts)_
|
|
80
|
+
|
|
81
|
+
## `heroku data:mtls:certificates:delete [ADDON]`
|
|
82
|
+
|
|
83
|
+
delete a specific certificate for your MTLS enabled addon
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
USAGE
|
|
87
|
+
$ heroku data:mtls:certificates:delete [ADDON]
|
|
88
|
+
|
|
89
|
+
OPTIONS
|
|
90
|
+
-a, --app=app (required) app to run command against
|
|
91
|
+
--id=id (required) id of certificate
|
|
92
|
+
|
|
93
|
+
EXAMPLE
|
|
94
|
+
$ heroku data:mtls:certificates:delete postgresql-sushi-12345 --id "1862ec85-fdc1-47b3-924e-a91d26ca3a7c"
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
_See code: [src/commands/data/mtls/certificates/delete.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.2/src/commands/data/mtls/certificates/delete.ts)_
|
|
98
|
+
|
|
99
|
+
## `heroku data:mtls:certificates:download [ADDON]`
|
|
100
|
+
|
|
101
|
+
download your certificate bundle for your mTLS addon
|
|
102
|
+
|
|
103
|
+
```
|
|
104
|
+
USAGE
|
|
105
|
+
$ heroku data:mtls:certificates:download [ADDON]
|
|
106
|
+
|
|
107
|
+
OPTIONS
|
|
108
|
+
-a, --app=app (required) app to run command against
|
|
109
|
+
--dir=dir directory to download files to. defaults to HOME:/.postgresql
|
|
110
|
+
--id=id ID of certificate to download
|
|
111
|
+
--prefix=prefix (required) prefix to put in front of downloaded file names
|
|
112
|
+
|
|
113
|
+
EXAMPLES
|
|
114
|
+
$ heroku data:mtls:certificates:download postgresql-sushi-12345 --id "3559a4df-2c82-4473-86cf-181310a6ef4f"
|
|
115
|
+
$ heroku data:mtls:certificates:download postgresql-sushi-12345 --id "3559a4df-2c82-4473-86cf-181310a6ef4f" --dir
|
|
116
|
+
"./folder"
|
|
117
|
+
$ heroku data:mtls:certificates:download postgresql-sushi-12345 --id "3559a4df-2c82-4473-86cf-181310a6ef4f --prefix
|
|
118
|
+
"prefix_"
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
_See code: [src/commands/data/mtls/certificates/download.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.2/src/commands/data/mtls/certificates/download.ts)_
|
|
122
|
+
|
|
123
|
+
## `heroku data:mtls:certificates:get [ADDON]`
|
|
124
|
+
|
|
125
|
+
get a specific certificate for your MTLS enabled addon
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
USAGE
|
|
129
|
+
$ heroku data:mtls:certificates:get [ADDON]
|
|
130
|
+
|
|
131
|
+
OPTIONS
|
|
132
|
+
-a, --app=app (required) app to run command against
|
|
133
|
+
--id=id (required) id of IP Rule
|
|
134
|
+
|
|
135
|
+
EXAMPLE
|
|
136
|
+
$ heroku data:mtls:certificates:create postgresql-sushi-12345 --id "1862ec85-fdc1-47b3-924e-a91d26ca3a7c"
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
_See code: [src/commands/data/mtls/certificates/get.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.2/src/commands/data/mtls/certificates/get.ts)_
|
|
140
|
+
|
|
141
|
+
## `heroku data:mtls:create [ADDON]`
|
|
142
|
+
|
|
143
|
+
enable MTLS for your addon
|
|
144
|
+
|
|
145
|
+
```
|
|
146
|
+
USAGE
|
|
147
|
+
$ heroku data:mtls:create [ADDON]
|
|
148
|
+
|
|
149
|
+
OPTIONS
|
|
150
|
+
-a, --app=app (required) app to run command against
|
|
151
|
+
|
|
152
|
+
EXAMPLE
|
|
153
|
+
$ heroku data:mtls:create postgresql-sushi-12345
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
_See code: [src/commands/data/mtls/create.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.2/src/commands/data/mtls/create.ts)_
|
|
157
|
+
|
|
158
|
+
## `heroku data:mtls:destroy [ADDON]`
|
|
159
|
+
|
|
160
|
+
destroy MTLS configuration on your addon
|
|
161
|
+
|
|
162
|
+
```
|
|
163
|
+
USAGE
|
|
164
|
+
$ heroku data:mtls:destroy [ADDON]
|
|
165
|
+
|
|
166
|
+
OPTIONS
|
|
167
|
+
-a, --app=app (required) app to run command against
|
|
168
|
+
|
|
169
|
+
ALIASES
|
|
170
|
+
$ heroku data:mtls:delete
|
|
171
|
+
|
|
172
|
+
EXAMPLE
|
|
173
|
+
$ heroku data:mtls:destroy postgresql-sushi-12345
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
_See code: [src/commands/data/mtls/destroy.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.2/src/commands/data/mtls/destroy.ts)_
|
|
177
|
+
|
|
178
|
+
## `heroku data:mtls:ip-rules [ADDON]`
|
|
179
|
+
|
|
180
|
+
get the IP Rules for your MTLS enabled addon
|
|
181
|
+
|
|
182
|
+
```
|
|
183
|
+
USAGE
|
|
184
|
+
$ heroku data:mtls:ip-rules [ADDON]
|
|
185
|
+
|
|
186
|
+
OPTIONS
|
|
187
|
+
-a, --app=app (required) app to run command against
|
|
188
|
+
|
|
189
|
+
EXAMPLE
|
|
190
|
+
$ heroku data:mtls:ip-rules postgresql-sushi-12345
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
_See code: [src/commands/data/mtls/ip-rules/index.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.2/src/commands/data/mtls/ip-rules/index.ts)_
|
|
194
|
+
|
|
195
|
+
## `heroku data:mtls:ip-rules:create [ADDON]`
|
|
196
|
+
|
|
197
|
+
create an IP Rule for your MTLS enabled addon
|
|
198
|
+
|
|
199
|
+
```
|
|
200
|
+
USAGE
|
|
201
|
+
$ heroku data:mtls:ip-rules:create [ADDON]
|
|
202
|
+
|
|
203
|
+
OPTIONS
|
|
204
|
+
-a, --app=app (required) app to run command against
|
|
205
|
+
--cidr=cidr (required)
|
|
206
|
+
--description=description
|
|
207
|
+
|
|
208
|
+
EXAMPLE
|
|
209
|
+
$ heroku data:mtls:ip-rules:create postgresql-sushi-12345 --cidr "1.2.3.4/32" --description "home IP address"
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
_See code: [src/commands/data/mtls/ip-rules/create.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.2/src/commands/data/mtls/ip-rules/create.ts)_
|
|
213
|
+
|
|
214
|
+
## `heroku data:mtls:ip-rules:delete [ADDON]`
|
|
215
|
+
|
|
216
|
+
delete a specific IP Rule for your MTLS enabled addon
|
|
217
|
+
|
|
218
|
+
```
|
|
219
|
+
USAGE
|
|
220
|
+
$ heroku data:mtls:ip-rules:delete [ADDON]
|
|
221
|
+
|
|
222
|
+
OPTIONS
|
|
223
|
+
-a, --app=app (required) app to run command against
|
|
224
|
+
--cidr=cidr cidr of IP Rule
|
|
225
|
+
--id=id id of IP Rule
|
|
226
|
+
|
|
227
|
+
EXAMPLE
|
|
228
|
+
$ heroku data:mtls:ip-rules:delete postgresql-sushi-12345 --id "1862ec85-fdc1-47b3-924e-a91d26ca3a7c"
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
_See code: [src/commands/data/mtls/ip-rules/delete.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.2/src/commands/data/mtls/ip-rules/delete.ts)_
|
|
232
|
+
|
|
233
|
+
## `heroku data:mtls:ip-rules:get [ADDON]`
|
|
234
|
+
|
|
235
|
+
get a specific IP Rule for your MTLS enabled addon
|
|
236
|
+
|
|
237
|
+
```
|
|
238
|
+
USAGE
|
|
239
|
+
$ heroku data:mtls:ip-rules:get [ADDON]
|
|
240
|
+
|
|
241
|
+
OPTIONS
|
|
242
|
+
-a, --app=app (required) app to run command against
|
|
243
|
+
--id=id (required) id of IP Rule
|
|
244
|
+
|
|
245
|
+
EXAMPLE
|
|
246
|
+
$ heroku data:mtls:ip-rules:get postgresql-sushi-12345 --id "1862ec85-fdc1-47b3-924e-a91d26ca3a7c"
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
_See code: [src/commands/data/mtls/ip-rules/get.ts](https://github.com/heroku/heroku-cli-plugin-mtls/blob/v0.9.2/src/commands/data/mtls/ip-rules/get.ts)_
|
|
250
|
+
<!-- commandsstop -->
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.9.
|
|
1
|
+
{"version":"0.9.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/lib/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@heroku-cli/plugin-mtls",
|
|
3
|
+
"description": "heroku mtls cli",
|
|
4
|
+
"version": "0.9.2",
|
|
5
|
+
"author": "Heroku",
|
|
6
|
+
"bugs": "https://github.com/heroku/heroku-cli-plugin-mtls/issues",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@heroku-cli/color": "^1.1.14",
|
|
9
|
+
"@heroku-cli/command": "^8.2.12",
|
|
10
|
+
"@oclif/command": "^1",
|
|
11
|
+
"@oclif/config": "^1",
|
|
12
|
+
"@types/inquirer": "^6.0.3",
|
|
13
|
+
"@types/supports-color": "^5.3.0",
|
|
14
|
+
"cli-ux": "^5.3.0",
|
|
15
|
+
"inquirer": "^6.5.0",
|
|
16
|
+
"tslib": "~2.6.2"
|
|
17
|
+
},
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": ">=16.0.0"
|
|
20
|
+
},
|
|
21
|
+
"homepage": "https://github.com/heroku/heroku-cli-plugin-mtls",
|
|
22
|
+
"keywords": [
|
|
23
|
+
"oclif-plugin"
|
|
24
|
+
],
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"oclif": {
|
|
27
|
+
"commands": "./commands",
|
|
28
|
+
"bin": "heroku",
|
|
29
|
+
"devPlugins": [
|
|
30
|
+
"@oclif/plugin-help"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"repository": "heroku/heroku-cli-plugin-mtls"
|
|
34
|
+
}
|
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.9.
|
|
4
|
+
"version": "0.9.2",
|
|
5
5
|
"author": "Heroku",
|
|
6
6
|
"bugs": "https://github.com/heroku/heroku-cli-plugin-mtls/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -15,20 +15,55 @@
|
|
|
15
15
|
"inquirer": "^6.5.0",
|
|
16
16
|
"tslib": "~2.6.2"
|
|
17
17
|
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@fancy-test/nock": "^0.1.1",
|
|
20
|
+
"@heroku-cli/schema": "^1.0.25",
|
|
21
|
+
"@oclif/dev-cli": "^1",
|
|
22
|
+
"@oclif/plugin-help": "^2",
|
|
23
|
+
"@oclif/test": "^1",
|
|
24
|
+
"@types/chai": "^4",
|
|
25
|
+
"@types/mocha": "^10.0.6",
|
|
26
|
+
"@types/node": "^20.10.4",
|
|
27
|
+
"@types/sinon": "^17.0.2",
|
|
28
|
+
"@typescript-eslint/eslint-plugin": "^6.14.0",
|
|
29
|
+
"@typescript-eslint/parser": "6.x",
|
|
30
|
+
"chai": "^4",
|
|
31
|
+
"eslint": "8.x",
|
|
32
|
+
"eslint-config-oclif": "^5.0.0",
|
|
33
|
+
"eslint-config-oclif-typescript": "^3.0.26",
|
|
34
|
+
"mocha": "10.x",
|
|
35
|
+
"nock": "^13.5.1",
|
|
36
|
+
"nyc": "^15.1.0",
|
|
37
|
+
"sinon": "^18.0.0",
|
|
38
|
+
"ts-node": "10.x",
|
|
39
|
+
"typescript": "4.x"
|
|
40
|
+
},
|
|
18
41
|
"engines": {
|
|
19
|
-
"node": ">=
|
|
42
|
+
"node": ">=16.0.0"
|
|
20
43
|
},
|
|
44
|
+
"files": [
|
|
45
|
+
"/lib",
|
|
46
|
+
"/oclif.manifest.json"
|
|
47
|
+
],
|
|
21
48
|
"homepage": "https://github.com/heroku/heroku-cli-plugin-mtls",
|
|
22
49
|
"keywords": [
|
|
23
50
|
"oclif-plugin"
|
|
24
51
|
],
|
|
25
52
|
"license": "MIT",
|
|
26
53
|
"oclif": {
|
|
27
|
-
"commands": "./commands",
|
|
54
|
+
"commands": "./lib/commands",
|
|
28
55
|
"bin": "heroku",
|
|
29
56
|
"devPlugins": [
|
|
30
57
|
"@oclif/plugin-help"
|
|
31
58
|
]
|
|
32
59
|
},
|
|
33
|
-
"repository": "heroku/heroku-cli-plugin-mtls"
|
|
34
|
-
|
|
60
|
+
"repository": "heroku/heroku-cli-plugin-mtls",
|
|
61
|
+
"scripts": {
|
|
62
|
+
"lint": "eslint . --ext .ts --config .eslintrc",
|
|
63
|
+
"lint:fix": "yarn run lint -- --fix",
|
|
64
|
+
"posttest": "yarn run lint",
|
|
65
|
+
"build": "rm -rf lib && tsc -b && oclif-dev manifest && oclif-dev readme && mv oclif.manifest.json ./lib/oclif.manifest.json && cp README.md ./lib/README.md && node scripts/prepack.mjs",
|
|
66
|
+
"test": "nyc --extension .ts mocha --config test/mocharc.json --forbid-only \"test/**/*.test.ts\"",
|
|
67
|
+
"version": "oclif-dev readme && git add README.md"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
File without changes
|
/package/{base.js → lib/base.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|