Tezos-client got stuck in infinite loop on GETTING authorized-keys
When the key for signing request is same as the key for client authentication request then tezos client goes into an infinite loop of sending GET requests to the signatory server.
Here `remote` is the account for which the publik-key is same for both signing and for the client authentication with the signatory server.
```
abineshm@Abineshs-MacBook-Pro tezos % tezos-client list known addresses
Warning:
This is NOT the Tezos Mainnet.
Do NOT use your fundraiser keys on this network.
remote: tz3ZRZrzgL2VwTEJ3TUEu92n7rF7bm7RPCQu (http sk known)
alice: tz1bZspYxb1hUDJ7ssCyaYQ3TMbo5L44a8aR (unencrypted sk known)
abineshm@Abineshs-MacBook-Pro tezos % tezos-client get balance for remote
Warning:
This is NOT the Tezos Mainnet.
Do NOT use your fundraiser keys on this network.
69.99613 ꜩ
abineshm@Abineshs-MacBook-Pro tezos % tezos-client get balance for alice
Warning:
This is NOT the Tezos Mainnet.
Do NOT use your fundraiser keys on this network.
50158.631708 ꜩ
abineshm@Abineshs-MacBook-Pro tezos %
```
Transaction that produces this issue
```
abineshm@Abineshs-MacBook-Pro tezos % tezos-client --log-requests transfer 10 from remote to alice
>>>>0: http://localhost:8732/version
<<<<0: 200 OK
{ "version": { "major": 9, "minor": 1, "additional_info": "release" },
"network_version":
{ "chain_name": "TEZOS_FLORENCENOBANET_2021-03-04T20:00:00Z",
"distributed_db_version": 1, "p2p_version": 1 },
"commit_info":
{ "commit_hash": "31e6641db444bdb5d3fb9f232282b429b8c3ea7a",
"commit_date": "2021-04-30 16:58:29 +0200" } }
Warning:
This is NOT the Tezos Mainnet.
Do NOT use your fundraiser keys on this network.
>>>>1: http://localhost:8732/chains/main/blocks/head/protocols
<<<<1: 200 OK
{ "protocol": "PsFLorenaUUuikDWvMDr6fGBRG8kt3e3D3fHoXK1j1BFRxeSH4i",
"next_protocol": "PsFLorenaUUuikDWvMDr6fGBRG8kt3e3D3fHoXK1j1BFRxeSH4i" }
>>>>2: http://localhost:8732/chains/main/blocks/head/context/contracts/tz3ZRZrzgL2VwTEJ3TUEu92n7rF7bm7RPCQu/counter
<<<<2: 200 OK
"406907"
>>>>3: http://localhost:8732/chains/main/blocks/head/context/contracts/tz3ZRZrzgL2VwTEJ3TUEu92n7rF7bm7RPCQu/manager_key
<<<<3: 200 OK
"p2pk65dKUsf2huAHat46VNakVbGm51dXM2n6fKeNrH5FuzhkVE6KFqf"
>>>>4: http://localhost:8732/monitor/bootstrapped
<<<<4: 200 OK
{ "block": "BLjCyqDFEGdcPoiHVegCMbjdUqsXwdrgAKFRTusD2vABBBGBKtj",
"timestamp": "2021-06-18T12:14:44Z" }
Node is bootstrapped.
>>>>5: http://localhost:8732/chains/main/blocks/head/context/constants
<<<<5: 200 OK
{ "proof_of_work_nonce_size": 8, "nonce_length": 32,
"max_anon_ops_per_block": 132, "max_operation_data_length": 32768,
"max_proposals_per_delegate": 20, "preserved_cycles": 3,
"blocks_per_cycle": 2048, "blocks_per_commitment": 16,
"blocks_per_roll_snapshot": 128, "blocks_per_voting_period": 1024,
"time_between_blocks": [ "30", "20" ], "endorsers_per_block": 32,
"hard_gas_limit_per_operation": "1040000",
"hard_gas_limit_per_block": "10400000",
"proof_of_work_threshold": "70368744177663",
"tokens_per_roll": "8000000000", "michelson_maximum_type_size": 1000,
"seed_nonce_revelation_tip": "125000", "origination_size": 257,
"block_security_deposit": "512000000",
"endorsement_security_deposit": "64000000",
"baking_reward_per_endorsement": [ "1250000", "187500" ],
"endorsement_reward": [ "1250000", "833333" ], "cost_per_byte": "250",
"hard_storage_limit_per_operation": "60000", "test_chain_duration": "0",
"quorum_min": 2000, "quorum_max": 7000, "min_proposal_quorum": 500,
"initial_endorsers": 24, "delay_per_missing_endorsement": "4" }
>>>>6: http://localhost:8732/chains/main/blocks/head/hash
<<<<6: 200 OK
"BLjCyqDFEGdcPoiHVegCMbjdUqsXwdrgAKFRTusD2vABBBGBKtj"
>>>>7: http://localhost:8732/chains/main/chain_id
<<<<7: 200 OK
"NetXxkAx4woPLyu"
>>>>8: http://localhost:8732/chains/main/chain_id
<<<<8: 200 OK
"NetXxkAx4woPLyu"
>>>>9: http://localhost:8732/chains/main/blocks/head/helpers/scripts/run_operation
{ "operation":
{ "branch": "BLjCyqDFEGdcPoiHVegCMbjdUqsXwdrgAKFRTusD2vABBBGBKtj",
"contents":
[ { "kind": "transaction",
"source": "tz3ZRZrzgL2VwTEJ3TUEu92n7rF7bm7RPCQu", "fee": "0",
"counter": "406908", "gas_limit": "1040000",
"storage_limit": "60000", "amount": "10000000",
"destination": "tz1bZspYxb1hUDJ7ssCyaYQ3TMbo5L44a8aR" } ],
"signature":
"edsigtXomBKi5CTRf5cjATJWSyaRvhfYNHqSUGrn4SdbYRcGwQrUGjzEfQDTuqHhuA8b2d8NarZjz8TRf65WkpQmo423BtomS8Q" },
"chain_id": "NetXxkAx4woPLyu" }
<<<<9: 200 OK
{ "contents":
[ { "kind": "transaction",
"source": "tz3ZRZrzgL2VwTEJ3TUEu92n7rF7bm7RPCQu", "fee": "0",
"counter": "406908", "gas_limit": "1040000",
"storage_limit": "60000", "amount": "10000000",
"destination": "tz1bZspYxb1hUDJ7ssCyaYQ3TMbo5L44a8aR",
"metadata":
{ "balance_updates": [],
"operation_result":
{ "status": "applied",
"balance_updates":
[ { "kind": "contract",
"contract": "tz3ZRZrzgL2VwTEJ3TUEu92n7rF7bm7RPCQu",
"change": "-10000000", "origin": "block" },
{ "kind": "contract",
"contract": "tz1bZspYxb1hUDJ7ssCyaYQ3TMbo5L44a8aR",
"change": "10000000", "origin": "block" } ],
"consumed_gas": "1427", "consumed_milligas": "1427000" } } } ] }
Estimated gas: 1427 units (will add 100 for safety)
Estimated storage: no bytes added
>>>>10: http://localhost:8732/chains/main/blocks/head/hash
<<<<10: 200 OK
"BLjCyqDFEGdcPoiHVegCMbjdUqsXwdrgAKFRTusD2vABBBGBKtj"
>>>>11: http://localhost:8732/chains/main/chain_id
<<<<11: 200 OK
"NetXxkAx4woPLyu"
>>>>12: http://localhost:6732/authorized_keys
<<<<12: 200 OK
{ "authorized_keys": [ "tz3ZRZrzgL2VwTEJ3TUEu92n7rF7bm7RPCQu" ] }
>>>>13: http://localhost:6732/authorized_keys
<<<<13: 200 OK
{ "authorized_keys": [ "tz3ZRZrzgL2VwTEJ3TUEu92n7rF7bm7RPCQu" ] }
>>>>14: http://localhost:6732/authorized_keys
<<<<14: 200 OK
{ "authorized_keys": [ "tz3ZRZrzgL2VwTEJ3TUEu92n7rF7bm7RPCQu" ] }
>>>>15: http://localhost:6732/authorized_keys
<<<<15: 200 OK
{ "authorized_keys": [ "tz3ZRZrzgL2VwTEJ3TUEu92n7rF7bm7RPCQu" ] }
>>>>16: http://localhost:6732/authorized_keys
<<<<16: 200 OK
{ "authorized_keys": [ "tz3ZRZrzgL2VwTEJ3TUEu92n7rF7bm7RPCQu" ] }
>>>>17: http://localhost:6732/authorized_keys
<<<<17: 200 OK
{ "authorized_keys": [ "tz3ZRZrzgL2VwTEJ3TUEu92n7rF7bm7RPCQu" ] }
```