Skip to content

Commit

Permalink
doc: update end-to-end docs
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-fossati committed Aug 22, 2024
1 parent 75d6161 commit 54ba334
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 12 deletions.
4 changes: 2 additions & 2 deletions end-to-end/end-to-end-docker
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ function provision() {
case $SCHEME in
psa)
local corim_file=$THIS_DIR/input/psa-endorsements.cbor
local media_type="application/corim-unsigned+cbor; profile=http://arm.com/psa/iot/1"
local media_type="application/corim-unsigned+cbor; profile=\"http://arm.com/psa/iot/1\""
;;
cca)
local corim_file=$THIS_DIR/input/cca-endorsements.cbor
local media_type="application/corim-unsigned+cbor; profile=http://arm.com/cca/ssd/1"
local media_type="application/corim-unsigned+cbor; profile=\"http://arm.com/cca/ssd/1\""
;;
*)
echo "ERROR: bad SCHEME: $SCHEME"
Expand Down
4 changes: 2 additions & 2 deletions end-to-end/end-to-end-native
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ function provision() {
case $SCHEME in
psa)
local corim_file=$THIS_DIR/input/psa-endorsements.cbor
local media_type="application/corim-unsigned+cbor; profile=http://arm.com/psa/iot/1"
local media_type="application/corim-unsigned+cbor; profile=\"http://arm.com/psa/iot/1\""
;;
cca)
local corim_file=$THIS_DIR/input/cca-endorsements.cbor
local media_type="application/corim-unsigned+cbor; profile=http://arm.com/cca/ssd/1"
local media_type="application/corim-unsigned+cbor; profile=\"http://arm.com/cca/ssd/1\""
;;
*)
echo "ERROR: bad SCHEME: $SCHEME"
Expand Down
6 changes: 3 additions & 3 deletions end-to-end/walkthrough.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ The CoRIM file can be submitted to Veraison using the following command:
cocli corim submit \
--corim-file=tmp/psa-corim.cbor \
--api-server=http://provisioning-service:8888/endorsement-provisioning/v1/submit \
"--media-type='application/corim-unsigned+cbor; profile=http://arm.com/psa/iot/1'"
--media-type='application/corim-unsigned+cbor; profile="http://arm.com/psa/iot/1"'
~~~

By dumping the Veraison database with the "veraison stores" command we can see the correctly entered entries:
Expand Down Expand Up @@ -587,8 +587,8 @@ The result may be something like this:
"y": "IBOL-C3BttVivg-lSreASjpkttcsz-1rb7btKLv8EX4"
},
"media-types": [
"application/eat-collection; profile=http://arm.com/CCA-SSD/1.0.0",
"application/eat-cwt; profile=http://arm.com/psa/2.0.0",
"application/eat-collection; profile=\"http://arm.com/CCA-SSD/1.0.0\"",
"application/eat-cwt; profile=\"http://arm.com/psa/2.0.0\"",
"application/pem-certificate-chain",
"application/vnd.enacttrust.tpm-evidence",
"application/vnd.parallaxsecond.key-attestation.cca",
Expand Down
4 changes: 2 additions & 2 deletions perf/scripts/run-loads.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def provision(self):
self.client.post(
"/endorsement-provisioning/v1/submit",
headers={
'Content-Type': 'application/corim-unsigned+cbor; profile=http://arm.com/psa/iot/1',
'Content-Type': 'application/corim-unsigned+cbor; profile="http://arm.com/psa/iot/1"',
},
data=self.provisioning_data,
)
Expand All @@ -63,7 +63,7 @@ def on_start(self):
requests.post(
ProvisioningUser.host + "/endorsement-provisioning/v1/submit",
headers={
'Content-Type': 'application/corim-unsigned+cbor; profile=http://arm.com/psa/iot/1',
'Content-Type': 'application/corim-unsigned+cbor; profile="http://arm.com/psa/iot/1"',
},
data=provisioning_data,
)
Expand Down
7 changes: 4 additions & 3 deletions provisioning/test-harness/req.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ CORIM_FILE=corim-${T}-${B}.cbor

if [ "${T}" == "psa" ]
then
CONTENT_TYPE="Content-Type: application/corim-unsigned+cbor; profile=http://arm.com/psa/iot/1"
CONTENT_TYPE='Content-Type: application/corim-unsigned+cbor; profile="http://arm.com/psa/iot/1"'
elif [ "${T}" == "tpm-enacttrust" ];
then
CONTENT_TYPE="Content-Type: application/corim-unsigned+cbor; profile=http://enacttrust.com/veraison/1.0.0"
CONTENT_TYPE='Content-Type: application/corim-unsigned+cbor; profile="http://enacttrust.com/veraison/1.0.0"'
elif [ "${T}" == "parsec-tpm" ]
then
CONTENT_TYPE='Content-Type: application/corim-unsigned+cbor; profile="tag:github.com/parallaxsecond,2023-03-03:tpm"'
Expand All @@ -26,8 +26,9 @@ else
fi

curl --include \
--insecure \
--data-binary "@${CORIM_FILE}" \
--header "${CONTENT_TYPE}" \
--header "Accept: application/vnd.veraison.provisioning-session+json" \
--request POST \
http://localhost:8888/endorsement-provisioning/v1/submit
https://localhost:8888/endorsement-provisioning/v1/submit

0 comments on commit 54ba334

Please sign in to comment.