usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
26.18k stars 1.2k forks source link

[doc] where and how are secret variables stored? #934

Open koriit-kontakt opened 11 months ago

koriit-kontakt commented 11 months ago

Hi, when I have a secret variable, I understand it's not written to the environment or collection files, but where is it stored exactly, and how?


I think documenting this part will bring additional transparency and aligns nicely with what ppl are looking for when choosing Bruno.

I can prepare a PR, but someone would need to explain it here or point me towards related source files.

mirkogolze commented 11 months ago

On a windows machine the secrets are stored under \Users[xxxx]\AppData\Roaming\bruno\secrets.json It's the location for electron stores.

The code which handles the secrets is: https://github.com/usebruno/bruno/blob/main/packages/bruno-electron/src/store/env-secrets.js