Closed tejal29 closed 6 years ago
We are using helm plugin certgen to create tls secrets.
For AttestatoionAuthority we can write a controller to create a secret if it does not exits. The sample code is https://github.com/tejal29/kritis/blob/attestation_lib/pkg/kritis/attestation/attestation_test.go#L59
The flow would be, For the given AttestationAuthority:
apiVersion: kritis.grafeas.io/v1beta1
kind: AttestationAuthority
metadata:
name: qa-attestor
spec:
noteReference: v1alpha1/projects/image-signing
privateKeySecretName: foo
This is handled by the preinstall pod now: https://github.com/grafeas/kritis/pull/124. closing
When we install kritis, we need to generate tls secrets.
We also need to do the same when user wants to deploy a new Attestation Authority.
One example of doing this:
Write a controller which will generate a pair of secrets. https://github.com/mittwald/kubernetes-secret-generator
Ask users to generate the secrets and then they would need to copy paste the secret.
This a tracking ticket for that.