mozilla / addons

☂ Umbrella repository for Mozilla Addons ✨
Other
128 stars 41 forks source link

[Task]: Update Autograph config to use SHA-256 #14804

Closed willdurand closed 5 months ago

willdurand commented 6 months ago

Description

With the deprecation of SHA-1, we can probably switch AMO to SHA-256 for the PKCS#7 digest algorithm: https://github.com/mozilla/addons-server/blob/0656f0f1c525b34947fef8439d2022ce0b472ab5/src/olympia/lib/crypto/signing.py#L125

We're already using PKCS#7+SHA-256 for all privileged/system add-ons so we know it works.

We should do this for new submissions only, no need to re-sign anything. All add-ons are dual-signed at this point anyway.

For QA: please verify that we can sign and install extensions, langpacks, and themes with SHA-256. You can use https://williamdurand.fr/xpidump/ to verify the PKCS#7 digest algorithm. Updating an existing extension to a version signed with SHA-256 should also work flawlessly.

The minimum Firefox version for both desktop and mobile has been bumped to 58. You should not be able to sign an extension (or any add-on type) which is targeting a minimum version lower than 58. We need to test various combinations of manifests to verify this behaviour is solid.

Acceptance Criteria

### Acceptance Criteria
- [x] AMO signs add-ons with SHA-256
- [x] we update the min fireefox version to Fx 58

Checks

┆Issue is synchronized with this Jira Task

ioanarusiczki commented 5 months ago

@alexandruschek has done extension and theme uploads and says he didn't encounter problems.

I've tested on dev and stage some uploads:

https://addons-dev.allizom.org/en-US/firefox/addon/yomikiri_on_dev/ https://addons.allizom.org/en-US/firefox/addon/yomikiri_on-stage/

ioanarusiczki commented 5 months ago

mv3 testing around strict_min_version set with bss.gecko and/or bss.gecko_android

some more mv2 scenarios

Other uploads:

ioanarusiczki commented 5 months ago

I think all the above is expected so I'll mark it verified.

Installs and updates have been verified on FF Nightly - 129.0a1 (Win10)