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

# Secret Variables

<Tip>
  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.
</Tip>

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-docs-timeline-scripts/3P35IkwSno0mcQ-P/images/screenshots/secret-variables/secret-variables.webp?fit=max&auto=format&n=3P35IkwSno0mcQ-P&q=85&s=84ec3687d18b27b248ffc7f0351cf766" 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.
