8000 GitHub - jatindotdev/keys: Keys: a web vault for developer credentials (keys.jatinkumar.dev) · GitHub
[go: up one dir, main page]

Skip to content
jatindotdevPublic

About

Keys: a web vault for developer credentials (keys.jatinkumar.dev)

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

87 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Keys app icon

Keys: Credential vault for developers

A vault that knows what a .p8 is.

Drop in a .p8, a keystore or a .env file. Keys knows what it is, when it expires and which env var it goes in.
End-to-end encrypted, on your own Cloudflare account.

License: MIT

Deploy to Cloudflare

Self-host  ·  CLI  ·  Security  ·  FAQ

Keys with the Tidepool upload keystore open: the sidebar with Expiring soon at 3 and the Tidepool, Lantern and Infra tags, a list of 13 demo credentials, and the keystore with its upload.jks file, hidden store and key passwords, and Expires Dec 24, 2026, read from the certificate.

A demo vault. Click to see it full size.


Keys is a personal project, shared as is. Use it at your own risk. No support is promised.

What it understands

  • Kinds: 23 of them, from API tokens and logins to Apple .p8 keys, Android keystores, SSH and GPG keys, TLS certificates and service accounts. Each gets the right fields.
  • Providers: 54, from Stripe to Cloudflare. Keys knows their usual env var names and where to rotate most keys.
  • Expiry: read from certificates, keystores, SSH certificates, GPG keys and JWTs. Expiring soon lists what runs out in the next 30 days by default.
  • Env names: each value knows its variable. Copy a .env for a tag and environment, or run a command with them set.
  • Import: drop files or a folder. Keys works out what each one is, in your browser.

Import with two files dropped: harbor.env, read as a .env file with 4 variables, and AuthKey_4MDEMO2468.p8, read as an Apple key with its key ID taken from the file name, asking what the key is for. The command palette over the vault, searching stripe: Stripe secret key and Stripe webhook secret, both Production in Lantern, with a copy button on the first.

Import reads what each file is. ⌘K finds anything.

A folder named Harbor is dropped on the Import page. Keys reads three files: an Apple key, a TLS certificate that expires Feb 3, 2027, and a .env file with 4 variables, all set to a new Harbor tag. The Apple key is marked as an App Store Connect key and all three are imported. The Harbor tag then lists them, and the certificate opens with its expiry read from the file.

Drop a folder. Keys sorts it, tags it and reads the expiry.

Security model

  • Your browser encrypts everything with age before it leaves. The Worker and R2 only ever hold ciphertext.
  • Unlock with a passkey, or with the recovery key you save when you set up. The Mac CLI unlocks with Touch ID through the Secure Enclave.
  • Every save is a new object. Nothing is overwritten, so history and undo keep working and two saves at once can't lose data.
  • Cloudflare Access sits in front, so nobody else reaches the app at all.
  • No third-party requests. Fonts and icons are bundled, and the CSP allows only your own domain.
  • You trust the code your Worker serves. Anyone who can change your Worker, your GitHub repo or your Cloudflare account could read your vault the next time you unlock.
  • It can't protect you from a compromised browser or Mac while the vault is unlocked. Details: docs/security-model.md.

Requirements

  • A Cloudflare account with a domain.
  • Cloudflare Zero Trust for Access (free for up to 50 users).
  • A browser whose passkeys support PRF: macOS 15 or later, or Chrome 132 or later.
  • The CLI needs macOS and Node.

Self-host in 3 steps

  1. Deploy. Click Deploy to Cloudflare. It copies the repo to your GitHub and creates the Worker and an R2 bucket.
  2. Put Access in front. Give the Worker your domain and add a Cloudflare Access application for it. Then copy the team domain and the application's AUD into the Worker's settings. Without them the Worker refuses every request.
  3. Make your vault. Open your domain, make a passkey and save your recovery key.

Step by step: docs/self-host.md.

CLI

macOS only, for now. It never prints a value unless you ask for that field or run keys env. It needs an Access service token (see docs/self-host.md).

curl -fsSL https://github.com/jatindotdev/keys/releases/download/cli-latest/install.sh | sh
keys login --url https://keys.example.com
$ keys show stripe
Stripe secret key
  id           q8m2k4v1x9t0c7h3n5b6r2w4za
  kind         API key or token (token)
  tags         Lantern
  environment  production
  expiry       none
  notes        none
Fields
  value  Token  set    secret  STRIPE_SECRET_KEY (own)
  login  Login  empty
  host   Host   empty
Files
  none

$ keys env-name stripe value STRIPE_API_KEY
Stripe secret key's Token now goes in STRIPE_API_KEY.

$ keys run --tag Lantern --env production -- npm start

Inside Claude Code or Codex (or with KEYS_AGENT=1) it won't print secret values. It can still copy them, write them to a file or pass them to a command. That guards against mistakes, not a hostile agent: its limits. Every command: keys --help.

Updating

The CLI: keys update. With gh signed in, it checks the release's build attestations first. To build it yourself: docs/self-host.md. The web app: bring the new release into your copy of the repo, and Cloudflare deploys it (see docs/self-host.md).

Uninstalling

keys logout removes the CLI's files on this Mac. Remove its unlock slot in Settings, then delete ~/.local/share/keys-cli and ~/.local/bin/keys.

FAQ

Why Cloudflare Access?

The vault is encrypted either way, but Access keeps everyone else from even loading the page or the ciphertext. Built-in sign-in, with Access optional, comes next.

What can Cloudflare see?

Encrypted files in R2, their sizes and when they change, and the requests your Worker serves. Never a name, a value or a file's contents. Access logs your email and IP when you sign in. R2's file names show how many unlock slots, files and vault versions exist.

You trust the code your Worker serves. Anyone who can change your Worker, your GitHub repo or your Cloudflare account could read your vault the next time you unlock.

What if I lose my passkey?

Unlock with your recovery key, then add a new passkey in Settings. If you lose every passkey and the recovery key, the vault can't be opened. Nobody can reset it.

Security

Found a problem? Report it privately: SECURITY.md.

Support

None is promised. Issues are welcome, and may not get an answer.

License

MIT. A personal project by Jatin Kumar.

About

Keys: a web vault for developer credentials (keys.jatinkumar.dev)

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0