-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from boxboat/feature/upstream-pub-hash
Trust based on EKPub
- Loading branch information
Showing
16 changed files
with
525 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,8 @@ | |
/tpm_attestor_agent | ||
/get_tpm_pubhash | ||
|
||
# releases | ||
/spire-tpm-plugin-*.tar.gz | ||
|
||
# jetbrains | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash -e | ||
|
||
cd "$(dirname "$0")/../" | ||
|
||
display_usage() { | ||
echo -e "Usage:\n$0 [version]" | ||
} | ||
|
||
# check whether user had supplied -h or --help . If yes display usage | ||
if [ $# = "--help" ] || [ $# = "-h" ]; then | ||
display_usage | ||
exit 0 | ||
fi | ||
|
||
# check number of arguments | ||
if [ $# -ne 1 ]; then | ||
display_usage | ||
exit 1 | ||
fi | ||
|
||
binaries=("get_tpm_pubhash" "tpm_attestor_agent" "tpm_attestor_server") | ||
|
||
rm -f spire-tpm-plugin-*.tar.gz | ||
user="$(id -u):$(id -g)" | ||
sudo chown root:root "${binaries[@]}" | ||
tar -cvzf "spire-tpm-plugin-$1-linux-amd64.tar.gz" "${binaries[@]}" | ||
sudo chown "$user" "${binaries[@]}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.