Commit graph

10340 commits

Author SHA1 Message Date
bunnie
3df456532c
Merge branch 'main' into vault2 2025-10-08 01:19:08 +08:00
bunnie
f66e3d0241
Merge pull request #696 from betrusted-io/docs
Update README for Xous; stab at improving the documentation.
2025-10-08 01:18:55 +08:00
bunnie
00717b01df
Update README for Xous; stab at improving the documentation. 2025-10-08 01:16:45 +08:00
bunnie
b41dd9b7ac
Merge pull request #695 from betrusted-io/sig-automation
Add a script for automating the signing of bao1x images.
2025-10-06 23:51:46 +08:00
bunnie
d2a8b98352
Add a script for automating the signing of bao1x images.
Image signing has to happen on the native host computer and not
in any of the VMs so a powershell script was created to allow
automation of the 'beta' signing key. This script fully automates
the signing and also staging of images to the testing environment.

This will need to be revised into a linux script for final
deployment as CI is done in a linux environment, but "day to day"
signature testing is done in the development environment, thus
this version of the script was prioritized.

Shouldn't be too hard to extend this to the linux environment,
I think Windows is the harder one to integrate.
2025-10-06 23:47:09 +08:00
bunnie
defb8b502e
Merge pull request #692 from betrusted-io/signing
WIP: image signing
2025-10-06 23:39:40 +08:00
bunnie
dc734dbfa8
fix version generation
This is related to a prior set of patches, we're getting CI failures
related to how tags are working (or not working); this hopefully
fixes that.
2025-10-06 23:35:35 +08:00
bunnie
ea8927fc55
Fixup sign_image to generate records with the new auth_data format 2025-10-06 23:34:30 +08:00
bunnie
e254700cf9
add signature patching to fido-signer
fido-signer now automatically recognizes xous images and
patches the signature with the updated signature record,
as well as re-generating the corresponding .uf2 file.
2025-10-06 23:31:41 +08:00
bunnie
3b4e035a4f
revise auth_data handling for key header block
auth_data actually changes with each signing operation (ostensibly
to prevent replay of signatures coming from tokens) so it has
to be presented as data parallel to the signature, instead of
as a static filed baked into the key header.

This commit revises the header record to reflect this organizatio
of data and also revises the signature check to be in-line
with the protocol.
2025-10-06 23:31:02 +08:00
bunnie
7d6630b7ec fix one way counter offset calculations 2025-10-06 23:24:42 +08:00
bunnie
dbcf346ffb add security audit & lockdown features to the boot1 stage 2025-10-06 23:24:01 +08:00
bunnie
9c9c6f67a7 fixup tag return API
returns a [u8;4] instead of a u32
2025-10-06 15:20:56 +08:00
bunnie
03ea3c9d0c changes to the apis to accommodate the public key record format 2025-10-06 15:20:34 +08:00
bunnie
fae47d2dac fix length printout in credential id 2025-10-06 15:20:13 +08:00
bunnie
54ee8ffd83 update sign_image to work with the new public key records 2025-10-06 15:19:52 +08:00
bunnie
a1a5ff1592 add public key templates
Beta/developer keys are fully filled out.

