> ## Documentation Index
> Fetch the complete documentation index at: https://bruno-a6972042-mintlify-e71a9da4.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Secrets Management

## Secret Variables

<Info>
  Bruno stores secrets on your local machine. The location depends on the OS.
  The secrets are encrypted using OS level encryption when available or falls back to AES256 encryption.
</Info>

In this approach, you can check the `secret` checkbox for any variable in your environment.
Bruno will manage your secrets internally and will not write them into the environment file.

<img src="https://mintcdn.com/bruno-a6972042-mintlify-e71a9da4/m9v4F91Hruu6HaTk/images/screenshots/secret-variables/secret-variables.webp?fit=max&auto=format&n=m9v4F91Hruu6HaTk&q=85&s=82ca471a349f9616649a0226165cdd28" alt="secret variables" width="2468" height="872" data-path="images/screenshots/secret-variables/secret-variables.webp" />

Your environment file at `environments/local.bru` would look like

```bash filename="local.bru" theme={null}
vars:secret [
  baseUrl
]

```

And now you can safely check in your collection to source control without worrying about exposing your secrets.

When you export your collection as a file, Bruno will not export the secret variables.
