Commit graph

4196 commits

Author SHA1 Message Date
Nickolai Zeldovich
6e1e2acd28 minor cleanup 2022-08-31 15:33:27 -04:00
Nickolai Zeldovich
b604b746e9 format conversion for importing Google Authenticator TOTP 2022-08-31 14:38:06 -04:00
bunnie
8969485ccc fix errors that came when turning off the tls feature 2022-08-25 16:08:53 +08:00
bunnie
f5f4498b25 remove tls from default config 2022-08-25 15:27:30 +08:00
bunnie
3de588ccef revise the ws test to use a more reliable server 2022-08-25 15:26:33 +08:00
bunnie
ad155358f3 remove tls from the main config -- don't need to test that anymore in CI 2022-08-25 05:22:59 +08:00
bunnie
16f7c5b234 fix URL to a working server 2022-08-25 05:22:43 +08:00
bunnie
28434f0873 clean up a warning for now
need to find..a service...to connect to. or something like
that. maybe we just have to start a websocket server somewhere
for testing.
2022-08-25 05:06:15 +08:00
bunnie
ea55d23e67 some initial websocket mucking about 2022-08-25 05:04:37 +08:00
bunnie
63347f5fbe update to latest ring-xous 2022-08-24 03:11:38 +08:00
bunnie
c1f1548830 update to the latest ring-xous 2022-08-23 01:39:54 +08:00
bunnie
a6972436bf fixups to fix linux builds 2022-08-21 16:30:37 +08:00
bunnie
9c1f550f55 scope ring patches tighter; exclude xtask from workspace config
try not to have xtask be affected by the ring patches...
2022-08-20 08:12:45 +08:00
bunnie
7e6e04cce1 run xtask as release mode 2022-08-20 08:12:37 +08:00
bunnie
8e27d0db87 try to fix ring dependencies 2022-08-20 01:50:48 +08:00
bunnie
8eda1e59c4 check in a version with TLS on by default to push CI 2022-08-20 00:59:46 +08:00
bunnie
cda17e5070 add a note about TLS 2022-08-20 00:54:06 +08:00
bunnie
25d1d0144a cleanup hosted mode build and carve TLS target out 2022-08-20 00:47:28 +08:00
bunnie
950b0e909a configure out TLS by default 2022-08-20 00:38:50 +08:00
bunnie
59a3bc0370 cleanup patches 2022-08-20 00:38:21 +08:00
bunnie
a5aee2b0d5 patches for debug 2022-08-16 17:54:36 +08:00
bunnie
9a4933b648 Merge branch 'main' into rustls-exp2 2022-08-16 15:13:56 +08:00
bunnie
ca3cc711a4 Re-add usb_update.py, but with modified help to guide users
It's a bit confusing to run the wrong tool but hopefully there
are ample help messages sprinkled in this to guide the average
user to the right location.
2022-08-16 13:57:36 +08:00
bunnie
1ff85cab41 add note about host readout to the README.md 2022-08-14 00:21:53 +08:00
bunnie
a9e9592094 improve error messaging when host readout is not enabled 2022-08-14 00:20:46 +08:00
bunnie
fca4848061 Merge branch 'main' of github.com:betrusted-io/xous-core into main 2022-08-14 00:02:04 +08:00
bunnie
396fbb964d update readme 2022-08-14 00:01:53 +08:00
bunnie
eb2fda3c6c
Merge pull request #213 from gsora/feat/vault-bitwarden-import
feat(vault): support Bitwarden export formatting for Vault
2022-08-14 00:01:07 +08:00
bunnie
7aaef3f2ee update release notes 2022-08-14 00:00:37 +08:00
bunnie
e7576ebb42 reduce debug level on vault 2022-08-13 23:55:40 +08:00
bunnie
8570449b04 make vendor backup locked out by default; hook to UX enable dialog box
also halts updates of the TOTP timer bar while this is happening
to avoid overflowing the server queue with unanswered redraw
requests
2022-08-13 23:54:36 +08:00
Gianguido Sorà
5acb0af82b feat(vault): support Bitwarden export formatting for Vault
Allows folks with Bitwarden data to (mostly) import it in Vault, both
passwords and TOTPs.
2022-08-13 17:40:25 +02:00
Gianguido Sorà
1defdff915 chore(vault): add serde_repr for vaultbackup-rs 2022-08-13 17:40:02 +02:00
Gianguido Sorà
9a219d8aba chore(vault): add default for PasswordEntries 2022-08-13 17:39:37 +02:00
bunnie
56172e37a9 shift vendor command space to 0x70 range
this avoids conflicts with OpenSK and open-ssh's handling
of their vendor commands.
2022-08-13 22:25:07 +08:00
bunnie
68902600c2
Merge pull request #212 from gsora/fix/payloadtype-oob-read
fix(vault): don't panic when reading backup::PayloadType off an empty vec
2022-08-13 22:23:07 +08:00
Gianguido Sorà
dca1ec86de fix(vault): don't panic when reading backup::PayloadType off an empty
vec
2022-08-13 16:01:51 +02:00
bunnie
9e0b63c871 make the "hash" arguments match the display UX values
that way any entries that would show up "exactly" as the same
description would flag as conflicts on re-upload
2022-08-13 21:46:06 +08:00
bunnie
7ec39e4be6 strip out the random-guid code 2022-08-13 21:37:56 +08:00
bunnie
697c5fbdf3
Merge pull request #205 from gsora/feat/vault-usb-totp-loading
feat(vault): USB backup/restore

thanks for all the hard work on this! I'm excited for it.
2022-08-13 21:25:15 +08:00
bunnie
a05ab47d10 add some test code to exercise TLS to break the linking 2022-08-13 21:23:35 +08:00
Gianguido Sorà
cd42cf6395 fix(vault): storage for totp and passwords derive pddb key from their
unique content

Instead of generating a unique GUID every time a new record gets
created, hash known unique content for every entry and use that as key.

The StorageContent trait now has a hash() method that returns a Vec
containing the SHA-256 hash of the object's unique content.

Hashing is done by re-using the same calls that ctap uses.

This allows dupes detection when restoring a backup, allowing us to
employ a "never overwrite" policy: Precursor is the main source of truth
for such data.
2022-08-13 13:29:42 +02:00
bunnie
a8f2c99b6c Merge branch 'main' into rustls-exp2 2022-08-13 02:01:21 +08:00
Gianguido Sorà
cdfae27afc feat(vault): implement basics of dupe detection
Still needs a way to deterministically generate a key for each entry.

Idea: a `hash() -> String` method on StorageContent so that new_record
can call it, store said object with the newly-generated key.

Since this is a deterministic operation, restoring a backup with dupes
would not overwrite what's present in PDDB already.
2022-08-12 18:47:38 +02:00
Gianguido Sorà
473e1cf77b chore(vault): address warnings 2022-08-12 17:37:51 +02:00
bunnie
f70dc246b8 fix hosted mode 2022-08-12 23:26:43 +08:00
bunnie
ef62dbf307 update release notes 2022-08-12 23:22:48 +08:00
Gianguido Sorà
51b04fe14e Merge branch 'main' into feat/vault-usb-totp-loading 2022-08-12 17:16:30 +02:00
bunnie
4ae3308fbe add PIN change to the PDDB 2022-08-12 23:10:18 +08:00
bunnie
7aca2d64b3 lower debug level 2022-08-12 23:09:06 +08:00