Placeholders for production signing keys are also provided.
2025-10-06 15:19:19 +08:00
bunnie
ecd7d87bbd make bao1x view default for vscoders 2025-10-06 14:24:06 +08:00
bunnie
b89f23e7ac
Merge branch 'main' into vault2 2025-10-06 14:21:02 +08:00
bunnie
e232518e3f
Merge branch 'main' into signing 2025-10-06 14:20:51 +08:00
bunnie
b87c2dfa50
Merge pull request #694 from betrusted-io/fix-baremetal
Fix baremetal
2025-10-06 14:19:14 +08:00
bunnie
b427b94620
Merge branch 'main' into fix-baremetal 2025-10-06 14:19:01 +08:00
bunnie
0d5e629238 cleanup warning 2025-10-06 14:18:11 +08:00
bunnie
b3963cc2f4 fixup baremetal target problems unvield in CI 2025-10-06 14:13:45 +08:00
bunnie
3c68eea714
Merge branch 'main' into signing 2025-10-06 13:45:29 +08:00
bunnie
c32dde7b06
Merge branch 'main' into vault2 2025-10-06 13:45:17 +08:00
bunnie
b540fdba6f
Merge pull request #693 from betrusted-io/fix-semver
Fix semver
2025-10-06 13:45:05 +08:00
bunnie
002d8660fc update hashes to dependent crates 2025-10-06 13:43:00 +08:00
bunnie
60397a1f59 update lockfile to match version bump 2025-10-06 13:39:23 +08:00
bunnie
3230fa9fc5 update verification pins 2025-10-06 13:39:16 +08:00
bunnie
cc2c975b35 commit more to stage next publishing 2025-10-06 13:30:37 +08:00
bunnie
dbb0a75118 bump versions
have to absorb a version change due to xous-semver change

might as well also update the utra/svd generator dependencies
since that's been held off for a long time now.
2025-10-06 13:23:18 +08:00
bunnie
6d4f8004d3 fix breakage associated with changes to xous-semver 2025-10-06 13:17:21 +08:00
bunnie
a493e27398 update bytemuck crate 2025-10-06 03:50:21 +08:00
bunnie
4413b95162 place the public key in the correct location 2025-10-06 03:50:09 +08:00
bunnie
3c341d0f8e handle return codes that include tags 2025-10-06 03:49:55 +08:00
bunnie
69d81042b9 upgrade signature check to handle domain separation data
this is needed to handle the fido2/webauthn style signatures
2025-10-06 03:49:11 +08:00
bunnie
fc3b226414 add initial scripts & strategy for image signing
- poc signing flow using hardware key is demonstrated
- tested with signature verification using python script
- beta key committed to tree (the "secret" key just contains
the key identifier, not the key itself; the key resides in the
token)
2025-10-06 01:37:22 +08:00
bunnie
ca9b20bee6 bring lockfiles up to date for vault2 2025-10-06 01:34:22 +08:00
bunnie
8fcca4f873 cleanup bitrot 2025-10-06 01:34:13 +08:00
bunnie
3a18782524 cleanup old vault2 location 2025-10-06 01:33:56 +08:00
bunnie
efaa17148f add readme to explain apps-baosec 2025-10-06 01:33:29 +08:00
bunnie
f2a407dadc create apps-baosec; clean up bit-rot 2025-10-06 01:32:31 +08:00
bunnie
8d067e6819 Merge branch 'main' into vault2 2025-10-06 01:23:21 +08:00
bunnie
f2cd62dbbf
Merge pull request #691 from betrusted-io/refactor-loader
Refactor loader & add dabao target
2025-10-06 01:18:24 +08:00
bunnie
b335d002ac add app-dabao to workspace 2025-10-05 17:18:06 +08:00
bunnie
140f1ae538 add dabao support to usb-bao1x
the minimal set of envisioned services for the dabao would
include a USB handler. Seems like too useful a thing to not
have it enabled.
2025-10-05 17:17:31 +08:00
bunnie
4069b623c4 add note about where to get dabao console from in bao-console 2025-10-05 17:17:07 +08:00
bunnie
95f192ca38 add dabao target 2025-10-05 17:15:05 +08:00
bunnie
01a78e4474 fixup app region start and add freq/voltage configs for board targets
this is the agnostic version of all of the board targets, which
allows the boot1 to lookup based on the current configuration
which configurations to apply.

I think I've talked myself into giving away $0.20 of parts with
every dabao board so that everyone can run at full frequency.
Originally I thought I'd limit to the minimal configuration with
low frequency operation but since this is the main developer
platform all the benchmarks and first impressions will come
through this board. Crippling it with a slower clock frequency
by omitting the supplementary digital regulator seems
short-sighted, even if it means up slightly subsidizing things
with this extra cost.
2025-10-05 17:12:40 +08:00