-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
23 changed files
with
737 additions
and
75 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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: signing-scripts | ||
stringData: | ||
collection_script.sh: |- | ||
#!/usr/bin/env bash | ||
set -u | ||
FILE_PATH=$1 | ||
SIGNATURE_PATH="$1.asc" | ||
ADMIN_ID="$PULP_SIGNING_KEY_FINGERPRINT" | ||
PASSWORD="password" | ||
# Create a detached signature | ||
gpg --quiet --batch --yes --passphrase \ | ||
$PASSWORD --homedir ~/.gnupg/ --detach-sign --default-key $ADMIN_ID \ | ||
--armor --output $SIGNATURE_PATH $FILE_PATH | ||
# Check the exit status | ||
STATUS=$? | ||
if [ $STATUS -eq 0 ]; then | ||
echo {\"file\": \"$FILE_PATH\", \"signature\": \"$SIGNATURE_PATH\"} | ||
else | ||
exit $STATUS | ||
fi | ||
container_script.sh: |- | ||
#!/usr/bin/env bash | ||
set -u | ||
# This GPG_TTY variable might be needed on a container image that is not running as root. | ||
#export GPG_TTY=$(tty) | ||
# Create a file with passphrase only if the key is password protected. | ||
# echo "Galaxy2022" > /tmp/key_password.txt | ||
# pulp_container SigningService will pass the next 3 variables to the script. | ||
MANIFEST_PATH=$1 | ||
IMAGE_REFERENCE="$REFERENCE" | ||
SIGNATURE_PATH="$SIG_PATH" | ||
# Create container signature using skopeo | ||
# Include --passphrase-file option if the key is password protected. | ||
skopeo standalone-sign \ | ||
$MANIFEST_PATH \ | ||
$IMAGE_REFERENCE \ | ||
$PULP_SIGNING_KEY_FINGERPRINT \ | ||
--output $SIGNATURE_PATH | ||
# Check the exit status | ||
STATUS=$? | ||
if [ $STATUS -eq 0 ]; then | ||
echo {\"signature_path\": \"$SIGNATURE_PATH\"} | ||
else | ||
exit $STATUS | ||
fi |
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 @@ | ||
Fixed the signing services issues. |
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
1 change: 1 addition & 0 deletions
1
apis/repo-manager.pulpproject.org/v1beta2/zz_generated.deepcopy.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.