Repository navigation
Where secret variables are stored ? #8884
|
Hi 👋 In latest Bruno v4.x.x documentation, I've notice this entry It specify that :
At my company, security matters are quite important. So I'm wondering if further explanations could be given about this feature ? According to the OS :
From my point of view :
Thanks in advance for your feedback on that matter 🙏 |
Replies: 2 comments 2 replies
|
@helloanoop : hi 👋 Hope you're doing well 🙏 Any news about this question ? 😇 |
|
Hi @Mumeii, apologies for the delay on getting back to you and thank you for the detailed questions. Here’s what we can share about how Bruno handles secret variables and encryption. Where are secrets stored on my machine?Secret variable values are stored in a
Which OS encryption service does Bruno use?Bruno uses Electron’s
Is there a way to see which encryption method is active?No, currently there isn’t a way to see which encryption method is active. If you think this would be useful for your use case, you can raise a feature request with more details about what you’re looking to achieve, and we’ll be happy to review it with the team. Does the AES-256 fallback use a universal key, like DBeaver?No. The AES-256 fallback does not use a public/private key pair or a single shared encryption key. Bruno uses AES-256-CBC with a symmetric key derived from a machine-specific identifier. This identifier is hashed using SHA-256 to produce the 256-bit encryption key. As a result, the key is specific to the machine rather than being shared across Bruno installations. This also means that data encrypted using this fallback is generally tied to the machine where it was encrypted. Can I avoid storing secrets on disk entirely?Yes. Starting with v4, Bruno supports integration with external secret managers, including:
With External Secret Managers, secrets are fetched at runtime when the request is executed. The secret values remain in memory and are not written to secrets.json or persisted to disk. They are also maintained separately for each environment. This is the recommended approach for environments that require a strict zero-disk persistence policy. Regarding You can find more details in our Secret Managers documentation. We appreciate the feedback, and it’s useful input for considering future improvements. I hope this helps. If your security team has any additional questions, please feel free to reach out and we’ll be happy to help. |
Hi @Mumeii, apologies for the delay on getting back to you and thank you for the detailed questions. Here’s what we can share about how Bruno handles secret variables and encryption.
Where are secrets stored on my machine?
Secret variable values are stored in a
secrets.jsonfile within Bruno’s app data directory. The location depends on your operating system:~/Library/Application Support/bruno/secrets.json%AppData%\Roaming\bruno\secrets.json~/.config/bruno/secrets.json$HOME/.var/app/com.usebruno.Bruno/config/bruno/secrets.jsonWhich OS encryption service does Bruno use?
Bruno uses Electron’s
safeStorageAPI, which delegates e…