apiVersion: rhtas.redhat.com/v1
kind: Securesign
metadata:
name: securesign-sample
namespace: trusted-artifact-signer
spec:
ctlog:
signer:
type: pkcs11
pkcs11:
modulePath: /usr/lib64/pkcs11/libsofthsm2.so
tokenLabel: PKCS11CA
pinSecretRef:
name: hsm-credentials
key: pin
publicKeyRef:
name: ctlog-public-key
key: public.pem
rootCertificates:
- name: fulcio-root-ca
key: cert.pem
auth:
env:
- name: SOFTHSM2_CONF
value: /etc/softhsm/softhsm2.conf
initContainers:
- name: hsm-lib-export
image: HSM_LIBRARY_IMAGE
command: ["cp", "/usr/lib64/pkcs11/libsofthsm2.so", "/var/run/hsm-lib/"]
volumeMounts:
- name: hsm-lib
mountPath: /var/run/hsm-lib
volumes:
- name: softhsm-config
configMap:
name: softhsm-config
- name: hsm-tokens
persistentVolumeClaim:
claimName: ctlog-hsm-tokens-pvc
volumeMounts:
- name: softhsm-config
mountPath: /etc/softhsm
readOnly: true