Bug 1541841 - Ship Remote Settings dump for security-state/intermediates r=keeler

Ship Remote Settings dump for security-state/intermediates

Differential Revision: https://phabricator.services.mozilla.com/D26301

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mathieu Leplatre 2019-04-09 08:28:59 +00:00
Родитель 426d8677cb
Коммит 18e5a19a77
4 изменённых файлов: 15 добавлений и 25 удалений

Просмотреть файл

@ -6,4 +6,5 @@ DIRS += [
'blocklists',
'main',
'pinning',
'security-state',
]

Просмотреть файл

@ -1,29 +1,7 @@
# Blocklist
The blocklist entries are synchronized locally from the Firefox Settings service.
https://firefox.settings.services.mozilla.com
# Remote Settings Initial Data
In order to reduce the amount of data to be downloaded on first synchronization,
a JSON dump from the records present on the remote server is shipped with the
a JSON dump from the records present on the remote server can be shipped with the
release.
## How to update the JSON files ?
Even though it is not a problem if the dumps are not up-to-date when shipped, here
are the commands to update them:
```
SERVICE_URL="https://firefox.settings.services.mozilla.com/v1"
curl "$SERVICE_URL/buckets/blocklists/collections/certificates/records?" > services/blocklists/certificates.json
curl "$SERVICE_URL/buckets/blocklists/collections/gfx/records?" > services/blocklists/gfx.json
curl "$SERVICE_URL/buckets/blocklists/collections/plugins/records?" > services/blocklists/plugins.json
curl "$SERVICE_URL/buckets/blocklists/collections/addons/records?" > services/blocklists/addons.json
curl "$SERVICE_URL/buckets/pinning/collections/pins/records?" > services/blocklists/pins.json
```
## TODO
- Setup a bot to update it regularly.
A bot will update the files automatically.

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -0,0 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
FINAL_TARGET_FILES.defaults.settings['security-state'] += [
'intermediates.json'
]
if CONFIG['MOZ_BUILD_APP'] == 'browser':
DIST_SUBDIR = 'browser'