apiVersion: rhtas.redhat.com/v1
kind: Securesign
metadata:
name: securesign-sample
namespace: trusted-artifact-signer
spec:
fulcio:
ingress:
enabled: true
config:
oidcIssuers:
- clientID: "trusted-artifact-signer"
issuerURL: "KEYCLOAK_URL/realms/trusted-artifact-signer"
issuer: "KEYCLOAK_URL/realms/trusted-artifact-signer"
type: "email"
signer:
type: pkcs11
pkcs11:
configRef:
name: fulcio-pkcs11-config
key: crypto11.conf
keyID: 99
certificateChain:
certificateChainRef:
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: hsm-tokens-pvc
volumeMounts:
- name: softhsm-config
mountPath: /etc/softhsm
readOnly: true