-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement new client credentials for Google Geo API's #2058
Comments
There's still some relevant stuff in #2011, most critical being the decision to stay with Google or find another solution. That might be a good AWG topic. The "background" calls keep finding ways to break other things. Currently it looks like any Agent with an Address can't be altered; we geocode them so we can do more with shipments, and the geocoder isn't happy. If I'm going to get access to a functional client_id/private_key I don't really want to dig out a bunch of complex code. If not, or not soon, I think I'm going to have to prioritize some way of fixing or disabling the background stuff I thought I could ignore. Help? |
What are we trying to do with shipments that involves geocoding? |
Not much - there's a map shipment button from loan search results. Origins are #1325 The big question is if I can get the same type of credentials we've had from Google, in which case fixing this is about 5 seconds (literally - copy/paste/save/done!) or if I need to find another way, which (if it's even possible) would likely involve rebuilding a bunch of cryptography stuff that Google uses as a "signature." |
OK. I can see how that will be useful. Never noticed that! Let's discuss at this morning's issue meeting. |
David Phau Manager of Developer Relations for Google Earth Engines and Google Earth Outreach |
This issue is related to a switchover of the Arctos account from Google Business to Enterprise to something else - Berkeley Natural History Museum Project, we get in free under their quota |
Michelle says she will create a client ID and implement Friday and will make recommendations to the AWG for next week. |
FYI Dave Thau no longer is at Google!
…On Thu, May 2, 2019 at 10:55 AM Mariel Campbell ***@***.***> wrote:
Michelle says she will create a client ID and implement Friday and will
make recommendations to the AWG for next week.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#2058 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AATH7UJ3N5YF6SBH25ELXBLPTMTKNANCNFSM4HI4YVNA>
.
|
Would he know someone we could contact for future reference? |
For now, can we just disable the google agent shipping address geocoding? I can't send loans if I can't add a shipping address to an agent, which usually is a very easy task. |
URGENT!! CAn someone fix this or just disable this function!! I can't add addresses to Agents for loans and we are at a LOAN impasse. This is the last week with some of my students doing loans, so I need to be able to add addresses to Agents!! |
I'm not sure what to do here. The address integration is causing a lot of problems. @mkoo can I get a client_id?? Should I "temporarily" remove the geocoding?? Should I permanently remove it and the tools that use it?? (I'd rather not.) Should I look for another solution?? HELP!! |
What's involved in temporarily removing the geocoding? I will talk with @mkoo this afternoon about the client ID, and see what the timeframe might be for doing that. We also can't edit an existing agent address (which I was trying to do so I could use the same address, but for a different student); existing address has an "Attn:" to a person which should really be in the outside contact information. So I also can't move forward on this loan. |
I think the biggest problem with anything "temporary" would be catching back up - I think I'd have to re-geocode everything to make sure everything is current. I severely dislike the idea of 'map some arbitrary things that may have more to do with service credentials than reality' so I think we'd need to disable the shipment mapping until everything can be put back together and refreshed. If we want to go there, I think I can disable that part of the code in an hour or so. You can't ever alter used addresses - that would corrupt the history of shipments, the logic to prevent that is built into the DB. I can SQL in a new address, but I think that takes us back to having inconsistent data. If it's just one I guess I could manually geocode it first.... Can we wait until you can talk to Michell before doing anything drastic? |
Yes, let's wait to talk with Michelle. |
ok this is next on my very full plate. reason #1,003 why I am not going to
the retreat for s'mores!
…On Tue, May 7, 2019 at 1:32 PM Carla Cicero ***@***.***> wrote:
Yes, let's wait to talk with Michelle.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2058 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AATH7UKQLN5WYZ7SKAL7YM3PUHRMXANCNFSM4HI4YVNA>
.
|
I faked some stuff and generated a client id and secret key for Arctos. It
looks weird to me.
Can you check it out in the morning, @dusty <[email protected]> please?
I will be around ca. 8 or so
…On Tue, May 7, 2019 at 9:28 PM Michelle S. Koo ***@***.***> wrote:
ok this is next on my very full plate. reason #1,003 why I am not going to
the retreat for s'mores!
On Tue, May 7, 2019 at 1:32 PM Carla Cicero ***@***.***>
wrote:
> Yes, let's wait to talk with Michelle.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#2058 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AATH7UKQLN5WYZ7SKAL7YM3PUHRMXANCNFSM4HI4YVNA>
> .
>
|
Still getting https://developers.google.com/maps/documentation/javascript/error-messages#invalid-client-id-map-error It should be gme-{stuff} |
filling out a lot of forms right now... what's our monthly audience on the
arctos website? can you check Google Analytics, give me an average?
…On Wed, May 8, 2019 at 8:44 AM dustymc ***@***.***> wrote:
Still getting
https://developers.google.com/maps/documentation/javascript/error-messages#invalid-client-id-map-error
It should be gme-{stuff}
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2058 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AATH7UKAPAFGYTOTIBK3P5LPULYPLANCNFSM4HI4YVNA>
.
|
ok thanks
…On Wed, May 8, 2019 at 9:51 AM dustymc ***@***.***> wrote:
Looks like around 10K/m.
[image: Screen Shot 2019-05-08 at 9 48 24 AM]
<https://user-images.githubusercontent.com/5720791/57392767-82707b00-7176-11e9-99d2-f671466e24af.png>
but who knows how that translates to maps - I'd assume most of them see a
map or two, some of them see LOTS of maps, etc.
I think firefox is recently blocking analytics by default too, just to
mess with you...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2058 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AATH7UMFKPE5CRHQGKC4A5LPUMAKNANCNFSM4HI4YVNA>
.
|
THis is probably better - it's from https://google.secure.force.com/apex/MapsReport which I think you have access to. |
from Michelle at AWG meeting 5-9-19 |
I am trying to figure out how to use the API key instead of client ID, and I'm getting
Google says https://developers.google.com/maps/faq#browser-keys-blocked-error Arctos IP is 129.114.60.95 but for some reason nslookup thinks it's 129.114.52.171 so I'm not sure which of those Google would see. @mkoo is this something that can be changed? |
Let me check that out.
There may still be restrictions on using plain ol auth key with some of the
geocoding api's. I nudged Google Map Key request and also campus, who did
not answer my questions directly.
So no news there yet- ugh
…On Mon, May 13, 2019 at 8:26 AM dustymc ***@***.***> wrote:
I am trying to figure out how to use the API key instead of client ID, and
I'm getting
API keys with referer restrictions cannot be used with this API.
Google says
https://developers.google.com/maps/faq#browser-keys-blocked-error
Arctos IP is
129.114.60.95
but for some reason nslookup thinks it's
129.114.52.171
so I'm not sure which of those Google would see.
@mkoo <https://github.com/mkoo> is this something that can be changed?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2058?email_source=notifications&email_token=AATH7UNSBKFITR2POA6NT4DPVGCCZA5CNFSM4HI4YVNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVIVMQA#issuecomment-491869760>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AATH7UMT4BOXE3ZFBT34BULPVGCCZANCNFSM4HI4YVNA>
.
|
BTW, I dont think Google matters which address they see-- the nslookup
address is the dns (now served by TACC) for our ip so should redirect
properly.
I just checked-- when we restrict the api key to the website it does not
look at the ip address just the domain name so I dont think that matters
FYI, last 24 hours we have hit the Maps JS api (412), Places api (7),
Geocoding api (1).
The latter may be only one because of the limit that we currently have a
request pending...
…On Mon, May 13, 2019 at 8:55 AM Michelle S. Koo ***@***.***> wrote:
Let me check that out.
There may still be restrictions on using plain ol auth key with some of
the geocoding api's. I nudged Google Map Key request and also campus, who
did not answer my questions directly.
So no news there yet- ugh
On Mon, May 13, 2019 at 8:26 AM dustymc ***@***.***> wrote:
> I am trying to figure out how to use the API key instead of client ID,
> and I'm getting
>
> API keys with referer restrictions cannot be used with this API.
>
> Google says
>
> https://developers.google.com/maps/faq#browser-keys-blocked-error
>
> Arctos IP is
>
> 129.114.60.95
>
> but for some reason nslookup thinks it's
>
> 129.114.52.171
>
> so I'm not sure which of those Google would see.
>
> @mkoo <https://github.com/mkoo> is this something that can be changed?
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#2058?email_source=notifications&email_token=AATH7UNSBKFITR2POA6NT4DPVGCCZA5CNFSM4HI4YVNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVIVMQA#issuecomment-491869760>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AATH7UMT4BOXE3ZFBT34BULPVGCCZANCNFSM4HI4YVNA>
> .
>
|
Update: we have approval for new Google Maps Platform credits -- so all our
quotas for api usage have increased or is 'limitless' so that's great!
Not so great is spending time with Google Support (a perk apparently of the
new plan we're in) and basically having two separate tech support guys tell
me that they would like to do a code review so we remove the client id
requirements. The docs and the cloud console support the idea that all the
map services we use can use the simpler api key authentication now. Working
with Dusty to troubleshoot. maybe we're close....
…On Mon, May 13, 2019 at 10:26 AM Michelle S. Koo ***@***.***> wrote:
BTW, I dont think Google matters which address they see-- the nslookup
address is the dns (now served by TACC) for our ip so should redirect
properly.
I just checked-- when we restrict the api key to the website it does not
look at the ip address just the domain name so I dont think that matters
FYI, last 24 hours we have hit the Maps JS api (412), Places api (7),
Geocoding api (1).
The latter may be only one because of the limit that we currently have a
request pending...
On Mon, May 13, 2019 at 8:55 AM Michelle S. Koo ***@***.***> wrote:
> Let me check that out.
> There may still be restrictions on using plain ol auth key with some of
> the geocoding api's. I nudged Google Map Key request and also campus, who
> did not answer my questions directly.
>
> So no news there yet- ugh
>
> On Mon, May 13, 2019 at 8:26 AM dustymc ***@***.***> wrote:
>
>> I am trying to figure out how to use the API key instead of client ID,
>> and I'm getting
>>
>> API keys with referer restrictions cannot be used with this API.
>>
>> Google says
>>
>> https://developers.google.com/maps/faq#browser-keys-blocked-error
>>
>> Arctos IP is
>>
>> 129.114.60.95
>>
>> but for some reason nslookup thinks it's
>>
>> 129.114.52.171
>>
>> so I'm not sure which of those Google would see.
>>
>> @mkoo <https://github.com/mkoo> is this something that can be changed?
>>
>> —
>> You are receiving this because you were mentioned.
>> Reply to this email directly, view it on GitHub
>> <#2058?email_source=notifications&email_token=AATH7UNSBKFITR2POA6NT4DPVGCCZA5CNFSM4HI4YVNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVIVMQA#issuecomment-491869760>,
>> or mute the thread
>> <https://github.com/notifications/unsubscribe-auth/AATH7UMT4BOXE3ZFBT34BULPVGCCZANCNFSM4HI4YVNA>
>> .
>>
>
|
I think our mapping capabilities are now fully restored. Please reopen if you find something I've missed. |
Quick summary for future reference: |
Also for posterity: I think I'm now piping all map/api calls through googleSignURL(), which has been modified to just assemble the URL and append the APIKey. That should make maintenance much easier, lightens the code a bit, makes it possible to temporarily disable the cache, etc. Note that there is no encryption in this approach, and the API key apparently has to be unrestricted to authorize some calls - anyone could map something in Arctos, grab the key from their network logs, and use it. We should be monitoring usage, and Google recommends periodically pulling a new API key (which can be entered in Arctos' Global Settings). |
To ensure that we have all our background service calls up and running (and unlimited), I need to institute new client credentials for Arctos. Which means understanding the new content terms requirements then implementing.
This impacts:
Many of these have no direct Leaflet equivalent (please correct me if I'm wrong!)
On my to-do list....
The text was updated successfully, but these errors were encountered: