Three locked a real owner out for an hour after a few honest retries
("Too many recovery attempts. Try again in 1 minute(s)."). The guess budget
stays negligible: 10 codes x 5 tries an hour against 10^8, and every start
mails the owner. Confirmation links share the same allowance.
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Assisted recovery (#305) confirms with a passkey or a connected CoinPay
identity, but an account that signed up by email had no way to get either:
the passkey button exists only on the sign-in page, and Sign in with CoinPay
only ever created a new account.
- Settings > Vault email recovery shows what the account has and an "Add a
passkey" button (the existing register endpoints, which already attach to
the signed-in user).
- "Connect CoinPay" (shown when CoinPay sign-in is configured) binds the
CoinPay subject to the signed-in account. An identity that already belongs
to another account is refused; an account keeps its first identity.
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Email recovery needs the recovery code from the enrollment email. People who
delete their mail lose it, and with it the only way back in.
`logicsrc vault recovery enable --assisted` (opt-in) replaces that code with a
fresh sign-in: recovery asks for the one-time code emailed at that moment and a
confirmation in the browser with a passkey of the account or its connected
CoinPay identity (bound by subject, never by email, never creating an account,
no session made).
- Server: U is kept sealed under VAULT_ESCROW_KEY in vault_recovery_assisted
(migration 015) only for accounts that ask. A step-up
(vault_recovery_stepups) is single use, lives ten minutes, names no account
and is approved only by a proof belonging to the account being recovered.
The second proof is checked before the one-time code, so a missing
confirmation never spends it. A claim without a confirmed step-up never
returns U. disable and a plain re-enroll delete the stored U.
- CLI: `passwd --email` and `vault recover --email` print the link, wait for
the confirmation, then ask for the one-time code. The re-arm keeps the mode.
- This mode is custodial: the server holds everything that opens the vault.
docs/opencreds/security.md says so; accounts that do not opt in keep the
split-key scheme unchanged.
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
logicsrc update falls back to the version number when it cannot read the
latest commit from GitHub; without a bump, machines in that state never see
#302 and #303.
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
An account has one personal vault and one keyring, plus a local copy on each
machine. `logicsrc passwd` (and `--email`) changed this machine and left the
rest to manual commands: `vault sync`, then `keyring sync --use-remote` on
every other machine.
- passwd pulls the account's vault first and pushes it after. Without the
pull, a password set on another machine since the last sync won on the next
pull ("the account's wins") and silently replaced the one just chosen. It
also lets a freshly logged-in machine with no local vault reset by email.
- `keyring sync` takes the account's keyring without a flag in the two cases
where nothing can be lost: the same keyring under a newer password, or a
newer keyring that holds every key this machine has (the old one is still
backed up). Anything else stays a question, as before.
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Email recovery reset the vault only. The SSH keyring kept its old passphrase,
so someone who had forgotten everything recovered the vault and was then
refused by `keyring restore` ("Wrong keyring passphrase").
- `logicsrc passwd --email`: opens the vault with the two emailed codes, then
puts the vault and the keyring under one new password. New vault recovery
key, email recovery re-armed, same end state as `vault recover --email`.
- Every `passwd` run stores the keyring's user key as an item in the vault
(found by a stable id, verified against a keyring entry before use), so the
vault's way back in is the keyring's too and nobody is asked a second secret.
- A keyring nothing opens is set aside (kept as keyring.bak-NNN) and started
fresh; keys whose files are still under ~/.ssh with the same fingerprint are
put back, the rest are named.
- The re-arm email after a recovery had the first-time wording ("run
logicsrc vault recover --email"), which read as an instruction to recover
again: three recoveries in five minutes on one account. It now says the
recovery is complete and there is nothing to do. The CLI says so too.
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
backup() moved sync.json away with the old keyring, so the fresh keyring
never replaced the account copy (seen live on 2026-12-02; fixed by hand with
keyring sync --use-local).
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(cli): logicsrc passwd: one password for the vault and the SSH keyring
The personal vault and the keyring each had their own password, so the
keyring prompt ("Keyring passphrase for id_ed25519") asked for a secret
nobody remembered. `logicsrc passwd` opens both (current password, or the
recovery key; it tries the vault password on the keyring first), asks for
one new password twice, and re-wraps both user keys under it. Not one item
is re-encrypted; recovery keys keep working. Nothing is written until both
stores are open.
The vault sync already follows a password change. The keyring sync compares
the wrapped key, so the account copy is replaced (the `keyring sync
--use-local` path). --reset-keyring starts a fresh keyring when its
passphrase and recovery key are both lost.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* passwd: LOGICSRC_NEW_PASSWORD, so one script asks once
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* passwd: audit the re-wrap as vault.rekey
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
c0upons CoinPay sign-in broke with `invalid_client: Invalid client_id`.
c0upons--prod's COINPAY_CLIENT_ID held the same value as COINPAY_API_KEY,
and a rotation writes every vault:key with the value's fingerprint,
whatever the key is called. The 2026-11-22 coinpay-api-key run minted a new
cp_live_ key, wrote it into COINPAY_CLIENT_ID too, and saved the rotator
state as __ROTATE__COINPAY_CLIENT_ID (targets[0] was the client id), so the
plan showed the client id as provider/coinpay/automatic from then on.
- New method `identifier`: every *_CLIENT_ID (COINPAY_CLIENT_ID,
*_OAUTH_CLIENT_ID, GOOGLE_CLIENT_ID...) gets it from the catalog, never
automatic, with the reason. A __ROTATE__ entry claiming otherwise is
ignored and reported in the plan with the command to reset it.
- rotate-keys never writes a rotated value into a client id under another
name (named in the result instead), records rotator state under the
plan's own key, and skips a client id outright.
- coinpay-api-key and coinpay-webhook-secret refuse a client id in
preflight and mint without calling CoinPay.
- rotation-set refuses random/provider/command/ssh-keygen for a client id.
- Tests for each; docs/rotation.md.
Co-authored-by: riotcoder <riotcoder@profullstack.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* vault: opt-in paid email recovery for the personal vault ($5 lifetime)
A second way back into a logicsrc personal vault when the master password and
the offline recovery key are both gone, without the server holding anything
that alone (even with the DB and server env) opens the vault.
Client (packages/opencreds): random escrow key E encrypts the user key K
(AES-256-GCM, AAD "<ns>:vault:email-escrow:v1|<createdAt>"); E is split into
S (random, to the server) and U = E XOR S (emailed once as a checksummed
Crockford recovery code, never stored). `recover --email` checks the code's
check group first, asks the server for a one-time code, claims S, recombines
E, proves K against an item, sets a new password, issues a new offline
recovery key and re-enrolls with fresh shares (warns loudly if that fails).
New `recovery status|buy|enable|disable` commands; the CLI client lives in
packages/cli/src/vault-sync.ts.
Server (apps/pwa): /api/opencreds/recovery/{checkout,enroll,start,claim} +
status/disable. S is sealed under VAULT_ESCROW_KEY (versioned for rotation,
AAD binds the user). Enrollment is pending until the email with U is sent,
else rolled back. One-time codes: 8 digits, HMAC at rest, 15 min, 5 tries,
single use, 3 starts/hour; claims are audited and announced by email.
Purchase via CoinPay checkout (purpose vault_recovery); /api/coinpay/webhook
now verifies once and dispatches by purpose, auto_rotation unchanged.
Settings card with status and a Buy button. Migration 014 in both dialects.
Docs: security.md and crypto.md "Email recovery (opt-in, paid)" sections with
the honest trade-off; cli.md command reference.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* vault email recovery: state that the mailbox alone is enough
The account password resets by email, so mailbox control = sign-in + one-time
code + the enrollment code U. Say so in security.md and stop the one-time-code
email from implying the vault stays safe if someone else reads the mailbox.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* vault email recovery: leave .env.example as on master
Touching it made the credential gate re-scan the existing SESSION_SECRET
placeholder (false positive). VAULT_ESCROW_KEY / _VERSION / VAULT_RECOVERY_PRICE_USD
are documented in docs/opencreds/security.md and crypto.md; prod values live in
vault app-logicsrc-com--prod.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
0.19.0 settles a payment proof (PAYMENT-SIGNATURE / X-PAYMENT) wherever it
arrives, so a buyer offered a 402 by the site's own throttle or the
mass-scrape gate gets a pass after paying instead of another 402.
0.20.0 answers a forged referrer (Sec-Fetch-Site: none with an own-origin
Referer) with the 402 offer and reports it to CrawlProof as
bot:forged_referer. Both drop-in.
Co-authored-by: riotcoder <riotcoder@profullstack.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Remove vu1nz (not a Profullstack product)
Drops the vu1nz service mark from the hosted OpenIcon set (svg, png,
webp in every style) and syncs openicon.json with profullstack/openicon.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Sync openicon.json without the vu1nz entry
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The credentials app answered 404 for both. robots.txt and sitemap.xml now come
from the request host, list only the sign-in and sign-up pages, and disallow the
session-only areas.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
logicsrc.com (Next), app.logicsrc.com (pwa) and the rotation CLI now send a
descriptive User-Agent on every server-side CoinPay request, so CoinPay's
logs and throttle can tell them apart from the other apps on dev2:
- logicsrc.com: logicsrc.com/<version> (+https://logicsrc.com) on merchant
eligibility, checkout sessions, OAuth token and userinfo; x402-gateway
^0.18.2 names the site on crawl-gateway calls.
- app.logicsrc.com: app.logicsrc.com/<version> on the CoinPay OAuth calls and,
through coinpay-onboard 0.3.1's fetch hook, on the auto-rotation client.
- logicsrc CLI rotators: logicsrc-cli/<version> (+https://logicsrc.com).
Co-authored-by: riotcoder <riotcoder@profullstack.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
coinpaySession() POSTed /api/auth/login from every preflight and mint of
the CoinPay API key and webhook secret rotators. A run over ~220 CoinPay
keys fired hundreds of logins from one address; coinpayportal limits
sign-in to 10/min, so all but the first few preflights failed and were
reported as "needs a CoinPay merchant session" even with correct
credentials.
- Memoize the session per base URL + email for the whole run (concurrent
callers share one in-flight login; failures are cached too so a bad or
throttled login is not retried per key).
- A 401 on a session call logs in again once and retries (not for
COINPAY_ROTATE_TOKEN).
- Login failures name the cause: 401 wrong credentials, 429 rate limited,
402 paywall throttle, otherwise status + short body. No secrets printed.
Co-authored-by: riotcoder <riotcoder@profullstack.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Identity block gains structured Languages (names or BCP-47 tags,
most-used first, optional level) plus self-described Accent and
Dialect: shown as written, never inferred, never used to rank or
refuse a person. The Voice section gains Dialect, which shapes the
words as well as the sound; the identity accent/dialect never become
a synthetic voice unless written under Voice.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A device is called many things (seed2 = vienna = devchovy), and an inventory
that cannot say how to connect makes every agent rediscover user/port/key.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
0.18.0 carried an unpublished 0.17 default giving declared training crawlers
100 free requests a minute; 0.18.1 makes it opt-in. throttle 0.4.2 drops its
nested gateway copy.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Gateway 0.18 massScrape (on by default): past 60 anonymous page loads a minute
site-wide, every anonymous page load is answered 402 with the x402 offer for
30 minutes; one address past 120 an hour pays too. Runs before exempt (a
present-but-unverified session cookie no longer passes); passes, Power Keys,
verified authenticate, welcome crawlers, /, sign-in and app paths still read.
Refusals are reported to CrawlProof as bot:swarm.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* App grants: hand one secret to an external app, sealed to its per-user inbox
Phase 1 of the CoinPay <-> logicsrc key hub (spec: claude.ai/artifact/LAZgAiqWqeLQ14uJ5JpdKb).
- /grant consent page: logicsrc fetches the request manifest from the app's
own origin over TLS (/.well-known/logicsrc-grant/<nonce>), public hosts
only, so the page shows a verified origin, not a claimed name
- The browser decrypts with the identity key (as the vault page does) and
seals with @profullstack/sealed-secrets to the app's inbox; the server
stores ciphertext + metadata only (app_grant_requests, app_grants)
- Signed Standard Webhooks to the app: grant.delivered / updated / revoked
- Signing keys (wallet, seed, SSH) are refused for apps
- rotate-keys re-seals the new value to every app grant on the old
fingerprint (resealAppGrants); /apps lists and revokes grants
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* App grants: re-check the webhook host is public on every delivery
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The 28 retired apps now live at <name>.pwa.pit.world and the old domains
only 308 until they lapse. Links, hosts, webring/footer params and
supabase.<d> URLs move to the pwa hosts. Emails, GitHub/npm paths, brand
text and old nginx server_name files are left alone.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
0.5.0 routes scoreQuality through @profullstack/ai-providers: c0mpute
first, paid providers only when a key is set. The Anthropic key this
gate used is out of credit, so it was failing open on every post.
Co-authored-by: riotcoder <riotcoder@profullstack.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
The checkout, webhook settle, return check and expiry/renewal sweep from #272
move into the new @profullstack/key-rotation package (0.1.0) so other fleet
apps can sell the same add-on. lib/auto-rotation.mjs keeps its exports and
binds the package to credshare_teams, owners/admins, the audit log and the
app.logicsrc.com CoinPay business. No schema or behaviour change.
Co-authored-by: Anthony Ettinger <anthony@profullstack.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- Rotation page button + POST /api/credshare/teams/:slug/rotation/auto/checkout
open a CoinPay hosted checkout (owner/admin only).
- POST /api/coinpay/webhook and the page's return check settle once per checkout
session (rotation_payments); paying again extends from the current end.
- Hourly sweep: renewal email 3 days before, switch off when the days run out.
A team switched on by hand (paid_until NULL) never expires.
- Migration 012 (both dialects), CSP form-action allows coinpayportal.com.
Co-authored-by: Anthony Ettinger <anthony@profullstack.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
libsql-pg's convertDdl turns an inline '-- comment' inside CREATE TABLE into
a column named "--" (Postgres: column "--" specified more than once), which
crash-looped app.logicsrc.com on boot after #269. Comments move above the
statement, without semicolons (the migrator splits on them).
Co-authored-by: Anthony Ettinger <anthony@profullstack.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Every automatic secret older than the team's max age (90 days default) is
queued as one run in awaiting-approval. An owner/admin approves it on the
Rotation page or with `teams rotation-approve`; machine keys can queue but
never approve. logicsrc-rotate --queue (*/5 cron) runs approved runs with
propagate + health checks + rollback. rotation_auto_approve per team is the
paid automatic rotation add-on (off by default).
Co-authored-by: Anthony Ettinger <anthony@profullstack.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- method "desktop": dashboard-only keys (OpenAI, ElevenLabs, Brave Search,
Civitai, Cloudflare Global API Key roll, Anthropic/Claude OAuth report-only)
rotated by an agent on a W3BS Agentic Desktop Layer host (--desktop /
LOGICSRC_DESKTOP_HOST). Agent browser only, old key by its last 4 chars,
DOM-to-file capture (wl-paste fallback), two-phase revoke after health,
rollback deletes the new key, remote file shredded. needs-login and busy
are waits, not failures. Roll needs --allow-roll plus a capture self-test.
- app.logicsrc.com: /teams/:slug/rotation plan page + rotation run queue
(migration 010), API routes; runner: rotate-keys --from-queue.
- MCP: rotation_plan, rotation_set, rotate_keys (dry run default), rotation_runs.
- docs/rotation.md: desktop rotators and every surface.
Co-authored-by: Anthony Ettinger <anthony@profullstack.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Additive: curated exploits linked from exploitation.public, unvetted PoC
claims that never raise status, CISA SSVC as exploitation.ssvc and mapped
onto status (active=exploited, poc=poc-public, none=none-known), and
detection templates in exploitation.scanners.
Co-authored-by: Anthony Ettinger <anthony@profullstack.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(keyring): revocable share link for SSH public keys (/k/<token>.json|.keys)
Migration 009_keyring_shares (one per user, sha256(token) only). POST/GET/DELETE
/api/keyring/share for a person key or a browser session (CSRF header on
writes; machine keys 403). Public /k/<lks_ token>.json and .keys expose only
ssh-* public halves with ssh-keygen fingerprints computed from the key, CORS *,
public max-age=60, 404 when unknown or revoked, per-IP rate limit. /keyring
gets a Share public keys box (create, copy, rotate, revoke); docs updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(keyring-share): assemble the private-key fixture at runtime (ThreatCrush)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Anthony Ettinger <anthony@profullstack.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* OpenVuln 0.1: one OSV-valid record per vulnerability with KEV, EPSS, AI-exploit evidence and per-fact sources
Every OpenVuln record is a valid OSV record; additions live in
database_specific.openvuln: subject (package/agent/service/campaign...),
class, label, fix, exploitation (kev, epss, ai benchmarks), sources,
deep_dive with AI disclosure fields. Publisher index at
/.well-known/openvuln.json. First directory: nichedb.dev/c/vulns.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* OpenVuln: changes points at the feed's JSON (/f/openvuln-records.json)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Anthony Ettinger <anthony@profullstack.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- Catalog covers every key in the team plan (unknown 275 -> 0): new methods
`provider` and `not-secret`, plus family/owner/never/disruptive on every
spec. Wallets, treasury, Lightning, exchanges, Stripe, npm, GitHub App keys,
signing identities and the personal vault are `never` and owner-only; an
__ROTATE__ entry cannot make them automatic.
- Two-phase provider rotators (rotators.ts): resend, cloudflare-token,
coinpay-api-key, coinpay-webhook-secret, vapid, postgres-role (SCRAM
verifier over stdin, refuses self-hosted Supabase).
- rotate-keys --propagate [root]: finds consumer env files by value, backs
up (.bak-rotate-<date>, 600), rewrites, restarts with the site's deploy.env
through deploy-gate 3 at a time, health-checks local + public URL, revokes
the old credential only after; any failure restores vaults, files and the
provider. --scheduled, --max, --max-sites, --exclude-site, --report.
- scripts/logicsrc-rotate: weekly job, dry run unless LOGICSRC_ROTATE_LIVE=1,
mails rotated / skipped / manual-by-owner report (never values).
- docs/rotation.md (logicsrc.com/docs/rotation) + docs/ROTATION.md pointer,
including the wallets and signing keys section.
Co-authored-by: Anthony Ettinger <anthony@profullstack.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* security: keep signing keys out of deployable team vaults (CLI 0.13.0)
After the 2026-10-27 dev2 incident, root on the box drained every wallet
whose key sat in an app.env, and deploys write app.env from team vaults.
Wallet keys, seed phrases, hsm secrets and SSH/deploy keys now stay out of
that path:
- server: a machine (deploy) key never receives a signing key from
GET /vaults/:id/secrets (listed as `withheld`, audited as
secrets:withheld:signing) and cannot write or delete one (403
signing_key_machine_write). People still see them, so they can move them.
- CLI `teams push` refuses a .env holding signing keys, by name or by value
shape (PEM private key, 0x-hex, Solana base58/byte array, mnemonic), unless
--allow-signing-keys.
- CLI `teams pull` withholds signing keys by default; --include-signing-keys
needs a person at a terminal, so deploy-app.sh's fallback to the logged-in
account withholds them too.
- One name rule in packages/opencreds/src/signing-keys.ts, mirrored in
apps/pwa/src/lib/signing-keys.mjs, both held to one fixture file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix: bound the wallet-name regex, build PEM fixtures at runtime
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Anthony Ettinger <anthony@profullstack.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
`logicsrc keyring` (alias `kr`; `keys` is API keys): add/gen/list/show/restore/
rm/export --pub/sync/status. A keyring is an OpenCreds user-profile vault (same
PBKDF2-600k + HKDF + AES-256-GCM scheme as `logicsrc vault`, recovery key);
each private key is an OpenCreds `key` item envelope, public halves stay
readable. Works fully local under ~/.config/logicsrc/keyring; `keyring sync`
pushes ciphertext to the account. restore writes the default file name,
600/644, refuses a different existing key without --force and backs it up
first; private keys are printed only with --print-private.
- apps/pwa: /api/keyring (person Bearer key; session read-only; machine keys
refused), additive migration 008_keyring, server refuses any upload that
carries plaintext private key material (incl. base64'd PEM "ciphertext");
/keyring page lists public halves and decrypts in the browser (WebCrypto,
same derivation) for download.
- logicsrc-mcp: list/show/export_authorized_keys/add (sealed only)/remove/
restore instructions; never returns a private key.
- docs/keyring.md served at /docs/keyring.
- Tests: crypto round trip, ssh-keygen fingerprint parity, AAD binding,
restore perms + overwrite guard + backup, two-machine sync, server stores
ciphertext only, browser decrypt opens CLI-sealed envelopes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>