Commit graph

4966 commits

Author SHA1 Message Date
bunnie
41fd5c7b55 make backup timestamps windows-compatible 2023-01-30 22:14:59 +08:00
bunnie
1c8eef910d chore: remove warning, and old notes 2023-01-30 22:14:59 +08:00
bunnie
d673cef1b0 cleanup minor UX issue (disappearing title when no items present) 2023-01-30 22:14:59 +08:00
bunnie
57ba858d99 update commit ref of opensk code 2023-01-30 22:14:59 +08:00
bunnie
2a0135c781 add bulk deletion of keys from a single dictionary 2023-01-30 22:14:59 +08:00
bunnie
224c4bccdb use bulk delete to speed up the reset process
this is necessary to pass the test after creating
dozens of credentials; it takes too long to process the
deletion if it's done one at a time
2023-01-30 22:14:59 +08:00
bunnie
be351b0562 improve debug output in storage layer 2023-01-30 22:14:59 +08:00
bunnie
d244466090 add some more time allowance for resets to process from boot 2023-01-30 22:14:59 +08:00
bunnie
ab90b0044e fix bug where old key data was not being zeroized on delete
on valid pages were being updated in a dictionary entry as
it is updated; actually, entries that are invalid should also
be zeroized, otheriwse they "Stick around" as valid entries.
2023-01-30 22:14:59 +08:00
bunnie
9903aacbad add fscb sync and pruning to the delete test bench 2023-01-30 22:14:59 +08:00
bunnie
d56bad0e42 bump release notes 2023-01-30 22:14:59 +08:00
bunnie
d70eeb2453 fix bug in small pool re-packing after delete
the new offset address was being used for copying data, instead
of the old offset, which was causing key data to refer to
an incorrect entry after deletion
2023-01-30 22:14:59 +08:00
bunnie
bce6fb2836 improve debug output on PDDB 2023-01-30 22:14:59 +08:00
bunnie
28f3594de3 make reset timing a bit looser
currently 10 seconds from boot before cred reset can be issued;
automated testing can't always keep up with that. expand to
20 seconds. This is not "standards compliant" but the idea that
you unplug the device and it stays on is also not "standards compliant".
2023-01-30 22:14:59 +08:00
bunnie
091d35a377 fix PIN permissions; add support for autotest reset 2023-01-30 22:14:59 +08:00
bunnie
d5d6b2b86f bump lockfile 2023-01-30 22:14:59 +08:00
bunnie
624705d169 add timeout variant for USB Rx -- note: not tested!
turns out we didn't need this variant for things to work
with the new OpenSK stack.
2023-01-30 22:14:59 +08:00
bunnie
e1cb4898e5 allow vendor commands; get vaultbackup-rs working 2023-01-30 22:14:59 +08:00
bunnie
bc3aac677f fix zero-length key readback error in bulk reads
zero-length keys return a data section of None, instead
of Some(<empty vec>), as the latter representation deserializes
to a null pointer panic.
2023-01-30 22:14:59 +08:00
bunnie
22dd62eeec refine the heuristic for detecting keys 2023-01-30 22:14:59 +08:00
bunnie
9c0c322d1d fix key deletion in fido2 2023-01-30 22:14:58 +08:00
bunnie
22bedae102 add migration from old to new version
confirmed this works for U2F and FIDO2 keys

however, the PIN is reset.
2023-01-30 22:14:58 +08:00
bunnie
5c454d4382 chore: fix typos 2023-01-30 22:14:58 +08:00
bunnie
15962925e7 initial integration of fido2.1 now passing some basic tests 2023-01-30 22:14:58 +08:00
bunnie
a00691dab7 first cut at porting in FIDO2.1 features from OpenSK
Code now builds, but, it doesn't fully work. Also,
the vault backup vendor routines have yet to be wedged in.

On the other hand, this edit is much more targeted than
the first one, so hopefully future port-ins of OpenSK
will be much smoother. In particular, OpenSK has a nice
`env` abstraction that has enough power now for us to
stick most of the Xous-specific stuff in there. There's
still a few patches needed to the main code loop, mainly
to accommodate our ability to display more information
than flash an LED.

