-
Notifications
You must be signed in to change notification settings - Fork 2
/
plugin.yaml
275 lines (275 loc) · 9.71 KB
/
plugin.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
name: java-keytool-steps
version: 1.1.0
rundeckPluginVersion: 1.2
author: alexh and csinks
date: Mon Sep 10 2018
providers:
- name: java-keytool-list-step
service: RemoteScriptNodeStep
title: 'java / keytool / list'
description: 'Run keytool list action.'
plugin-type: script
script-interpreter: /usr/bin/env bash
script-file: keytoolw
script-args: --action list --jdk-home ${config.jdk_home} --keystore-path ${config.keystore_path}
config:
- type: String
name: keystore_path
title: Keystore Path*
description: 'Path to the jdk keystore'
required: true
- type: String
name: keystore_password
title: Keystore Password*
description: 'Path to keystore password'
required: true
renderingOptions:
selectionAccessor: "STORAGE_PATH"
valueConversion: "STORAGE_PATH_AUTOMATIC_READ"
storage-path-root: "keys"
- type: String
name: jdk_home
title: JDK Home
description: 'Path to the jdk. If left blank, will search for the jdk in $PATH.'
- type: String
name: alias
title: Alias
description: 'Alias name. If left blank, will list all certificates in the keystore.'
- name: java-keytool-printcert-step
service: RemoteScriptNodeStep
title: 'java / keytool / printcert'
description: 'Run keytool printcert action.'
plugin-type: script
script-interpreter: /usr/bin/env bash
script-file: keytoolw
script-args: --action printcert --jdk-home ${config.jdk_home} --cert-path ${config.cert_path}
config:
- type: String
name: cert_path
title: Certificate Path*
description: 'Path to the jdk keystore'
required: true
- type: String
name: jdk_home
title: JDK Home
description: 'Path to the jdk. If left blank, will search for the jdk in $PATH'
- name: java-keytool-checkExp-step
service: RemoteScriptNodeStep
title: 'java / keytool / checkExpiration'
description: 'Check certificate expiration date.'
plugin-type: script
script-interpreter: /usr/bin/env bash
script-file: keytoolw
script-args: --action checkExp --jdk-home ${config.jdk_home} --keystore-path ${config.keystore_path} --age-thresh ${config.age_thresh}
config:
- type: String
name: keystore_path
title: Keystore Path*
description: 'Path to the jdk keystore'
required: true
- type: String
name: keystore_password
title: Keystore Password*
description: 'Path to keystore password'
required: true
renderingOptions:
selectionAccessor: "STORAGE_PATH"
valueConversion: "STORAGE_PATH_AUTOMATIC_READ"
storage-path-root: "keys"
- type: String
name: alias
title: Alias*
description: 'Alias name'
required: true
- type: Integer
name: age_thresh
title: Age Threshhold (days)
description: 'If specified, fail the job if the certificate expires in this many days or less'
- type: String
name: jdk_home
title: JDK Home
description: 'Path to the jdk. If left blank, will search for the jdk in $PATH.'
- name: java-keytool-create-step
service: RemoteScriptNodeStep
title: 'java / keytool / create'
description: 'Create a new keystore and/or key pair and optionally generate a certificate request'
plugin-type: script
script-interpreter: /usr/bin/env bash
script-file: keytoolw
script-args: --action create --jdk-home ${config.jdk_home} --keystore-path ${config.keystore_path} --overwrite-keystore ${config.overwrite_keystore}
config:
- type: String
name: keystore_path
title: Keystore Path*
description: 'Path to the jdk keystore'
required: true
- type: Boolean
name: overwrite_keystore
title: 'Overwrite keystore?'
description: 'Overwrite keystore if it exists? If unchecked, will attempt to add alias to existing keystore.'
- type: String
name: keystore_password
title: Keystore Password*
description: 'Path to keystore password'
required: true
renderingOptions:
selectionAccessor: "STORAGE_PATH"
valueConversion: "STORAGE_PATH_AUTOMATIC_READ"
storage-path-root: "keys"
- type: String
name: private_key_password
title: Private Key Password*
description: 'Path to private key password'
required: true
renderingOptions:
selectionAccessor: "STORAGE_PATH"
valueConversion: "STORAGE_PATH_AUTOMATIC_READ"
storage-path-root: "keys"
- type: String
name: alias
title: Alias*
description: 'Alias name'
required: true
- type: String
name: key_alg
title: Key Algorithm [RSA]
description: Keypair Algorithm
required: true
default: "RSA"
- type: Integer
name: key_size
title: Key Size [2048]
description: Key Size
required: true
default: 2048
- type: String
name: common_name
title: Common Name (CN)*
description: Common Name
required: true
- type: String
name: org_unit
title: Organization Unit (OU)*
description: Organization Unit
required: true
- type: String
name: org_name
title: Organization Name (O)*
description: Organization Name
required: true
- type: String
name: loc_name
title: Locality Name (L)*
description: Locality Name
required: true
- type: String
name: state_name
title: State Name (ST)*
description: State Name
required: true
- type: String
name: country
title: Country (C)*
description: Country
required: true
- type: Integer
name: validity_period
title: Validity Period (days) [365]
description: Validity Period
required: true
default: 365
- type: String
name: san
title: Subject Alternative Name (Optional)
description: "Comma-separated list of SANs. Ex: dns:hostname.domain.com,dns:hostalias.domain.com,ip:1.1.1.1"
- type: String
name: key_usage
title: Key Usage (Optional)
description: "Comma-separated list of valid Key Usages. Ex: digitalSignature,keyEncipherment,keyCertSign"
- type: String
name: jdk_home
title: JDK Home
description: 'Path to the jdk. If left blank, will search for the jdk in $PATH.'
- type: String
name: certreq_path
title: Directory to create Certificate Request in
description: "If specified, generate a certficicate request and save the certreq to the location specified."
- name: java-keytool-import-step
service: RemoteScriptNodeStep
title: 'java / keytool / import'
description: 'Import a root, intermediate, and/or a signed server certificate into an existing keystore'
plugin-type: script
script-interpreter: /usr/bin/env bash
script-file: keytoolw
script-args: --action import --jdk-home ${config.jdk_home} --keystore-path ${config.keystore_path} --cert-path ${config.cert_path}
config:
- type: String
name: keystore_path
title: Keystore Path*
description: 'Path to the jdk keystore'
required: true
- type: String
name: keystore_password
title: Keystore Password*
description: 'Path to keystore password'
required: true
renderingOptions:
selectionAccessor: "STORAGE_PATH"
valueConversion: "STORAGE_PATH_AUTOMATIC_READ"
storage-path-root: "keys"
- type: String
name: private_key_password
title: Private Key Password*
description: 'Path to private key password for private key entry, if applicable. If not, enter "None"'
required: true
default: "None"
renderingOptions:
selectionAccessor: "STORAGE_PATH"
valueConversion: "STORAGE_PATH_AUTOMATIC_READ"
storage-path-root: "keys"
- type: String
name: alias
title: Alias*
description: 'Certificate alias'
required: true
- type: String
name: cert_path
title: Server Certificate Path*
description: 'Path to the certificate.'
required: true
- type: String
name: jdk_home
title: JDK Home
description: 'Path to the jdk. If left blank, will search for the jdk in $PATH.'
- name: java-keytool-delete-step
service: RemoteScriptNodeStep
title: 'java / keytool / delete'
description: 'Delete an alias from a keystore.'
plugin-type: script
script-interpreter: /usr/bin/env bash
script-file: keytoolw
script-args: --action delete --jdk-home ${config.jdk_home} --keystore-path ${config.keystore_path}
config:
- type: String
name: keystore_path
title: Keystore Path*
description: 'Path to the jdk keystore'
required: true
- type: String
name: keystore_password
title: Keystore Password*
description: 'Path to keystore password'
required: true
renderingOptions:
selectionAccessor: "STORAGE_PATH"
valueConversion: "STORAGE_PATH_AUTOMATIC_READ"
storage-path-root: "keys"
- type: String
name: alias
title: Alias
description: 'Alias name to delete'
required: true
- type: String
name: jdk_home
title: JDK Home
description: 'Path to the jdk. If left blank, will search for the jdk in $PATH.'