Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print runtime-policy used for the agent #432

Merged
merged 1 commit into from
Aug 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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