The storage layer is also migrated to a totally new
dictionary, because the latest version also completely
redoes the storage with some sort of key/value system,
which maps nicely into the PDDB.
2023-01-30 22:14:58 +08:00
bunnie
e8acb62d6d fix missing corner case in cache refill 2023-01-30 22:14:58 +08:00
bunnie
f2825bf06e bump release notes 2023-01-30 22:14:58 +08:00
bunnie
b09ded8144 bump release notes 2023-01-30 22:14:58 +08:00
Tom Marble
275dee1ae1 mtxcli: chat room updates asynchronously
Added more predefined scalar messages
Checks WiFi status
Spawns separate thread for client_sync (reading the network)
Most all log messages are now INFO (to be shown by default)

Closes #300

Signed-off-by: Tom Marble <tmarble@info9.net>
2023-01-30 22:14:58 +08:00
bunnie
bfe87cadb3 fix search criteria to match case-insensitive listing 2023-01-30 22:14:58 +08:00
bunnie
82a7d0c40f fix some more edge cases in PDDB key deletion 2023-01-30 22:14:58 +08:00
bunnie
8350095d36 fix initialization order so that CI can run 2023-01-30 22:14:58 +08:00
bunnie
2ef7dfd488 add test case for pddb delete keys 2023-01-30 22:14:58 +08:00
bunnie
b9f0f80d26 fix cached state to match disk state in UX for edit/delete in passwords 2023-01-30 22:14:58 +08:00
bunnie
0546f7a38c fix deletion UX in vault 2023-01-30 22:14:58 +08:00
bunnie
408cc69ad9 note that lock device also has a reboot aspect to it in the menu 2023-01-30 22:14:58 +08:00
bunnie
f2dcea0834 add a missing sync after key deletion 2023-01-30 22:14:58 +08:00
bunnie
dafec3c2eb chore: fix another typo 2023-01-30 22:14:58 +08:00
bunnie
6fd080097e chore: fix typo :P 2023-01-30 22:14:58 +08:00
Tom Marble
ba2e91fea0 Updates for #287
Allows a variable to be set to the EMPTY string
- by not setting a value `/set myvar`

During initialization now verifies that PDDB is mounted.

Added warnings for PDDB not mounted and WiFi not connected.
- the WiFi check is not yet implemented

Signed-off-by: Tom Marble <tmarble@info9.net>
2023-01-30 22:14:58 +08:00
Tom Marble
e48507a597 Completes fix for #287
Adds migrations framework
Delays mtxcli initialization until first user input, because we know:
- PDDB is mounted
- Timer is stable
- User actually using mtxcli
Adds send_async_msg scalar_async_msg
- basis for automatically updating chatroom

Signed-off-by: Tom Marble <tmarble@info9.net>
2023-01-30 22:14:58 +08:00
Tom Marble
feffc2e5be WIP: Fix mtxcli excessive memory usage #287
Adds migrations framework
- Migration for v0.9.11-0120: update the filter

Filter
- narrow filter to only the fields and events for the current room

Introduces "read only" variables (e.g. __version).

Signed-off-by: Tom Marble <tmarble@info9.net>
2023-01-30 22:14:58 +08:00
Tom Marble
b4566bc22e WIP #287: Adds /heap command to mtxcli
Signed-off-by: Tom Marble <tmarble@info9.net>
2023-01-30 22:14:57 +08:00
Patryk Laurent
afd1570bbc type chars rather than bytes 2023-01-30 22:14:57 +08:00
Patryk Laurent
9ad45b6f2c add pddb edit (types pddb write <k> <v>) 2023-01-30 22:14:57 +08:00
Sean Cross
8bde1326ff Cargo: remove packing from main workspace
This should fix an issue in CI builds.

Signed-off-by: Sean Cross <sean@xobs.io>
2023-01-18 09:12:50 +08:00
Sean Cross
dc4ca79834 services: pddb: use an enum for file types
Rather than hardcoding numbers, use an enum with the constant values.
This will make it easier to reason about what the constants mean.

Signed-off-by: Sean Cross <sean@xobs.io>
2023-01-18 09:06:16 +08:00
bunnie
d65f16b533 add the verifier and lockfile updates 2023-01-18 01:13:29 +08:00
bunnie
232a4b6c6c bump xous version 2023-01-18 00:02:46 +08:00
bunnie
b275660a71 add an "endcap" to the kernel region
This works around https://github.com/SpinalHDL/VexRiscv/issues/296
2023-01-17 23:07:05 +08:00