Skip to content

Add environment secret option also to collection, folder and request level vars #7500

@slootjes

Description

@slootjes

I have checked the following:

  • I've searched existing issues and found nothing related to my issue.

This feature

  • blocks me from using Bruno
  • would improve my quality of life in Bruno
  • is something I've never seen an API client do before

Describe the feature you want to add, and how it would change your usage of Bruno

I've fiddled around with using environment level secrets and it's assumed that secrets are always long lived now it seems. I have many requests with short lived tokens or variables that I would like to set on either collection /folder or request level with the "secret" flag similar to what's available on environment level.

Let's say I have a request to: https://my-product/api/me/orders and I want to configure the token for that request. Currently I would either need to set the token, run the request and then remove the token again to prevent it from ending up in Git. Alternatively I set up a variable in my environment that I need to update first, then run the request. It would be much easier to be able to set the var on the request and mark it as secret so it becomes a fire and forget thing.

Workaround method:

  • Open environment
  • Update variable
  • Open request
  • Run request

Preferred method:

  • Open request
  • Update variable
  • Run request

This flow is much easier to understand and also prevents secrets from ending up in Git.

Mockups or Images of the feature

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions