consul: simplify keyring operations
consul: add test for internal keyring rpc endpoint