File tree Expand file tree Collapse file tree 2 files changed +1
-29
lines changed
Expand file tree Collapse file tree 2 files changed +1
-29
lines changed Original file line number Diff line number Diff line change @@ -4,28 +4,13 @@ echo "Creating secrets as required"
44echo
55
66COCO_SECRETS_DIR=" ${HOME} /.coco-pattern"
7- SECURITY_POLICY_FILE=" ${COCO_SECRETS_DIR} /security-policy-config.json"
8- SSH_KEY_FILE=" ${COCO_SECRETS_DIR} /id_rsa"
97KBS_PRIVATE_KEY=" ${COCO_SECRETS_DIR} /kbsPrivateKey"
108KBS_PUBLIC_KEY=" ${COCO_SECRETS_DIR} /kbsPublicKey"
119SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
1210VALUES_FILE=" ${HOME} /values-secret-coco-pattern.yaml"
1311
1412mkdir -p ${COCO_SECRETS_DIR}
1513
16- if [ ! -f " ${SECURITY_POLICY_FILE} " ]; then
17- echo " Creating security policy"
18- cat > ${SECURITY_POLICY_FILE} << EOF
19- {
20- "default": [
21- {
22- "type": "insecureAcceptAnything"
23- }],
24- "transports": {}
25- }
26- EOF
27-
28- fi
2914
3015if [ ! -f " ${KBS_PRIVATE_KEY} " ]; then
3116 echo " Creating kbs keys"
@@ -34,13 +19,6 @@ if [ ! -f "${KBS_PRIVATE_KEY}" ]; then
3419 openssl pkey -in " ${KBS_PRIVATE_KEY} " -pubout -out " ${KBS_PUBLIC_KEY} "
3520fi
3621
37- if [ ! -f " ${SSH_KEY_FILE} " ]; then
38- echo " Creating ssh keys"
39- rm -f " ${SSH_KEY_FILE} .pub"
40- ssh-keygen -f " ${SSH_KEY_FILE} " -N " "
41- fi
42-
43-
4422# # Copy a sample values file if this stuff doesn't exist
4523
4624if [ ! -f " ${VALUES_FILE} " ]; then
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ secrets:
5555 # - hub
5656 # fields:
5757 # - name: key-0
58- # path: ~/.coco-pattern/trustee/ cosign-key-0.pub
58+ # path: ~/.coco-pattern/cosign-key-0.pub
5959
6060
6161 - name: attestationStatus
@@ -76,12 +76,6 @@ secrets:
7676 - name: publicKey
7777 path: ~/.coco-pattern/kbsPublicKey
7878
79- - name: kbsPrivateKey
80- vaultPrefixes:
81- - global
82- fields:
83- - name: privateKey
84- path: ~/.coco-pattern/kbsPrivateKey
8579
8680 - name: kbsres1
8781 vaultPrefixes:
You can’t perform that action at this time.
0 commit comments