Closed GoogleCodeExporter closed 9 years ago
While an actual password for access is certainly better, the idea I mentioned
about a "somewhat secret" name can be fleshed out. One might put a flag in
~/.googlecl/config such as:
[DOCS]
anonymous-account = 0b0e1071d27aff3a5a20323f2afb9b33
If the user must grant that "anonymous" access to the CL user, the actual name
authorized might be something not easily guessed. It is not great security,
since it is only as good as the protection of a plaintext name in my
~/.googlecl/config file; but at least a random person anywhere in the world who
happens to know my user account name will not be granted access just by using
googlecl.
Original comment by david.me...@gmail.com
on 19 Jun 2010 at 12:38
The security in place is the same as any other authorized website afaik. What
concerns me is that it's registering it's name as 'anonymous' which doesn't
"feel" right. I'd much rather the tools register themselves explicitly as
googleCL so that I can easily tell looking at my authorization list.
Original comment by lusis....@gmail.com
on 19 Jun 2010 at 2:06
I complete agree with this bug. anonymous doesn't "feel" right.
Original comment by Mr.etern...@gmail.com
on 19 Jun 2010 at 2:13
OK, some more details. It appears this isn't the security issue I thought,
merely confusing.
I did the authorization above on one machine, the OSX machine indicated. That
let me run 'google docs list' on that machine. Switching to another machine
(Ubuntu 10.04) on the same internal network (i.e. sharing a WAN address), I
require a new authorization using a different Google Accounts authorization
URL. So there is different authorization information being stored on each
machine (WHERE is the relevant key information stores?!)
However, looking at https://www.google.com/accounts/IssuedAuthSubTokens, I see
a report like:
-----
Authorized Access to your Google Account
You have granted the following services access to your Google Account:
Websites
anonymous — Google Docs [ Revoke Access ]
www.google.com — Google Latitude [ Revoke Access ]
-----
That same "anonymous" name masks two separate authorizations. If I click
"Revoke Access", I get a message that I have successfully revoked access, but
the 'anonymous' authorization still appears. This turns out to be because that
same line was reporting the authorization of both machines that have the same
name. Revoking indeed removes the privileges from ONE of the two machines,
while the other still has credentials. In particular, it seems to follow a
FIFO pattern with authorization/revocation, but there is no way to revoke one
particular machine, just the "first authorized" machine. Or maybe it is just
revoking the one that has the earlier key alphabetically or some other pattern.
There should really be some way of revoking the permission from a specific
machine, presumably by giving a distinct NAME to each machine being authorized.
Maybe this should be standard network names, maybe something else. But
definitely names that are distinguishable and that are reported as different
authorizations in the My Account page.
Original comment by david.me...@gmail.com
on 19 Jun 2010 at 4:10
Interesting. OAuth (the method of authorization now in place) was added to
GoogleCL fairly recently, and I haven't read through all of the documentation.
To address the most immediate concern, Issue 41 contains a patch that will
display a more reassuring request for authorization message. This change has
also been pushed to the svn repository.
I'm not sure about revoking permissions for certain machines through the web,
but you can erase ALL access tokens from a machine for a single user by
deleting the appropriate file from the machine's GoogleCL folder (currently
~/.googlecl). The file will be called "access_tok_<username>". Deleting that
file will ensure that anyone using that machine will have to re-authenticate as
you.
Original comment by tom.h.mi...@gmail.com
on 19 Jun 2010 at 4:07
I solved this by introducing new commandline option --node. By default it's set
to <current username>@<current hostname>. I also added node to the application
name and now I can see "GoogleCL ed@mydomain.com" (or whatever I specify as a
node) as a name of application on
[https://www.google.com/accounts/IssuedAuthSubTokens My Accounts] page. Works
for me just fine.
I'd really appreciate if somebody would try the attached patch.
Original comment by bart...@gmail.com
on 11 Jul 2010 at 8:38
Attachments:
Sounds like a good solution.
Original comment by tom.h.mi...@gmail.com
on 12 Jul 2010 at 3:44
This issue was closed by revision r342.
Original comment by tom.h.mi...@gmail.com
on 12 Jul 2010 at 7:06
Original issue reported on code.google.com by
david.me...@gmail.com
on 19 Jun 2010 at 12:33