<feed xmlns='http://www.w3.org/2005/Atom'>
<title>buildbot/tests/cram/master/03-signing.t, branch master</title>
<subtitle>LEDE buildbot configuration</subtitle>
<id>https://git.openwrt.org/buildbot/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/buildbot/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/'/>
<updated>2026-11-01T10:06:34Z</updated>
<entry>
<title>tests: add apk release signing regression test</title>
<updated>2026-11-01T10:06:34Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2026-10-28T07:21:52Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/commit/?id=732085970edb2d6f8a45541189f7d1e04f8a40d5'/>
<id>urn:sha1:732085970edb2d6f8a45541189f7d1e04f8a40d5</id>
<content type='text'>
Add a cram test that runs scripts/signall.sh in a container from the
master image on a tarball with a small apk index, using a throwaway
P-256 key and a config.ini shaped like the production one. The test
starts its own container, because it needs only the tools in the image,
not a running buildmaster.

The test checks that the signed index verifies with the buildmaster apk,
that signing the same tarball twice gives identical packages.adb files,
which only works with the deterministic ECDSA patch, and that sha256sums
matches the signed index. It then verifies the signed index with the apk
of the OpenWrt rootfs images x86-64-main, x86-64-openwrt-25.12 and
x86-64-25.12.6. A copy of the index with one changed payload byte must
fail with "UNTRUSTED signature".

With the patch removed from the buildmaster image, the test fails at the
determinism check.

The config.ini has a dummy last option, because signall.sh reads back
an empty key when the key is the last entry and then skips signing
without an error. That bug will be fixed separately.

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
Link: https://github.com/openwrt/buildbot/pull/84
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
</feed>
