Skip to content
Vegha Docs

Secret Variables

Credentials should never be committed to a .bru file. Vegha gives you two complementary ways to handle sensitive values: masking and secret:// references.

Any environment variable can be marked as secret. A secret variable behaves like a normal variable when resolved, but its value is masked in the UI so it is not shown on screen or in logs.

BehaviorPlain variableSecret (masked) variable
Resolved into requestsYesYes
Value visible in the UIYesMasked
Value stored in the .bru fileYesYes

For values that must never be stored, use a secret:// URI. It points at an external secret manager instead of holding the value itself:

secret://provider/path#field
PartMeaning
providerThe secret manager, for example azure-key-vault
pathThe path or name of the secret in that manager
fieldThe specific field within the secret

The reference is resolved at send time and the real value is never written to disk. This is the safest option for production credentials.

client_secret = secret://azure-key-vault/prod-api#client-secret

Use a secret:// reference anywhere a variable works — environment values, auth fields, headers, and bodies.

Masked variablesecret:// reference
Value stored locallyYes (in .bru)No
Resolved atSave timeSend time
Safe to commitNoYes (the URI, not the secret)

Use a masked variable for low-risk values you do not mind keeping locally; use a secret:// reference for anything that must stay out of version control.

secret:// references currently resolve against:

  • Azure Key Vault
  • AWS Secrets Manager

See the Secret managers overview for setup and per-provider details.