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

chore: Fixes and improvements for the vm-testing setup #16

Merged
merged 1 commit into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion vm-testing/inventory-sample
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ REMOTE_IP_ADDRESS

[rhtas:vars]
ansible_user=ANSIBLE_USER
become=true
ansible_become=true
ansible_become_user=root
2 changes: 1 addition & 1 deletion vm-testing/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ else
exit 1
fi

(sed -e "s/REMOTE_IP_ADDRESS/$ip_address/" -e "s/ANSIBLE_USER/$vm_username/" inventory-sample > inventory)
(sed -e "s/REMOTE_IP_ADDRESS/$ip_address/" -e "s/ANSIBLE_USER/$vm_username/" ../inventory-sample > ../inventory)

cat << EOF
Please add the following lines to your /etc/hosts:
Expand Down
2 changes: 1 addition & 1 deletion vm-testing/test/test-sign-blob.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ echo "testing" > to-sign
cosign --verbose sign-blob to-sign --bundle signed.bundle --identity-token="${TOKEN}" --timestamp-server-url="${COSIGN_TSA_URL}" --rfc3161-timestamp=timestamp.txt

curl "${COSIGN_TSA_URL}"/certchain > tsa_chain.pem
cosign verify-blob --certificate-identity="${USERNAME}"@redhat.com --bundle signed.bundle to-sign --timestamp-certificate-chain=tsa_chain.pem --rfc3161-timestamp=timestamp.txt
cosign --verbose verify-blob --certificate-identity="${USERNAME}"@redhat.com --bundle signed.bundle to-sign --timestamp-certificate-chain=tsa_chain.pem --rfc3161-timestamp=timestamp.txt
Loading