logicsrc/packages/opencreds/src
sh1pt-actions-fleet[bot] b5f875837a
Some checks are pending
CI / build (push) Waiting to run
Deploy to dev2 / deploy (push) Waiting to run
test / test (push) Waiting to run
security: keep signing keys out of deployable team vaults (CLI 0.13.0) (#264)
* 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>
2026-10-28 19:31:28 +00:00
..
audit.ts Add the LogicSRC OpenCreds specification (#140) 2026-08-29 04:11:38 -07:00
bitwarden.test.ts Keep what the Bitwarden export actually says (#206) 2026-09-24 04:06:47 -07:00
bitwarden.ts Keep what the Bitwarden export actually says (#206) 2026-09-24 04:06:47 -07:00
categories.test.ts vault + teams: filter secrets by category, export to CSV, simpler help (#195) 2026-09-23 21:08:08 -07:00
categories.ts vault + teams: filter secrets by category, export to CSV, simpler help (#195) 2026-09-23 21:08:08 -07:00
cli.test.ts fix(install): build with Bun, installing it when missing (#231) 2026-10-05 23:26:03 -07:00
cli.ts Add the LogicSRC OpenCreds specification (#140) 2026-08-29 04:11:38 -07:00
commands.ts vault: autosync the personal vault to the logicsrc account (#226) 2026-10-04 03:45:25 -07:00
conformance.test.ts Add the LogicSRC OpenCreds specification (#140) 2026-08-29 04:11:38 -07:00
conformance.ts Add the LogicSRC OpenCreds specification (#140) 2026-08-29 04:11:38 -07:00
crypto.test.ts Add the LogicSRC OpenCreds specification (#140) 2026-08-29 04:11:38 -07:00
database.test.ts Add the LogicSRC OpenCreds specification (#140) 2026-08-29 04:11:38 -07:00
database.ts Add the LogicSRC OpenCreds specification (#140) 2026-08-29 04:11:38 -07:00
import-router.test.ts Import from any password manager, and let a person say which (#207) 2026-09-24 04:22:35 -07:00
import-router.ts Import from any password manager, and let a person say which (#207) 2026-09-24 04:22:35 -07:00
importers.test.ts Add the LogicSRC OpenCreds specification (#140) 2026-08-29 04:11:38 -07:00
importers.ts Import from any password manager, and let a person say which (#207) 2026-09-24 04:22:35 -07:00
index.ts security: keep signing keys out of deployable team vaults (CLI 0.13.0) (#264) 2026-10-28 19:31:28 +00:00
items.test.ts Add the LogicSRC OpenCreds specification (#140) 2026-08-29 04:11:38 -07:00
items.ts Add the LogicSRC OpenCreds specification (#140) 2026-08-29 04:11:38 -07:00
kdf.ts Add the LogicSRC OpenCreds specification (#140) 2026-08-29 04:11:38 -07:00
onepassword.ts Import from any password manager, and let a person say which (#207) 2026-09-24 04:22:35 -07:00
primitives.ts Add the LogicSRC OpenCreds specification (#140) 2026-08-29 04:11:38 -07:00
prompt.ts vault + teams: filter secrets by category, export to CSV, simpler help (#195) 2026-09-23 21:08:08 -07:00
session.ts Add the LogicSRC OpenCreds specification (#140) 2026-08-29 04:11:38 -07:00
signing-keys.fixtures.json security: keep signing keys out of deployable team vaults (CLI 0.13.0) (#264) 2026-10-28 19:31:28 +00:00
signing-keys.test.ts security: keep signing keys out of deployable team vaults (CLI 0.13.0) (#264) 2026-10-28 19:31:28 +00:00
signing-keys.ts security: keep signing keys out of deployable team vaults (CLI 0.13.0) (#264) 2026-10-28 19:31:28 +00:00
store.ts vault: autosync the personal vault to the logicsrc account (#226) 2026-10-04 03:45:25 -07:00
sync.test.ts vault: autosync the personal vault to the logicsrc account (#226) 2026-10-04 03:45:25 -07:00
sync.ts vault: autosync the personal vault to the logicsrc account (#226) 2026-10-04 03:45:25 -07:00
types.ts Add the LogicSRC OpenCreds specification (#140) 2026-08-29 04:11:38 -07:00
validate.test.ts Add the LogicSRC OpenCreds specification (#140) 2026-08-29 04:11:38 -07:00
validate.ts Add the LogicSRC OpenCreds specification (#140) 2026-08-29 04:11:38 -07:00
vault-key.ts Add the LogicSRC OpenCreds specification (#140) 2026-08-29 04:11:38 -07:00
zip.ts Import from any password manager, and let a person say which (#207) 2026-09-24 04:22:35 -07:00