accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [01/10] accumulo git commit: ACCUMULO-4400 Best effort to reset gpg-agent cache
Date Fri, 12 Aug 2016 01:26:59 GMT
Repository: accumulo
Updated Branches:
  refs/heads/1.6 9bd3306f0 -> e1cd01fac
  refs/heads/1.7 78638cba6 -> 4885470e4
  refs/heads/1.8 e6d1ee254 -> 93e188f62
  refs/heads/master 6a8a43f66 -> c4afeffa3

ACCUMULO-4400 Best effort to reset gpg-agent cache

Make a best effort to reset gpg-agent cache, so that the signing key
will stay cached throughout the full duration of the release candidate
build, when created using

  1. This will force the password to be input at the beginning of the script, unless the user is using some persistent cache
     like gnome-keyring-daemon to manage one's key.
  2. If the user pauses at the prompts later in the script, for a long
     period of time, the cache could still expire during execution, even
     if the cache is reset at the start of the script.
  3. The script still presumes that gpg-agent is configured
     with a sufficiently large enough default-cache-ttl and
     max-cache-ttl values, so that the cache won't expire during the
     creation of the release candidate.


Branch: refs/heads/1.6
Commit: e1cd01facfc60d15004af20fcbb272d3a0dd6a07
Parents: 9bd3306
Author: Christopher Tubbs <>
Authored: Thu Aug 11 21:12:15 2016 -0400
Committer: Christopher Tubbs <>
Committed: Thu Aug 11 21:12:15 2016 -0400

 assemble/ | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/assemble/ b/assemble/
index 9bc0beb..86f73c5 100755
--- a/assemble/
+++ b/assemble/
@@ -42,6 +42,8 @@ currentBranch() { local b; b=$(git symbolic-ref -q HEAD) && echo
 cacheGPG() {
   # make sure gpg agent has key cached
+  # first clear cache, to reset timeouts (best attempt)
+  { hash gpg-connect-agent && gpg-connect-agent reloadagent /bye; } &>/dev/null
   # TODO prompt for key instead of using default?
   local TESTFILE; TESTFILE=$(mktemp --tmpdir "${USER}-gpgTestFile-XXXXXXXX.txt")
   [[ -r $TESTFILE ]] && "$gpgCommand" --sign "${TESTFILE}" && rm -f "${TESTFILE}"

View raw message