mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-26 08:45:19 -04:00
Guard measurement removal behind config version check (#1739)
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
f7240b570b
commit
d9bec20c78
1 changed files with 34 additions and 15 deletions
19
.github/actions/constellation_create/action.yml
vendored
19
.github/actions/constellation_create/action.yml
vendored
|
@ -121,6 +121,24 @@ runs:
|
||||||
if: inputs.keepMeasurements == 'false'
|
if: inputs.keepMeasurements == 'false'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
if [[ $(yq '.version' constellation-conf.yaml) == "v2" ]]
|
||||||
|
then
|
||||||
|
yq eval -i \
|
||||||
|
"(.provider | select(. | has(\"aws\")).aws.measurements) = {15:{\"expected\":\"0000000000000000000000000000000000000000000000000000000000000000\",\"warnOnly\":false}}" \
|
||||||
|
constellation-conf.yaml
|
||||||
|
|
||||||
|
yq eval -i \
|
||||||
|
"(.provider | select(. | has(\"azure\")).azure.measurements) = {15:{\"expected\":\"0000000000000000000000000000000000000000000000000000000000000000\",\"warnOnly\":false}}" \
|
||||||
|
constellation-conf.yaml
|
||||||
|
|
||||||
|
yq eval -i \
|
||||||
|
"(.provider | select(. | has(\"gcp\")).gcp.measurements) = {15:{\"expected\":\"0000000000000000000000000000000000000000000000000000000000000000\",\"warnOnly\":false}}"\
|
||||||
|
constellation-conf.yaml
|
||||||
|
|
||||||
|
yq eval -i \
|
||||||
|
"(.provider | select(. | has(\"qemu\")).qemu.measurements) = {15:{\"expected\":\"0000000000000000000000000000000000000000000000000000000000000000\",\"warnOnly\":false}}" \
|
||||||
|
constellation-conf.yaml
|
||||||
|
else
|
||||||
yq eval -i \
|
yq eval -i \
|
||||||
"(.attestation | select(. | has(\"awsNitroTPM\")).awsNitroTPM.measurements) = {15:{\"expected\":\"0000000000000000000000000000000000000000000000000000000000000000\",\"warnOnly\":false}}" \
|
"(.attestation | select(. | has(\"awsNitroTPM\")).awsNitroTPM.measurements) = {15:{\"expected\":\"0000000000000000000000000000000000000000000000000000000000000000\",\"warnOnly\":false}}" \
|
||||||
constellation-conf.yaml
|
constellation-conf.yaml
|
||||||
|
@ -140,6 +158,7 @@ runs:
|
||||||
yq eval -i \
|
yq eval -i \
|
||||||
"(.attestation | select(. | has(\"qemuVTPM\")).qemuVTPM.measurements) = {15:{\"expected\":\"0000000000000000000000000000000000000000000000000000000000000000\",\"warnOnly\":false}}" \
|
"(.attestation | select(. | has(\"qemuVTPM\")).qemuVTPM.measurements) = {15:{\"expected\":\"0000000000000000000000000000000000000000000000000000000000000000\",\"warnOnly\":false}}" \
|
||||||
constellation-conf.yaml
|
constellation-conf.yaml
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Set image
|
- name: Set image
|
||||||
id: setImage
|
id: setImage
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue