From 2e506c6e1bb01856d47462c3acb503acbd156692 Mon Sep 17 00:00:00 2001 From: thk Date: Mon, 16 Mar 2020 13:03:56 +0000 Subject: [PATCH] --- ...h_token_can_only_be_retrieved_at_generation_time.mdwn | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 doc/bugs/p2p_auth_token_can_only_be_retrieved_at_generation_time.mdwn diff --git a/doc/bugs/p2p_auth_token_can_only_be_retrieved_at_generation_time.mdwn b/doc/bugs/p2p_auth_token_can_only_be_retrieved_at_generation_time.mdwn new file mode 100644 index 0000000000..616ae3effc --- /dev/null +++ b/doc/bugs/p2p_auth_token_can_only_be_retrieved_at_generation_time.mdwn @@ -0,0 +1,9 @@ +### Please describe the problem. + +`git annex p2p --gen-address` creates an auth token and than immediately prints it out so that it can be used to pair with another machine. + +But what am I supposed to do if I want to pair a third machine later? I do not want to call `--gen-address` again since it probably creates another token or even worse overwrites the token already used for one pairing. + +So we lack a command like `git annex p2p --show-address` that just prints the same as `--gen-address`. This is trivial since we just need to concatenate `.git/annex/creds/p2paddrs`, a colon and `.git/annex/creds/p2pauth`? + +Actually this would be a fun starter project for a new contributor to git-annex? (me?) -- 2.30.2