r/javascript • • 21d ago

GitHub - pavex/safebox: One encrypted file with named secrets for a Node.js app, plus a CLI to manage it.

https://github.com/pavex/safebox

One encrypted file with named secrets for a Node.js app, plus a CLI to manage it.

You keep app.safebox next to the app: in the repository, in the deploy package. The app opens it with a password it gets from somewhere else and has every API key, database password and private key it needs. Without the password the file is useless.

  • AES-256-GCM with a key from scrypt, the whole file authenticated
  • TypeScript source with only Node.js built-in modules, no runtime dependencies
  • CLI as one bundled file, dist/safebox.js
  • Status: beta (0.1.0-beta.1), the file format may still change before 1.0

Requires Node.js 22 or newer.

0 Upvotes

8 comments sorted by

View all comments

1

u/nielsen-b628 6d ago

Is the password separate in deployment? One file is simple, but it puts every credential behind one secret.