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:

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.

If you forget both the password and the recovery key, secrets can't be recovered — you can reset the vault, which wipes the encrypted secrets.