GithubHelp home page GithubHelp logo

mozilla / mozillavpn-product-details Goto Github PK

View Code? Open in Web Editor NEW
1.0 6.0 4.0 220 KB

Hosting product details json files for mozilla vpn repo

License: Mozilla Public License 2.0

JavaScript 100.00%

mozillavpn-product-details's Introduction

ci

https://mozilla.github.io/mozillavpn-product-details

Hosts a product-details style json files for the vpn.

Automatically deploys to gh pages.

  • schema.jtd.json contains the schema that all files must validate.

The product details files are currently (Oct-28-21) used to:

The constraints in the schema capture constraints we've coded elsewhere e.g. in code, or in the archives link structure.

Enforced restrictions

  • No pushing to main
  • Codeowners must approve production file changes
  • Commits must be signed
  • No exceptions

Changing schemas

This file is currently consumed by Guardian as a means of providing download URLs. If the schema requires changes, a Guardian contributor must be notified in advance so that code and tests can be updated to match.

Running locally

npm i
npm test

mozillavpn-product-details's People

Contributors

bakulf avatar birdsarah avatar brizental avatar dependabot[bot] avatar jswinarton avatar lesleyjanenorton avatar mattlichtenstein avatar mcleinman avatar mkestler-rtp avatar mozrokafor avatar oskirby avatar strseb avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mozillavpn-product-details's Issues

Add a test to verify logic of release information.

See https://github.com/mozilla/mozillavpn-product-details/pull/10/files

This PR added

"2.6.1": {
      "build": null,
      "date": "2021-11-22",
      "platforms": ["ANDROID", "IOS", "MACOS", "WINDOWS"]
    }

but did not update the latest version for iOS and Android

 "latest": {
    "ANDROID": "2.5.1",
    "IOS": "2.5.1",
    "LINUX": "2.6.0",
    "MACOS": "2.6.1",
    "WINDOW: "2.6.1"
    }

This issue is to add a test, unlikely to be doable with json validation to verify inconsistencies like this don't happen.

Product details should include installer hash

At present, the product details only contain version numbers and release dates. While this allows a consumer of this repository to construct the URL to archive.mozilla.org to download the installer file, it does not allow the user to validate that the contents of archive.mozilla.org haven't been tampered with and therefore might represent a break in the chain of trust.

To remedy this, we should be including a strong cryptographic hash (eg: SHA256/512) of the installer packages in this repository, in addition to the rest of the release details. This would allow a user to download the installer, and validate that they received the expected file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.