Closed Bug 1769058 Opened 2 years ago Closed 2 years ago

Periodic update permafailures due to failure parsing Chrome certificate file during HPKP update

Categories

(Core :: Security: PSM, defect, P1)

defect

Tracking

()

VERIFIED FIXED
102 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox100 --- unaffected
firefox101 + verified
firefox102 + verified

People

(Reporter: RyanVM, Assigned: keeler)

Details

(Keywords: intermittent-failure, Whiteboard: [psm-assigned])

Attachments

(1 file)

Only seems to affect 101+. Didn't we change something around that recently?
https://firefoxci.taskcluster-artifacts.net/ZE8Bf5RBSvyxU4nCPsuntg/0/public/logs/live_backing.log

+ ./xpcshell /home/worker/scripts/genHPKPStaticPins.js /builds/worker/data/PreloadedHPKPins.json /builds/worker/data/StaticHPKPins.h.out
JavaScript error: /home/worker/scripts/genHPKPStaticPins.js, line 246: Error: ERROR: couldn't parse Chrome certificate file line: 1650844800
+ echo 'HPKP preload list generation failed'
HPKP preload list generation failed
+ exit 54
Flags: needinfo?(dkeeler)

Bug 1764424 is what I was thinking of.

Yeah, looks related to the newly-added timestamp in that commit:

diff --git a/net/http/transport_security_state_static.pins b/net/http/transport_security_state_static.pins
index b7d22a05..a83b411 100644
--- a/net/http/transport_security_state_static.pins
+++ b/net/http/transport_security_state_static.pins

@@ -43,6 +43,10 @@
 #   hash function for preloaded entries again (we have already done so once).
 #
 
+# Last updated: 2022-04-25 00:00 UTC
+PinsListTimestamp
+1650844800
+
 TestSPKI
 sha256/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=

Chrome's transport_security_state_static.pins (used by Gecko to glean static
pinning information) recently added a timestamp to note its creation time.
This patch updates genHPKPStaticPins.js to handle the timestamp's presence by
ignoring it.
This also removes the obsolete security/manager/tools/genHPKPStaticPins.js.
The canonical version of that file is
taskcluster/docker/periodic-updates/scripts/genHPKPStaticPins.js.

Assignee: nobody → dkeeler
Status: NEW → ASSIGNED
Severity: -- → S1
Flags: needinfo?(dkeeler)
Priority: -- → P1
Whiteboard: [psm-assigned]
Pushed by dkeeler@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3b050bb98ee0
handle PinsListTimestamp entry in Chrome's static pinning list r=jschanck DONTBUILD
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch

Verified with today's runs, thanks!

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: