Commit Graph

17077 Commits

Author SHA1 Message Date
Dana Keeler
153dbb37e5 Bug 1828968 - osclientcerts: make RSA-PSS support configurable via pref r=jschanck
Due to design constraints, it is difficult for osclientcerts to properly
indicate whether or not each known key supports RSA-PSS. Ideally such a
determination would be made close to when a particular key is going to be used,
but due to the design of PKCS#11 and NSS' tight coupling to it, osclientcerts
would have to make this determination when searching for all known keys, which
has been shown to be prohibitively slow on Windows and results in unexpected
dialogs on macOS.

Thus, previously osclientcerts simply assumed all RSA keys supported RSA-PSS.
This has resulted in handshake failures when a server indicates that it accepts
RSA-PSS signatures.

This patch instead makes RSA-PSS support configurable via a pref
(security.osclientcerts.assume_rsa_pss_support). If the pref is true,
osclientcerts assumes all RSA keys support RSA-PSS. If it is false, it assumes
no RSA keys support RSA-PSS.

Differential Revision: https://phabricator.services.mozilla.com/D175966
2023-04-21 17:49:09 +00:00
Sandor Molnar
6ef80b1cea Backed out changeset 53da6e0fc159 (bug 1828968) for causing xpc failures in services/settings/test/unit/test_attachments_downloader.js CLOSED TREE 2023-04-21 21:39:24 +03:00
Dana Keeler
e545725acb Bug 1828968 - osclientcerts: make RSA-PSS support configurable via pref r=jschanck
Due to design constraints, it is difficult for osclientcerts to properly
indicate whether or not each known key supports RSA-PSS. Ideally such a
determination would be made close to when a particular key is going to be used,
but due to the design of PKCS#11 and NSS' tight coupling to it, osclientcerts
would have to make this determination when searching for all known keys, which
has been shown to be prohibitively slow on Windows and results in unexpected
dialogs on macOS.

Thus, previously osclientcerts simply assumed all RSA keys supported RSA-PSS.
This has resulted in handshake failures when a server indicates that it accepts
RSA-PSS signatures.

This patch instead makes RSA-PSS support configurable via a pref
(security.osclientcerts.assume_rsa_pss_support). If the pref is true,
osclientcerts assumes all RSA keys support RSA-PSS. If it is false, it assumes
no RSA keys support RSA-PSS.

Differential Revision: https://phabricator.services.mozilla.com/D175966
2023-04-21 17:49:09 +00:00
Shravan Narayan
ed0bb19d78 Bug 1827704 - Migrate to the upstream wasm2c for RLBox sandboxing r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D175439
2023-04-21 01:31:35 +00:00
Cosmin Sabou
a313fe665f Backed out changeset dfee2337391b (bug 1828968) for causing windows build bustages. CLOSED TREE 2023-04-21 03:20:10 +03:00
Dana Keeler
a004a348f2 Bug 1828968 - osclientcerts: make RSA-PSS support configurable via pref r=jschanck
Due to design constraints, it is difficult for osclientcerts to properly
indicate whether or not each known key supports RSA-PSS. Ideally such a
determination would be made close to when a particular key is going to be used,
but due to the design of PKCS#11 and NSS' tight coupling to it, osclientcerts
would have to make this determination when searching for all known keys, which
has been shown to be prohibitively slow on Windows and results in unexpected
dialogs on macOS.

Thus, previously osclientcerts simply assumed all RSA keys supported RSA-PSS.
This has resulted in handshake failures when a server indicates that it accepts
RSA-PSS signatures.

This patch instead makes RSA-PSS support configurable via a pref
(security.osclientcerts.assume_rsa_pss_support). If the pref is true,
osclientcerts assumes all RSA keys support RSA-PSS. If it is false, it assumes
no RSA keys support RSA-PSS.

Differential Revision: https://phabricator.services.mozilla.com/D175966
2023-04-21 00:01:06 +00:00
ffxbld
cd72bf2348 No Bug, mozilla-central repo-update HSTS HPKP remote-settings - r=release-managers,RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D176014
2023-04-20 12:14:53 +00:00
Nika Layzell
ae78252f9f Bug 1824465 - Part 21: Make PRemoteSandboxBroker refcounted, r=ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D173736
2023-04-19 22:10:10 +00:00
Nika Layzell
07b2254c4e Bug 1824465 - Part 20: Make PSandboxTesting refcounted, r=ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D173735
2023-04-19 22:10:10 +00:00
Dana Keeler
0840631ebd Bug 1813618 - buffer client auth certificate selection UI for speculative connections r=valentin,jschanck,necko-reviewers,kershaw
When necko makes a speculative connection, the peer may ask for a client
authentication certificate. This patch makes it so that when this happens,
no certificate selection UI will be shown until the connection is claimed (as
in, it is no longer merely speculative).

