Security
Encrypted secrets
Environment variables you mark as secret are encrypted at rest so that someone browsing the local database can’t read them.
Master password
Set a master password in Settings → Security. From it, Granspace can encrypt and decrypt your secrets. The password itself is never stored — you unlock the vault once per session to view secrets or run projects that use them.
How it works
Granspace uses envelope encryption:
- A random data key (AES-256-GCM) encrypts the secret values. It lives only in memory while unlocked.
- That data key is wrapped (encrypted) by two things: a key derived from your password (scrypt), and a key derived from your recovery key.
Because the data key is wrapped twice, you can recover access with the recovery key without losing your secrets, and you can change your password without re-encrypting every value.
Unlocking
When the vault is configured, Granspace asks for the password to unlock for the
session. Locked secrets stay masked and are omitted from .env sync and
granspace.json until you unlock.