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.
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.gzquot; SHA256SUMS | shasum -a 256 -c
tar -xzf nskms-$v-$p.tar.gz && sudo install -m 755 nskms /usr/local/bin/$v = (irm https://get.bynorthstar.tech/nskms/latest.txt).Trim()
iwr "https://get.bynorthstar.tech/nskms/$v/nskms-$v-windows-amd64.zip" -OutFile nskms.zip
Expand-Archive nskms.zip -DestinationPath "$env:LOCALAPPDATA\nskms"
# Add $env:LOCALAPPDATA\nskms to your PATHARG NSKMS=1.0.0
ADD https://get.bynorthstar.tech/nskms/${NSKMS}/nskms-${NSKMS}-linux-amd64.tar.gz /tmp/nskms.tar.gz
RUN tar -xzf /tmp/nskms.tar.gz -C /usr/local/bin nskms && rm /tmp/nskms.tar.gz
ENTRYPOINT ["nskms", "run", "--"]
CMD ["node", "server.js"]- 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.
- 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 - 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 - 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.nskmsyou 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.
nskms run -- node server.jsnskms run -- gunicorn app:appnskms run -- ./servicenskms run -- bundle exec pumanskms run -- java -jar app.jarnskms run -- php artisan queue:workExecStart=/usr/local/bin/nskms run -- /opt/app/servernskms run -- ./backup.shVerify 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.
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.sigFrequently asked questions
Get your passwords out of .env files
Northstar isn’t public yet. We’re opening access to a small group of companies: tell us about yours.