Differential Revision: https://phabricator.services.mozilla.com/D175528
2023-04-18 17:52:49 +00:00
Andi-Bogdan Postelnicu
9ed92a7918 Bug 1679492 - Move away from using mozilla::tl::And. r=sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D175761
2023-04-18 12:42:13 +00:00
Florian Quèze
671f825341 Bug 1817305 - Start the DataStorageTimer only when there is something to write, r=keeler.
Differential Revision: https://phabricator.services.mozilla.com/D174171
2023-04-17 21:45:09 +00:00
Emilio Cobos Álvarez
0277d1fb8f Bug 1826304 - Update base64 in some in-tree crates. r=glandium,webdriver-reviewers,necko-reviewers,supply-chain-reviewers,jesup,jgraham,emilio
Patch old base64 0.13 to 0.21 to avoid introducing the dup dependency.

Differential Revision: https://phabricator.services.mozilla.com/D175116
2023-04-17 21:12:47 +00:00
ffxbld
38571e8257 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - r=release-managers,dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D175624
2023-04-17 13:13:37 +00:00
Sandor Molnar
eb2de1ef8a Backed out changeset 694a4c9a4085 (bug 1826304) for causing xpc failures in security/manager/ssl/tests/unit/test_cert_storage.js CLOSED TREE 2023-04-14 18:09:53 +03:00
Emilio Cobos Álvarez
a3c219bee7 Bug 1826304 - Update base64 in some in-tree crates. r=glandium,webdriver-reviewers,necko-reviewers,supply-chain-reviewers,jesup,jgraham,emilio
Patch old base64 0.13 to 0.21 to avoid introducing the dup dependency.

Differential Revision: https://phabricator.services.mozilla.com/D175116
2023-04-14 13:50:45 +00:00
Dana Keeler
74407531f5 Bug 1289186 - wait for the server certificate to verify successfully before asking for a client auth certificate r=jschanck
If a TLS server asks for a client authentication certificate, no dialog asking
the user to select one should be shown until the server's certificate verifies
successfully.

Differential Revision: https://phabricator.services.mozilla.com/D175170
2023-04-13 18:52:18 +00:00
anwar
2bdd97d537 Bug 1816938 - Convert services/settings/utils.jsm to ES modules. r=Standard8,robwu
Differential Revision: https://phabricator.services.mozilla.com/D173134
2023-04-13 16:22:54 +00:00
ffxbld
076f632667 No Bug, mozilla-central repo-update HSTS HPKP remote-settings - r=release-managers,dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D175344
2023-04-13 14:49:07 +00:00
Alexandre Lissy
32a6eaf06f Bug 1819311 - Collect errors on process launch r=nika,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D171226
2023-04-13 08:35:24 +00:00
Mike Hommey
5308b645e0 Bug 1827534 - Reduce nssckbi size a little more. r=jschanck
This change does the following:
- Replace slices for serial and subject with offsets. This trades space
  for a pointer, a length and a relocation (which on 64-bits Linux is an
  extra 24 bytes), with runtime computation based on a pair (offset,
  length), that are small enough that they fit in 8-bits integers.
- "Inline" sha1 and md5 in Root as fixed-sized arrays instead of slices.
  That removes an indirection and saves the size of a fat pointer + the
  corresponding relocations.
- Make BUILTINS and ROOT_LIST_LABEL arrays rather than slices, which
  also saves a relocation each.

Overall this saves 24.6KB on my local Linux x64 build.

Differential Revision: https://phabricator.services.mozilla.com/D175191
2023-04-12 22:41:58 +00:00
Mike Hommey
24621f4ad8 Bug 1827534 - Avoid builtins-static's build script errors showing more than a compile error. r=jschanck
Differential Revision: https://phabricator.services.mozilla.com/D175292
2023-04-12 22:41:58 +00:00
Dennis Jackson
7f5669834b Bug 1827627 - Update CT Log script, log_list.json and CTKnownLogs.h. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D175251
2023-04-12 18:38:00 +00:00
Narcis Beleuzu
4d86ceed60 Backed out changeset a5064c22d601 (bug 1289186) for Bp-hybrid bustages on NSSSocketControl.h . CLOSED TREE 2023-04-12 22:03:22 +03:00
Dana Keeler
bfba45ee49 Bug 1289186 - wait for the server certificate to verify successfully before asking for a client auth certificate r=jschanck
If a TLS server asks for a client authentication certificate, no dialog asking
the user to select one should be shown until the server's certificate verifies
successfully.

Differential Revision: https://phabricator.services.mozilla.com/D175170
2023-04-12 16:21:38 +00:00
Dana Keeler
90bfe180f2 Bug 1674410 - stop slow certificate verification tasks when the app is shutting down r=jschanck
Certificate verification can take a while, which is why it runs in a separate
thread pool. At shutdown, the thread pool gets joined. To make this fast,
certificate verification tasks should check for shutdown before doing
time-consuming operations and return early if appropriate.

Differential Revision: https://phabricator.services.mozilla.com/D175163
2023-04-12 16:20:30 +00:00
Sandor Molnar
ad732108b0 Backed out changeset 7a21d83704b9 (bug 1822711) for causing mochitest failures in dom/security/test/csp/test_bug1242019.html CLOSED TREE 2023-04-12 05:44:25 +03:00
owlishDeveloper
6c9c240cd3 Bug 1822711 - Enable mochitest-plain on Android Fission builds. Disable some of the tests that are currently failing r=jmaher,taskgraph-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D175077
2023-04-12 00:30:34 +00:00
Tooru Fujisawa
611bc49dcf Bug 1821308 - Part 2: Convert ctypes.jsm consumers to use ESM. r=Standard8,geckoview-reviewers,application-update-reviewers,credential-management-reviewers,sgalich,bytesized,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D173811
2023-04-11 01:25:15 +00:00
ffxbld
10c08977ed No Bug, mozilla-central repo-update HSTS HPKP remote-settings - r=release-managers,dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D175035
2023-04-10 12:39:24 +00:00
ffxbld
5b0c0c8f92 No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - r=release-managers,RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D174869
2023-04-07 02:31:04 +00:00
Noemi Erli
d637b3f05e Backed out 24 changesets (bug 1824465) for causing failures in nsISupportsImpl.cpp CLOSED TREE
Backed out changeset a5c8f22b7170 (bug 1824465)
Backed out changeset b551b655ac72 (bug 1824465)
Backed out changeset 0e6768a6419c (bug 1824465)
Backed out changeset fb115ebb7fe0 (bug 1824465)
Backed out changeset aaa7a2c8aa3b (bug 1824465)
Backed out changeset 7ef94bfa90b3 (bug 1824465)
Backed out changeset a4238fd6b86f (bug 1824465)
Backed out changeset 3a88e4cfbe45 (bug 1824465)
Backed out changeset 40c2467d3162 (bug 1824465)
Backed out changeset 8f900395c72c (bug 1824465)
Backed out changeset 92e4c6e4d73c (bug 1824465)
Backed out changeset 445c5d5d9661 (bug 1824465)
Backed out changeset de51ed5389d9 (bug 1824465)
Backed out changeset 72049d72bcb6 (bug 1824465)
Backed out changeset 126773c2427a (bug 1824465)
Backed out changeset 886e76bc80be (bug 1824465)
Backed out changeset a69a851411f0 (bug 1824465)
Backed out changeset 703599cf6189 (bug 1824465)
Backed out changeset 11ecb78ebc15 (bug 1824465)
Backed out changeset 563255aaa1e1 (bug 1824465)
Backed out changeset d1bf32c2a6c6 (bug 1824465)
Backed out changeset ef28b2777487 (bug 1824465)
Backed out changeset a2015d354bb1 (bug 1824465)
Backed out changeset 31d6b53fdc6a (bug 1824465)
2023-04-06 01:50:55 +03:00
Nika Layzell
e1bf44d9b8 Bug 1824465 - Part 21: Make PRemoteSandboxBroker refcounted, r=ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D173736
2023-04-05 21:33:44 +00:00
Nika Layzell
7504c564fc Bug 1824465 - Part 20: Make PSandboxTesting refcounted, r=ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D173735
2023-04-05 21:33:44 +00:00
Jed Davis
bb633f7e44 Bug 1825682 - Avoid truncating the pids in Linux sandbox broker thread names. r=gcp
Differential Revision: https://phabricator.services.mozilla.com/D174199
2023-04-03 19:47:31 +00:00
ffxbld
f9012aac66 No Bug, mozilla-central repo-update HSTS HPKP remote-settings - r=release-managers,RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D174455
2023-04-03 13:34:12 +00:00
Chris H-C
fe6d4dbee4 Bug 1824682 - Add /dev/urandom to rdd process sandbox on Linux r=gcp
On Linuxen without getrandom(), Rust (and Firefox broadly) uses /dev/urandom
as a fallback. Rust uses it for a few things, notably hashmaps... and will
panic if it can't use it.

Differential Revision: https://phabricator.services.mozilla.com/D174336
2023-03-31 20:47:16 +00:00
Mike Hommey
15f47ffb40 Bug 1825696 - Update in-tree crates to env_logger 0.10. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D174207
2023-03-31 07:20:15 +00:00
Mike Hommey
93784bacca Bug 1825478 - Update bindgen to 0.64. r=emilio,necko-reviewers,supply-chain-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D174054
2023-03-30 21:05:14 +00:00
Nika Layzell
d57c9498f6 Bug 1825360 - Remove the NS_DISPATCH_SYNC flag, r=necko-reviewers,geckoview-reviewers,media-playback-reviewers,karlt,jesup,m_kato,emilio
This flag is not supported by most event targets and can have unexpected
side effects (namely spinning a nested event loop). All consumers have
been replaced with a new function which is more explicit about this side
effect.

Differential Revision: https://phabricator.services.mozilla.com/D173985
2023-03-30 16:53:51 +00:00
ffxbld
fda4e5aac6 No Bug, mozilla-central repo-update HSTS HPKP remote-settings - r=release-managers,RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D174105
2023-03-30 12:49:31 +00:00
ffxbld
bde19f5f7a No Bug, mozilla-central repo-update HPKP remote-settings - r=release-managers,RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D173662
2023-03-27 16:06:47 +00:00
Mark Banner
36ab6611df Bug 1824173 - Enable ESLint configuration valid-jsdocs across the tree, disabling for currently failing locations. r=mossop,webcompat-reviewers,extension-reviewers,credential-management-reviewers,denschub,dimi,robwu
Depends on D173450

Differential Revision: https://phabricator.services.mozilla.com/D173451
2023-03-24 19:35:25 +00:00
Greg Stoll
1619302678 Bug 1818762 - update our implementation of IsValidImageSection r=yjuglaret
Differential Revision: https://phabricator.services.mozilla.com/D173328
2023-03-24 15:22:00 +00:00
ffxbld
69b2458079 No Bug, mozilla-central repo-update HPKP remote-settings - r=release-managers,RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D173401
2023-03-23 12:31:50 +00:00
Joel Maher
b737a6612d Bug 1820900 - Run unittests on MSIX debug. r=bhearsum,ci-and-tooling,aryx
Differential Revision: https://phabricator.services.mozilla.com/D173080
2023-03-22 16:08:37 +00:00
Mike Hommey
9b67b694bf Bug 1822484 - Rename IsDevelopmentBuild. r=necko-reviewers,media-playback-reviewers,padenot,emilio
Differential Revision: https://phabricator.services.mozilla.com/D172748
2023-03-21 21:54:27 +00:00
Cristian Tuns
aa17c3a176 Backed out changeset d9e7b204d089 (bug 1820900) for causing bc failures in runtests.py CLOSED TREE 2023-03-21 16:25:12 -04:00
Joel Maher
c710ce2144 Bug 1820900 - Run unittests on MSIX debug. r=bhearsum,ci-and-tooling,aryx
Differential Revision: https://phabricator.services.mozilla.com/D173080
2023-03-21 13:54:26 +00:00
Kershaw Chang
5e58575e28 Bug 1809843 - Skip Failed tests, r=necko-reviewers,extension-reviewers,credential-management-reviewers,valentin,sgalich,robwu
Differential Revision: https://phabricator.services.mozilla.com/D171842
2023-03-21 09:09:58 +00:00