CLI Northstar KMS · nskms 1.0.0

Your secrets, straight to the process. No .env on the server.

nskms reads your secrets from Northstar KMS when your application starts and hands them over in its environment. A single binary, no dependencies, signed by Northstar.

Linux · x86-64 · version 1.0.0 · other platforms

Install it in a minute
on your server or your machine

Linux and macOS, Intel or ARM, Windows or a Docker image. The same binary on all of them.

Terminal
v=$(curl -fsSL https://get.bynorthstar.tech/nskms/latest.txt)
p=$(uname -s | tr A-Z a-z)-$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')
curl -fsSLO https://get.bynorthstar.tech/nskms/$v/nskms-$v-$p.tar.gz
curl -fsSLO https://get.bynorthstar.tech/nskms/$v/SHA256SUMS
grep " nskms-$v-$p.tar.gz
quot; SHA256SUMS | shasum -a 256 -c tar -xzf nskms-$v-$p.tar.gz && sudo install -m 755 nskms /usr/local/bin/
  • One binary, no dependenciesAbout 6 MB, with no interpreter or libraries to install.
  • Nothing runs before you check itNo curl | sh: you download, check the checksum and then install.
  • Signed by NorthstarEvery version comes with an Ed25519 signature you verify yourself.

From .env to KMS
in three steps

Your repository and your hosting panel end up with no passwords. If a server is lost, you revoke a token instead of rotating everything.

  1. Store the secret in KMS

    A whole .env as a single secret, or one secret per value. Every change is a new version.

    nskms secrets put app-env -file .env
  2. Give your server access

    A service account with the secret_accessor role and a token, stored in a file only your application can read.

    export NSKMS_TOKEN_FILE=/etc/nskms/token
  3. Start with nskms run

    nskms reads the secret, puts it in the environment and replaces itself with your command: same PID, signals and exit code.

    nskms run -secret app-env -- node server.js

Works with what you already use,
without a line of code

nskms doesn't know your language: it puts the variables in the environment and starts your command. If something starts your application for you, like PHP-FPM, nskms env pull writes a .env only its owner can read.

  • References in a .env.nskms you can commit to version control: DB_PASSWORD=nskms://db-password@3.
  • Disabling the newest version falls back to the previous one on the next start.
  • Every read goes into your organization's audit log.
Node.jsnskms run -- node server.js
Pythonnskms run -- gunicorn app:app
Gonskms run -- ./service
Rubynskms run -- bundle exec puma
Javanskms run -- java -jar app.jar
Laravelnskms run -- php artisan queue:work
systemdExecStart=/usr/local/bin/nskms run -- /opt/app/server
Cronnskms run -- ./backup.sh
Signed downloads

Verify that Northstar published it.

Every version comes with SHA256SUMS and its Ed25519 signature. If the signature and the checksum match, the binary is the one we published, even if the download server were compromised. Requires OpenSSL 3.

Verify the signature
curl -fsSLO https://get.bynorthstar.tech/nskms/1.0.0/SHA256SUMS.sig
curl -fsSL https://get.bynorthstar.tech/nskms/release-key.pem -o nskms-release-key.pem
{ printf 'nskms-release-v1\n'; cat SHA256SUMS; } > nskms-message
openssl pkeyutl -verify -pubin -inkey nskms-release-key.pem \
  -rawin -in nskms-message -sigfile SHA256SUMS.sig

Frequently asked questions

Get your passwords out of .env files

Request early access

Northstar isn’t public yet. We’re opening access to a small group of companies: tell us about yours.