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

prepare_keychain fails silently #274

Open
ghost opened this issue Oct 11, 2018 · 0 comments
Open

prepare_keychain fails silently #274

ghost opened this issue Oct 11, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Oct 11, 2018

I'm trying to create a subkey for one of our servers which has gpg2, and when I get to the point of trying to decrypt the files, I get stuck with a failing prepare_keyring. Looks like the command gpg2 --keyring /home/user/project/keyrings/live/pubring.kbx --export returns an error even though the output looks good. I'm not sure if the problem is with my keys or with blackbox.

user@host:~/project$ GPG=gpg2 bash -x `which blackbox_postdeploy`
+ export PATH=/usr/bin:/bin:/home/user/bin:/home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
+ PATH=/usr/bin:/bin:/home/user/bin:/home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
+ set -e
+ source /usr/local/bin/_blackbox_common.sh
++ source /usr/local/bin/_stack_lib.sh
+++ cd /usr/local/bin
+++ pwd
++ : /usr/local/bin
++ declare -a BLACKBOXDATA_CANDIDATES
++ BLACKBOXDATA_CANDIDATES=('.blackbox' 'keyrings/live')
++ : vi
++ : gpg2
++ which git
++ git rev-parse --show-toplevel
++ VCS_TYPE=git
+++ git rev-parse --show-toplevel
++ REPOBASE=/home/user/project
++ export VCS_TYPE
+++ physical_directory_of /home/user/project
++++ dirname /home/user/project
+++ local d=/home/user
++++ basename /home/user/project
+++ local f=project
+++ cd /home/user
++++ pwd -P
++++ sed 's/\/$//'
+++ echo /home/user/project
++ export REPOBASE=/home/user/project
++ REPOBASE=/home/user/project
++ [[ -n '' ]]
++ '[' -z '' ']'
++ BLACKBOXDATA=.blackbox
++ for candidate in '${BLACKBOXDATA_CANDIDATES[@]}'
++ '[' -d /home/user/project/.blackbox ']'
++ for candidate in '${BLACKBOXDATA_CANDIDATES[@]}'
++ '[' -d /home/user/project/keyrings/live ']'
++ BLACKBOXDATA=keyrings/live
++ break
++ KEYRINGDIR=/home/user/project/keyrings/live
++ BB_ADMINS_FILE=blackbox-admins.txt
++ BB_ADMINS=/home/user/project/keyrings/live/blackbox-admins.txt
++ BB_FILES_FILE=blackbox-files.txt
++ BB_FILES=/home/user/project/keyrings/live/blackbox-files.txt
++ SECRING=/home/user/project/keyrings/live/secring.gpg
++ : 0022
+ [[ '' == '' ]]
+ FILE_GROUP=
+ change_to_vcs_root
+ local rbase=/home/user/project
+ cd /home/user/project
+ prepare_keychain
+ local keyringasc
+ echo '========== Importing keychain: START'
========== Importing keychain: START
+ make_self_deleting_tempfile keyringasc
+ local __resultvar=keyringasc
+ local name
+ case $(uname -s) in
++ uname -s
++ mktemp
+ name=/tmp/tmp.daEPkMZLbX
+ add_on_exit rm -f /tmp/tmp.daEPkMZLbX
+ local n=0
+ on_exit_items[$n]='rm -f /tmp/tmp.daEPkMZLbX'
+ [[ 0 -eq 0 ]]
+ trap on_exit EXIT
+ eval keyringasc=/tmp/tmp.daEPkMZLbX
++ keyringasc=/tmp/tmp.daEPkMZLbX
+ export LANG=C.UTF-8
+ LANG=C.UTF-8
+ [[ gpg2 != \g\p\g\2 ]]
+ gpg2 --import
++ get_pubring_path
++ [[ -f /home/user/project/keyrings/live/pubring.gpg ]]
++ echo /home/user/project/keyrings/live/pubring.kbx
+ gpg2 --keyring /home/user/project/keyrings/live/pubring.kbx --export
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: key 0FABA1E6: "user@staging.flashnode.io <user@host.domain.com>" not changed
gpg: key 79C263EC: "user2 <developers@domain.com>" not changed
gpg: key E5CA7402: "user3 <user3@domain.com>" not changed
gpg: key D7D027C4: "user@host2.domain.com <user@host2.domain.com>" not changed
gpg: key 79C263EC: "user2 <developers@domain.com>" not changed
gpg: key E5CA7402: "user3 <user3@domain.com>" not changed
gpg: key D7D027C4: "user@host2.domain.com <user@host2.domain.com>" not changed
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: skipped packet of type 12 in keybox
gpg: key 0FABA1E6: "user@host.domain.com <user@host.domain.com>" not changed
gpg: Total number processed: 8
gpg:              unchanged: 8
+ on_exit
+ for i in '"${on_exit_items[@]}"'
+ eval rm -f /tmp/tmp.daEPkMZLbX
++ rm -f /tmp/tmp.daEPkMZLbX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants