Skip to content

Commit

Permalink
Print runtime-policy used for the agent
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaarreell committed Aug 5, 2023
1 parent 9ced566 commit a58dd22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Multihost/basic-attestation/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ if [ -n "${AGENT2}" ]; then

# first register AGENT2 and confirm it has passed validation
AGENT2_ID="d432fbb3-d2f1-4a97-9ef7-75bd81c33333"
rlRun "cat policy2.json"
# download Agent2 list
rlRun "wget -O policy2.json 'http://${AGENT2_IP}:8000/policy.json'"
# register
Expand All @@ -327,6 +328,7 @@ fi
rlPhaseStartTest "keylime attestation test: Add Agent"
# register AGENT and confirm it has passed validation
AGENT_ID="d432fbb3-d2f1-4a97-9ef7-75bd81c00000"
rlRun "cat policy.json"
rlRun "cat > script.expect <<_EOF
set timeout 20
spawn keylime_tenant -v ${VERIFIER_IP} -t ${AGENT_IP} -u ${AGENT_ID} --runtime-policy policy.json --include payload-${REVOCATION_SCRIPT_TYPE} --cert default -c add
Expand Down

0 comments on commit a58dd22

Please sign in to comment.