What steps did you take and what happened:
Witness provides option to use AWS KMS for generating attestations and policy signing but the drawback is when we have to distribute the artifacts, there is no way to establish chain of trust as only AWS KMS generated keys are used for encryption/decryption.
For this purpose I plan to use AWS KMS BYOK functionality, where I can import my own key pair in KMS. And along with this I also plan to use public certificate corresponding to this key pair.
So, effectively my command becomes
witness run -s build -a environment --signer-kms-ref=awskms:/// --signer-file-cert-path <CERT_PATH_LOCAL> -o build-attestation.json -- bash -c "echo 'hello' > hello.txt"
When using this command, it is throwing error "failed to create file signer: failed to open key file: open : no such file or directory ". The command still exits with exit code 0 but certificate is not appended in the build-attestation.json
What did you expect to happen:
I expected the above command to work by having certificate details in build-attestation.json file.
Anything else you would like to add:
Environment:
- Witness version: 0.8.1
- Architecture: Darwin Kernel Version 23.1.0 arm64
- Attestors used: environment
- Archivista version: NA
What steps did you take and what happened:
Witness provides option to use AWS KMS for generating attestations and policy signing but the drawback is when we have to distribute the artifacts, there is no way to establish chain of trust as only AWS KMS generated keys are used for encryption/decryption.
For this purpose I plan to use AWS KMS BYOK functionality, where I can import my own key pair in KMS. And along with this I also plan to use public certificate corresponding to this key pair.
So, effectively my command becomes
witness run -s build -a environment --signer-kms-ref=awskms:/// --signer-file-cert-path <CERT_PATH_LOCAL> -o build-attestation.json -- bash -c "echo 'hello' > hello.txt"
When using this command, it is throwing error "failed to create file signer: failed to open key file: open : no such file or directory ". The command still exits with exit code 0 but certificate is not appended in the build-attestation.json
What did you expect to happen:
I expected the above command to work by having certificate details in build-attestation.json file.
Anything else you would like to add:
Environment: