You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# The manifest starts at offset 20 (with tail we do a +1 compared to dd) and we feed it into protoc for decoding (we assume that the text output format is stable)
# The signal "version" is actually the numbering of multiple signatures, it starts at 2 if there is one signature but
133
+
# otherwise it starts at 1. We accept the payload if we find a valid signature that we have a pub key for.
134
+
# See https://github.com/flatcar/update_engine/blob/c6f566d47d8949632f7f43871eb8d5c625af3209/src/update_engine/payload_signer.cc#L33
135
+
# Note that Flatcar production also has a dummy signature with a random key,
136
+
# see https://github.com/flatcar/flatcar-build-scripts/blob/821d8da19567e3d1a29dc24f8c822f67df6a5e02/generate_payload#L384
137
+
FOUND=false
126
138
while IFS= read -r LINE;do
127
139
LINE=$(echo "${LINE}"| sed 's/^ *//g')
128
140
case"${LINE}"in
@@ -134,17 +146,19 @@ while IFS= read -r LINE; do
134
146
# The raw output instead of asn1parse is used to easily extract the sha256 checksum (done by tail -c 32)
135
147
# We also calculate the payload hash that the signature was done for, note that it's of course not the whole file but only up to the attached signature itself
0 commit comments