Skip to content

Commit 7be00a5

Browse files
author
Mauricio Harley
committed
Barbican Support for Luna HSM
Signed-off-by: Mauricio Harley <[email protected]>
1 parent 40cdf6f commit 7be00a5

21 files changed

+678
-354
lines changed

api/bases/barbican.openstack.org_barbicanapis.yaml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -300,13 +300,13 @@ spec:
300300
pkcs11:
301301
description: BarbicanPKCS11Template - Includes all common HSM properties
302302
properties:
303-
hsmCertificates:
304-
additionalProperties:
305-
type: string
306-
description: 'The HSM certificates. The map''s key is the OpenShift
307-
secret storing the certificate, and the value is the mounting
308-
point (e.g., "luna-certificates": "/usr/local/luna/config/certs").'
309-
type: object
303+
hsmCertificatesMountPoint:
304+
description: The mounting point where the certificates will be
305+
copied to (e.g., /usr/local/luna/config/certs).
306+
type: string
307+
hsmCertificatesSecret:
308+
description: The OpenShift secret that stores the HSM certificates.
309+
type: string
310310
hsmClientAddress:
311311
description: The IP address of the client connecting to the HSM
312312
(X.Y.Z.K)
@@ -331,9 +331,9 @@ spec:
331331
maximum: 7
332332
minimum: 0
333333
type: integer
334-
hsmLogin:
335-
description: OpenShift secret storing the password to login to
336-
PKCS11 session
334+
hsmLoginSecret:
335+
description: OpenShift secret that stores the password to login
336+
to the PKCS11 session
337337
type: string
338338
hsmMKEKLabel:
339339
description: Label to identify master KEK in the HSM (must not
@@ -344,16 +344,14 @@ spec:
344344
description: Length in bytes of master KEK
345345
type: integer
346346
hsmSlotId:
347-
default: 1
348347
description: HSM Slot ID that contains the token device to be
349348
used
350-
type: integer
349+
type: string
351350
hsmTokenLabel:
352351
description: Token label used to identify the token to be used.
353352
Required when token_serial_number is not specified.
354353
type: string
355354
hsmTokenSerialNumber:
356-
default: "12345678"
357355
description: Token serial number used to identify the token to
358356
be used. Required when the device has multiple tokens with the
359357
same label.
@@ -362,6 +360,13 @@ spec:
362360
description: 'A string containing the HSM type (currently supported:
363361
"trustway", "luna", "ncipher").'
364362
type: string
363+
required:
364+
- hsmHMACLabel
365+
- hsmIpAddress
366+
- hsmLibraryPath
367+
- hsmLoginSecret
368+
- hsmMKEKLabel
369+
- hsmType
365370
type: object
366371
rabbitMqClusterName:
367372
default: rabbitmq

api/bases/barbican.openstack.org_barbicankeystonelisteners.yaml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,13 @@ spec:
122122
pkcs11:
123123
description: BarbicanPKCS11Template - Includes all common HSM properties
124124
properties:
125-
hsmCertificates:
126-
additionalProperties:
127-
type: string
128-
description: 'The HSM certificates. The map''s key is the OpenShift
129-
secret storing the certificate, and the value is the mounting
130-
point (e.g., "luna-certificates": "/usr/local/luna/config/certs").'
131-
type: object
125+
hsmCertificatesMountPoint:
126+
description: The mounting point where the certificates will be
127+
copied to (e.g., /usr/local/luna/config/certs).
128+
type: string
129+
hsmCertificatesSecret:
130+
description: The OpenShift secret that stores the HSM certificates.
131+
type: string
132132
hsmClientAddress:
133133
description: The IP address of the client connecting to the HSM
134134
(X.Y.Z.K)
@@ -153,9 +153,9 @@ spec:
153153
maximum: 7
154154
minimum: 0
155155
type: integer
156-
hsmLogin:
157-
description: OpenShift secret storing the password to login to
158-
PKCS11 session
156+
hsmLoginSecret:
157+
description: OpenShift secret that stores the password to login
158+
to the PKCS11 session
159159
type: string
160160
hsmMKEKLabel:
161161
description: Label to identify master KEK in the HSM (must not
@@ -166,16 +166,14 @@ spec:
166166
description: Length in bytes of master KEK
167167
type: integer
168168
hsmSlotId:
169-
default: 1
170169
description: HSM Slot ID that contains the token device to be
171170
used
172-
type: integer
171+
type: string
173172
hsmTokenLabel:
174173
description: Token label used to identify the token to be used.
175174
Required when token_serial_number is not specified.
176175
type: string
177176
hsmTokenSerialNumber:
178-
default: "12345678"
179177
description: Token serial number used to identify the token to
180178
be used. Required when the device has multiple tokens with the
181179
same label.
@@ -184,6 +182,13 @@ spec:
184182
description: 'A string containing the HSM type (currently supported:
185183
"trustway", "luna", "ncipher").'
186184
type: string
185+
required:
186+
- hsmHMACLabel
187+
- hsmIpAddress
188+
- hsmLibraryPath
189+
- hsmLoginSecret
190+
- hsmMKEKLabel
191+
- hsmType
187192
type: object
188193
rabbitMqClusterName:
189194
default: rabbitmq

0 commit comments

Comments
 (0)