Updated upstream bug:
https://gitlab.freedesktop.org/geoclue/geoclue/-/issues/136, opened 20
OCT 2020

Looks like the Mozilla MLS maintainer has proposed to deprecate the
default key in order to force downstreams to get their own keys:

>From the linked bug:

"My proposal is to deprecate the default key in Geoclue and give
downstream users a good window (1 year?) in which to apply for their own
MLS keys. Any Gnome or OSS apps that currently rely on Geoclue would
effectively be rubber-stamped when they applied for their own MLS keys.
At the end of the deprecation window, Mozilla would throttle the old key
at a suitable threshold (probably 1M requests/day) so that
old/unmaintained apps in the wild wouldn't be completely unsupported."


** Bug watch added: gitlab.freedesktop.org/geoclue/geoclue/-/issues #136
   https://gitlab.freedesktop.org/geoclue/geoclue/-/issues/136

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to geoclue-2.0 in Ubuntu.
https://bugs.launchpad.net/bugs/1826290

Title:
  geoclue mozilla location api key rate limited

Status in geoclue-2.0 package in Ubuntu:
  Triaged

Bug description:
  I am using Ubuntu 19.04

  geoclue version: 0.12.99-4ubuntu2
  geoclue2 version: 2.5.2-1ubuntu1

  The key used by geoclue in ubuntu to access the mozilla location
  service appears to be rate limited.

  Here's the relevant lines in /etc/geoclue/geoclue.conf

  # URL to the wifi geolocation service. The key can currenty be anything, just
  # needs to be present but that is likely going to change in future.
  url=https://location.services.mozilla.com/v1/geolocate?key=geoclue

  The comment is wrong, using an invalid key gives a 400 error.

  $ curl https://location.services.mozilla.com/v1/geolocate\?key=random_key
  {"error":{"code":400,"message":"Missing or invalid API 
key.","errors":[{"domain":"usageLimits","message":"Missing or invalid API 
key.","reason":"keyInvalid"}]}}%

  Using the current key gives a limit reached error

  $ curl https://location.services.mozilla.com/v1/geolocate\?key=geoclue
  {"error":{"code":403,"message":"You have exceeded your daily 
limit.","errors":[{"domain":"usageLimits","message":"You have exceeded your 
daily limit.","reason":"dailyLimitExceeded"}]}}%

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/geoclue-2.0/+bug/1826290/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to