Skip to content

Commit

Permalink
add test for interactive private key password prompt (#1176)
Browse files Browse the repository at this point in the history
Signed-off-by: Jake Sanders <jsand@google.com>
  • Loading branch information
Jake Sanders authored Dec 9, 2021
1 parent e5056ed commit d0d91ab
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/e2e_test_secrets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,5 +166,13 @@ export COSIGN_REPOSITORY=${TEST_INSTANCE_REPO}/subbedrepo
./cosign verify --key ${verification_key} $img
unset COSIGN_REPOSITORY

# test stdin interaction for private key password
stdin_password=${COSIGN_PASSWORD}
unset COSIGN_PASSWORD
(crane delete $(./cosign triangulate $img)) || true
echo $stdin_password | ./cosign sign --key ${signing_key} --output-signature interactive.sig $img
./cosign verify --key ${verification_key} --signature interactive.sig $img
export COSIGN_PASSWORD=${stdin_password}

# What else needs auth?
echo "SUCCESS"

0 comments on commit d0d91ab

Please sign in to comment.