bunnie
f7dcbe0ab0
fix some formatting and CI messaging issues
2022-07-14 04:46:02 +08:00
bunnie
45a150362d
Merge branch 'backups' into main
2022-07-14 04:20:51 +08:00
bunnie
b2f169c55e
fix unpack signature on init flow to allow for both block and nonblock
2022-07-14 04:20:14 +08:00
bunnie
0e6d721bcf
Merge branch 'backups' into main
2022-07-14 03:51:34 +08:00
bunnie
18abf7ca0a
fix ordering issue in refcount increment for trng
...
want to add to the reference before claiming, so if
a drop happens while we're claiming we don't get
the connection being destroyed in the race.
2022-07-14 03:50:30 +08:00
bunnie
239cdef1ef
add enhanced debug to time
2022-07-14 03:50:13 +08:00
bunnie
b83c75bbf0
enhance com debugging
2022-07-14 03:49:32 +08:00
bunnie
f6349aada3
fix missing refcount in non-registering susres object constructor
...
a bit of a subtle bug, but a failure to count creations of
non-registering susres objects leads to a premature destruction
of the susres handle, leading to a suspend failure.
2022-07-14 03:48:42 +08:00
bunnie
8a5c6000cc
fix hosted mode
2022-07-14 03:15:39 +08:00
bunnie
363a528961
Merge branch 'backups' into main
2022-07-14 02:02:09 +08:00
bunnie
d0c0fdd9ab
fix forward-version autoupdate flow and change boot ordering
...
in order to trigger an update in early boot, all the security
sensitive servers have to have their connection tables occupied
(I guess the fancy term is the "capabilities" need to be allocated.
whatevs. #notanacademic).
This fixes the flow so those capabilities are occupied before
we get to the update check. Also fixes options to ignore updates.
2022-07-14 02:00:24 +08:00
bunnie
d5d6461dc5
fix details on forward-version autoupdate flow
2022-07-14 02:00:06 +08:00
bunnie
a1c7abd66d
fix version reporting bug
...
u8 encoded field has to be masked before expanding to u16
2022-07-14 01:59:44 +08:00
Sean Cross
c85925ef87
gh actions: fetch tags
...
The build system now requires tags, so fetch those
2022-07-13 20:27:03 +08:00
bunnie
ca7be97dfd
remove debug for push to CI
2022-07-13 15:16:53 +08:00
bunnie
5847cb04cf
improve resume error handling in the time block
2022-07-13 15:16:15 +08:00
bunnie
a05f9a5c92
revert to debugging
2022-07-13 05:03:42 +08:00
bunnie
df2de92d43
don't commit Debug flag
2022-07-13 05:02:55 +08:00
bunnie
e626c81851
Merge branch 'main' of github.com:betrusted-io/xous-core into main
2022-07-13 05:02:22 +08:00
bunnie
b4b6fc2a49
unbreak hosted mode
2022-07-13 05:01:36 +08:00
bunnie
f1d91b5b25
bump lockfile
2022-07-13 04:44:57 +08:00
bunnie
85ced42465
add automatic checks for backup/restore on boot
2022-07-13 04:44:44 +08:00
bunnie
7b72966c09
add restore flow to the root keys server (still untested)
...
- also recycles the PDDB when keys are initialized
2022-07-13 04:44:13 +08:00
bunnie
abe153208f
update shellchat to use the new semver returns
2022-07-13 04:43:35 +08:00
bunnie
c08bb6a3f9
add notes about the second ECC error reported
2022-07-13 04:43:20 +08:00
bunnie
02c886bf84
attempt to fix-up ECC error by clearing both ECC registers
...
this doesn't seem to fix it tho, when we hit the error
the chip just returns 0xFF's eternally.
2022-07-13 04:38:06 +08:00
bunnie
e26e6e6bd0
fix missing token search in bip39 return
2022-07-13 04:37:48 +08:00
bunnie
9569954ab4
add an extra line to the bip-39 display area
...
turns out you can have 5-line codes.
2022-07-13 04:37:14 +08:00
bunnie
65ee48f100
retrofit com to output semver structures
2022-07-13 04:36:54 +08:00
bunnie
d3337bdaba
make constant naming consistent (prefix indicates the address space offset)
2022-07-13 04:36:17 +08:00
bunnie
322941c4ae
add version with SemVer output for Xous
2022-07-13 04:35:53 +08:00
Gianguido Sorà
71979f81d7
feat(vault): implemet totp backup on device-side
2022-07-12 17:30:26 +02:00
Gianguido Sorà
bdeb68a158
feat(vault): add password-related methods to storage abstraction
2022-07-12 17:30:11 +02:00
Gianguido Sorà
371164b82f
chore(vault): implement std::errror::Error on CborConversionError
2022-07-12 17:29:50 +02:00
Gianguido Sorà
186e83bf9e
feat(vault): implement totp backup from device to computer
2022-07-12 17:29:31 +02:00
bunnie
bfb93269f3
create the backup side of the flow
2022-07-12 04:50:03 +08:00
bunnie
09e1b99315
initial infrastructure for running backups
...
code to serialize/deserialize and encrypt/decrypt the backup
block.
now filling in the UX flow around this.
2022-07-12 03:32:33 +08:00
bunnie
941d72f3c5
add a magic word check to the wf200 routine
...
avoids running an update if nothing is staged at all.
2022-07-12 03:31:54 +08:00
bunnie
fa21e01b94
add the location of the backup block
2022-07-12 03:31:37 +08:00
Gianguido Sorà
7cd279259a
chore(vault): make it depend off libraries/backup
2022-07-11 18:15:41 +02:00
Gianguido Sorà
9722bbc573
chore(vault): use backup structs, storage abstraction in vendor command handling
2022-07-11 18:15:14 +02:00
Gianguido Sorà
8b4eca753e
chore(vault): export TotpAlgorithm struct
2022-07-11 18:14:39 +02:00
Gianguido Sorà
42f0589010
chore(totp): abstract backup/restore models
2022-07-11 18:14:25 +02:00
Gianguido Sorà
d40763b80f
feat(vault): begin implementing a storage layer for totp, password
2022-07-11 18:13:27 +02:00
Gianguido Sorà
99ba5fa075
chore: move backup/restore models into libraries subdir
2022-07-11 15:07:34 +02:00
bunnie
ed2f029874
add SoC autoupdate flow options -- still needs testing
2022-07-11 18:36:00 +08:00
bunnie
f756c4ee66
note stats on quitting the updater thread
2022-07-11 16:27:13 +08:00
bunnie
3e8065ee56
quit the ec updater thread once we're done checking for updates
...
unless we're debugging, there is no more need for its resources
to be allocated.
2022-07-11 16:23:36 +08:00
bunnie
7248f47ca8
fix self-signing to reflect extra data for semvers
...
the loader is a little funky, and requires some maintainer hand-holding
due to the split of the page ownership between the root-keys
crate and the graphics-server crate.
Improved docs so I don't forget this detail in the future.
2022-07-11 16:11:32 +08:00
bunnie
af1013a1f3
rework SoC semver reporting to use xous-semver
2022-07-11 15:39:42 +08:00