Commit graph

4971 commits

Author SHA1 Message Date
bunnie
a3086357bd make backup timestamps windows-compatible 2023-01-27 14:19:41 +08:00
bunnie
25cc571228 chore: remove warning, and old notes 2023-01-27 02:23:53 +08:00
bunnie
9ea5182103 cleanup minor UX issue (disappearing title when no items present) 2023-01-27 02:23:34 +08:00
bunnie
20a2388b5d update commit ref of opensk code 2023-01-27 01:47:48 +08:00
bunnie
9c5efebf38 add bulk deletion of keys from a single dictionary 2023-01-27 01:43:24 +08:00
bunnie
99995f963d 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-27 01:42:50 +08:00
bunnie
50458e837b improve debug output in storage layer 2023-01-26 23:34:08 +08:00
bunnie
dee4bac956 add some more time allowance for resets to process from boot 2023-01-26 23:33:38 +08:00
bunnie
c3ab5ca126 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-26 23:32:22 +08:00
bunnie
6b93cfd567 add fscb sync and pruning to the delete test bench 2023-01-26 23:31:43 +08:00
bunnie
a8a220ff99 bump release notes 2023-01-26 23:31:25 +08:00
bunnie
f6a8d678cc 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-26 22:05:03 +08:00
bunnie
31d958d41e improve debug output on PDDB 2023-01-26 18:01:28 +08:00
bunnie
c21f1069bc 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-26 17:59:52 +08:00
bunnie
705427b2c4 Merge branch 'fido21' into main 2023-01-26 04:43:27 +08:00
bunnie
f1f486e9fb fix PIN permissions; add support for autotest reset 2023-01-26 04:42:40 +08:00
bunnie
29b92b7ba4 bump lockfile 2023-01-26 02:42:45 +08:00
bunnie
9e86b6d3fd 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-26 02:42:17 +08:00
bunnie
10a64da826 allow vendor commands; get vaultbackup-rs working 2023-01-26 02:38:03 +08:00
bunnie
78866199ea 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-25 23:17:30 +08:00
bunnie
fd4e402d98 refine the heuristic for detecting keys 2023-01-25 22:41:03 +08:00
bunnie
e9ae3fe72b fix key deletion in fido2 2023-01-25 22:36:15 +08:00
bunnie
8974a86f24 add migration from old to new version
confirmed this works for U2F and FIDO2 keys

however, the PIN is reset.
2023-01-25 15:34:54 +08:00
bunnie
b7d5eca720 fix missing corner case in cache refill 2023-01-25 13:50:06 +08:00
bunnie
c083a9ca85 chore: fix typos 2023-01-25 00:55:32 +08:00
bunnie
5ce6e1b766 initial integration of fido2.1 now passing some basic tests 2023-01-25 00:55:12 +08:00
bunnie
2fb776b2a6 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-24 03:56:30 +08:00
bunnie
5b00daba0d bump release notes 2023-01-20 18:25:21 +08:00
bunnie
1786089187 bump release notes 2023-01-20 18:24:26 +08:00
bunnie
70d5490bbb Merge branch 'main' of github.com:betrusted-io/xous-core into main 2023-01-20 18:13:59 +08:00
bunnie
f542943df1 fix search criteria to match case-insensitive listing 2023-01-20 18:13:39 +08:00
bunnie
71a1dddf15 fix some more edge cases in PDDB key deletion 2023-01-20 18:07:24 +08:00
bunnie
ea913a6fb4 fix initialization order so that CI can run 2023-01-20 18:07:09 +08:00
bunnie
b7380db79d add test case for pddb delete keys 2023-01-20 18:05:36 +08:00
bunnie
a62251e563
Merge pull request #301 from betrusted-io/tmarble/issue-300
mtxcli: chat room updates asynchronously
2023-01-20 15:16:53 +08:00
Tom Marble
168b1a7f5c
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-19 21:59:50 -06:00
bunnie
20270609b9 fix cached state to match disk state in UX for edit/delete in passwords 2023-01-20 05:06:16 +08:00
bunnie
d811ef0d2e fix deletion UX in vault 2023-01-20 02:00:35 +08:00
bunnie
329569803d note that lock device also has a reboot aspect to it in the menu 2023-01-20 00:15:03 +08:00
bunnie
fb648b4e21 Merge branch 'maybe-fix-delete' into main 2023-01-19 23:53:49 +08:00
bunnie
0d65d9a7ca chore: fix another typo 2023-01-19 15:04:00 +08:00
bunnie
71294f7591 add a missing sync after key deletion 2023-01-19 14:46:25 +08:00
bunnie
8f85aefa27 chore: fix typo :P 2023-01-19 00:30:49 +08:00
bunnie
573dd55d94
Merge pull request #298 from betrusted-io/issue-287-bis
Issue 287: reduces mtxcli memory consumption
2023-01-18 19:33:02 +08:00
bunnie
3bbe868e18
Merge pull request #296 from plaurent/feat/shellchat-pddb-edit
add pddb edit (types pddb write <k> <v>)
2023-01-18 19:08:43 +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
Tom Marble
277d014f39 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-17 12:23:02 -06:00
Tom Marble
e9f21396aa 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-17 12:23:02 -06:00
Tom Marble
c213dfb745 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-17 12:23:02 -06:00
Tom Marble
a042deb462 WIP #287: Adds /heap command to mtxcli
Signed-off-by: Tom Marble <tmarble@info9.net>
2023-01-17 12:23:02 -06:00