···1919 chmod 700 "$DEPLOY_TMPDIR"
2020 trap 'rm -rf "$DEPLOY_TMPDIR"' EXIT
21212222+ # Set bulk key path so the pass wrapper can lazily extract it
2323+ # on the first actual decryption (if any secrets need uploading).
2224 export PASS_BULK_KEY_FILE="$DEPLOY_TMPDIR/bulk-key"
23252426 # Sync password store before deploy
2527 pass git pull --rebase
2626-2727- # Extract bulk key for fast decryption during deploy
2828- pass show bulk-operations/age-key > "$PASS_BULK_KEY_FILE" 2>/dev/null || true
29283029 # Deploy
3130 clan machines update "$@"
···9494 # Switch to bulk key for subsequent operations if available
9595 if [[ -f "$PASS_BULK_KEY_FILE" ]] && [[ -s "$PASS_BULK_KEY_FILE" ]]; then
9696 export PASSAGE_IDENTITIES_FILE="$PASS_BULK_KEY_FILE"
9797+ # Bulk key is a plain age key, no TPM PIN needed for decryption
9898+ KEY_TYPE=bulk
9799 fi
98100 fi
99101 }