45 Commits

Author SHA1 Message Date
mnovak 553f13b265 [vault] Licences: the domi-licence key, the strict payload parser, the licence grant (0.21.0)
The key that signs Domi licences and revocation lists (Fundamentum docs/LICENCE.md, licence v1): Ed25519 under
the reserved id domi-licence, no scope, refused by every other signing path, signing plain Ed25519 over the exact
payload. The payload is parsed first, as the spec's strict parser does (section 2.4 steps 1-4 and 7, section 4.1),
and a malformed one is refused with the spec's code and no card. The licence grant (Mark's click) signs a licence
from licence-issue whose apps are on the allowlist, within 50 a day, without a card; anything else that is well
formed asks on a card, a revocation list always. Refused outright: a licence dated more than a day from this clock,
a licence id signed before (replay), a seq not above the highest signed (rollback), any other caller. The grant and
the log live in signing.licence, which older cores ignore; the key is an ordinary Ed25519 entry every core reads.

Not compiled or tested yet: the PC is over Mark's 90 % rule.
2026-11-28 21:47:14 +01:00
mnovak 0eee7632ae [vault] Signing: a key the Android grant makes is standing-granted, a value older cores read; v0.19.1
0.19.0 wrote a new security action, android-key-made, which every older core refuses. The phone app and the
web vault open the same vault with their own pinned core, so a vault in which the grant made a key would stop
opening there. The key's creation is now standing-granted with 'Android grant made <id> for <repo> pipeline
release'; the grant itself is a member older cores ignore.
2026-11-21 09:06:35 +01:00
mnovak e533a38883 [vault] Signing: the Android grant, one answer for every Domi app's release APK and its key on first use; v0.19.0
signing.android: patterns owner/name or owner/*, the certificate's O and C, uses, last used and the keys it
made. A request fits when it is an apk from this PC's pipe with a run, pipeline release, a covered repository,
and that repository's own app key (<name>-android, scoped to exactly it and release, role release), while
card-signing is not ticked; a key's first signature fits. android_grant_make_key makes that key for a covered
repository (android-key-made in the security audit). Granting and revoking write standing-granted and
standing-revoked. A vault whose grant made a key needs core 0.19.0; older cores drop the grant itself.
2026-11-21 08:57:48 +01:00
mnovak 98d56f4673 [team] Review fixes: a deployment ticket and a MAC on target.request, an unknown author is unsatisfiable under others, a signed request cannot be refused afterwards; TEAM.md limits; v0.18.1 2026-11-17 12:44:54 +01:00
mnovak 3bb05bf6f1 [team] Team vaults: rustfmt on the files this change touches 2026-11-17 12:15:18 +01:00
mnovak e3ede760bd [team] Team vaults: member keys, member slots (kind 6), policies per environment, the canonical sign.request, approval statements, policy proofs; cosign and Tauri updater envelopes; v0.18.0 2026-11-17 11:38:41 +01:00
mnovak f84ac575bd [sign] Approval: a deploy approval may expire up to 25 hours ahead (was an hour), so a release's day-long card can still be signed; v0.17.1 2026-11-14 17:12:20 +01:00
mnovak 2b4a78644b [vault] The recovery key is printed as 8 groups of 8 2026-11-12 23:09:02 +01:00
mnovak 8d5d08afcb [vault] The recovery key: one per two-factor vault, returned once, taken only by Vault::recover, which replaces every factor and the key (slot kind 5, three audit actions); v0.17.0 2026-11-12 13:24:00 +01:00
mnovak 2c2d56b856 [vault] Standing approvals: a rule's use count saturates instead of overflowing (a stored count at its end made the next standing signature panic in debug builds); v0.16.1 2026-11-11 16:19:35 +01:00
mnovak 2d04f32f57 [vault] Standing approvals: a rule Mark grants from a card (repository, key, kind, pipeline, origin; an approval's targets), signed without asking as outcome standing, counted, revocable, paused by card-signing; never a key's first signature or a mailbox release signature; v0.16.0 2026-11-11 16:02:14 +01:00
mnovak 4e8fb6a8f5 [browser] Autofill for Edge and Chrome: custos-browser (which login fits which page, native messaging frames), custos-native (the host), the MV3 extension 2026-11-09 08:54:08 +01:00
mnovak 6f4075f7e3 [vault] Android: an Android key never counts as the release or test set (signing_create, signing_add_approve); v0.14.1 2026-11-08 00:56:18 +01:00
mnovak 045f1f5d00 [vault] Android: the android key kind (RSA-4096, self-signed, 100 years) and the apk sign kind (1-4 SHA-512 digests, PKCS#1 v1.5), never unattended; v0.14.0 2026-11-08 00:27:47 +01:00
mnovak 68a1f1344d [vault] Hands off: take_over a machine-key vault, the no-auto-connect, no-unattended and card-signing items, notes with a detail, the unattended rules; v0.13.0 2026-11-05 11:01:35 +01:00
mnovak 7f90f952f0 [vault] Security: the security body member (Setup window, checklist, kept scope, append-only audit of 5 000; level and card rules); docs/FORMAT.md with the values older cores refuse 2026-11-04 20:55:47 +01:00
mnovak 12a5ba31d8 [vault] Provision: display offers (store display, outcome confirmed; display stores nothing, confirmed only for a display offer) 2026-11-04 20:55:46 +01:00
mnovak 8a10c695c5 [vault] Approval: sign kind approval only by domi-approve (made with the release keys, signing_add_approve for older vaults), run on requests and in the audit, context version, signing_check_at; docs/SIGNING.md 2026-11-04 20:50:49 +01:00
mnovak 6739423f4d [sign] Approval: canonical deploy approvals (parse, rewrite, byte-compare; run, names, commit, targets, expiry within an hour) signed as prehashed minisign approval-<run>.json 2026-11-04 20:45:08 +01:00
mnovak 37634f0d26 [vault] Provision: the provision audit body member (checked entries, no value member, append-only, newest 5 000; docs/FORMAT.md) 2026-11-04 14:00:28 +01:00
mnovak 76a94b0d11 [seal] Recipient: a kept key (from_secret refuses a known key, secret_bytes for DPAPI storage), Debug redacted; docs/SEAL.md 2026-11-04 13:55:47 +01:00
mnovak 92ab8a0d63 [vault] Identity: restore from the 24 words, revocation signing for revoked keys only, the backup secret (docs/IDENTITY.md; v0.10.0) 2026-11-04 09:21:11 +01:00
mnovak 510d5eecd1 [repo] Undo cargo fmt churn in files this branch does not change; CLAUDE.md: the trap 2026-11-04 00:27:37 +01:00
mnovak 06410ab3be [vault] Signing: the signing body member (release and test key sets, scope, sign-only API, append-only audit log); custos-sign draws from SysRng; the wasm build links getrandom 0.2 to the browser CSPRNG 2026-11-04 00:26:11 +01:00
mnovak cd2963392d [vault] Signing: mandatory tests for scope, refusals and the audit log through a reopen 2026-11-04 00:26:11 +01:00
mnovak 59fdfa26ef [sign] custos-sign: minisign (prehashed), SHA256SUMS, Authenticode digests, the household CA; tools/signing/interop.ps1 2026-11-04 00:15:33 +01:00
mnovak 6c6ffd33c0 [sign] Tests: known answers from the real minisign 0.12 and openssl, the household CA, canonical manifests 2026-11-04 00:15:33 +01:00
mnovak c011463fe5 [kdbx] custos-kdbx: KDBX 3.1/4 reader, KDBX 4 writer, item mapping, KeePassXC test vectors and interop check; v0.8.0 2026-11-03 20:59:40 +01:00
mnovak 12fd17245b [vault] Items: optional folder and attachments (SecretBytes), for KeePass groups and files 2026-11-03 20:59:39 +01:00
mnovak 6c696ba3a6 [wasm] Domi pairing: seal a phone's device key and label to the waiting PC; v0.7.0 2026-11-03 18:54:09 +01:00
mnovak 1c4bf4b373 [vault] Identity: the Domi root key in the vault, mnemonic typestate, signs only certs 2026-11-03 18:52:10 +01:00
mnovak 680b66cff7 [vault] Identity: docs/IDENTITY.md and the mandatory tests, before the code 2026-11-03 18:52:01 +01:00
mnovak e365f21d54 [wasm] Two factors in the browser: open_with (sealed answers, passkey PRF), phone pairing and approvals; factors added apart never pair; sender code; v0.6.0 2026-11-03 12:07:59 +01:00
mnovak 7a7a628fa5 [seal] Sealed boxes and key import: custos-seal (X25519 + XChaCha20-Poly1305, match code, at-rest sealing), custos_keys::import, Vault::factor_ids; v0.5.0 2026-11-02 18:05:00 +01:00
mnovak 3f3cd26590 [keys] Key pairs and API keys: custos-keys (Ed25519, ECDSA P-256, RSA), secret_key, api_key; threat model; v0.4.0 2026-11-02 15:49:07 +01:00
mnovak 12783c9b92 [docs] Keys: secret keys, API keys, key pairs; tests first 2026-11-02 15:46:44 +01:00
mnovak 02c6795f53 [vault] Format v2: factor, pair and single slots; open_with any two factors; upgrade from v1; key-pair item type 2026-11-02 15:45:55 +01:00
mnovak df6565941e [vault] Tests: any two factors, never one; factors added and removed alone; v1 upgrade; tamper; machine store 2026-11-02 15:45:54 +01:00
mnovak 5ee1c0da6b [share] Share links and the browser build: custos-share (blob v1, key in the fragment, optional password), custos-wasm (JSON ABI, no wasm-bindgen), docs/SHARE.md, threat model (v0.3.0) 2026-10-31 18:20:51 +01:00
mnovak faa5d8dfc9 [gen] Real words: memorable passwords from EFF words a US English dictionary knows; strict-site symbols ASCII only (v0.2.1) 2026-10-31 13:54:44 +01:00
mnovak 0b9cce40e2 [core] TOTP, QR payloads, device key wrap: custos-totp, custos-qr, Vault::wrap_for_device (v0.2.0) 2026-10-31 10:44:24 +01:00
mnovak fe90e7691b [core] Tests: RFC 6238/4226 vectors, otpauth parsing, Wi-Fi escaping, device key wrap 2026-10-31 10:44:24 +01:00
mnovak fba6e5492a [gen] Nickname: draw word and number once, render them for any title (NicknameParts) 2026-10-31 10:23:53 +01:00
mnovak eb710c3135 [core] Vault and generators: Argon2id key slot + XChaCha20-Poly1305 file, atomic save, item templates, memorable/nickname/random/PIN/strict generators 2026-10-31 10:12:57 +01:00
mnovak 42ddcf0287 [core] Tests: the mandatory vault and generator tests, written before the code 2026-10-31 10:12:56 +01:00